function ShowSignUp(X,Y)
{
	//alert("the mouse value"+X);
	//alert("the mouse value"+Y);
	document.getElementById("showsignup").style.display="BLOCK"; 
	document.getElementById('showsignup').style.top=Y;
	document.getElementById('showsignup').style.left=X;
    document.getElementById("signupmsg").innerHTML=""; 
	clearSignUpInfo();
	
}


function hideSignUp()
{
	document.getElementById("showsignup").style.display="none";
    document.getElementById("signupmsg").innerHTML=" "; 
	clearSignUpInfo();
	
}
function clearSignUpInfo()
{

	 document.signup.txtfname.value='';
	 document.signup.txtlname.value='';
	 document.signup.txtPosition.value='';
	 document.signup.txtCompany.value='';
	 document.signup.txtemail.value='';
	 document.signup.txtphno.value='';
	 document.signup.drIndustry.value='';  

} 
function Validate()
{
     
	  var  txtfname=trim(document.signup.txtfname.value)
	  var  txtlname=trim(document.signup.txtlname.value)
	  var  txtPosition=trim(document.signup.txtPosition.value)
	  var  txtCompany=trim(document.signup.txtCompany.value)
	  var  txtemail=trim(document.signup.txtemail.value)
	  var  txtphno=trim(document.signup.txtphno.value)
	  var  drIndustry=trim(document.signup.drIndustry.value)
	  
      document.getElementById("signupmsg").innerHTML=" "; 

	  
       if(txtfname.length < 3  ) { 

		   document.getElementById("signupmsg").innerHTML="First Name should have atleast three characters";
   		   return 0;
	   }

	    if(txtlname.length < 1 ) {
		   document.getElementById("signupmsg").innerHTML="Please enter the Last name";
   		   return 0;
	   }
       if(txtPosition.length < 3  ) { 

		   document.getElementById("signupmsg").innerHTML="Position should have atleast three character";
   		   return 0;
	   }
       if(txtCompany.length < 3  ) { 

		   document.getElementById("signupmsg").innerHTML="Company should have atleast three character";
   		   return 0;
	   }
	   if(!istxtemail(txtemail)) {
		   document.getElementById("signupmsg").innerHTML="Please enter the valid Email";
   		   return 0;
	   }
       if(txtphno=="")
    	{
			document.getElementById("signupmsg").innerHTML="Phone No. is Empty";
			document.getElementById('txtphno').value="";
			document.getElementById('txtphno').focus();
			return false;
		}
		else if(txtphno.search("[^0-9\-\]")>=0)
    	{
			document.getElementById("signupmsg").innerHTML="Containing NonAlpha characters";
			document.getElementById('txtphno').value="";
			document.getElementById('txtphno').focus();
			return false;
		}
		if(drIndustry.value=='select')
		{
			document.getElementById("signupmsg").innerHTML="Select the Industry";
			document.getElementById('drIndustry').focus();
			return false;
			vSubmit=0;
		}
		else if(document.getElementById("drIndustry").selectedIndex <= 0)
		  {
			document.getElementById("signupmsg").innerHTML="Please select any one of the Industry";
			document.getElementById('drIndustry').focus();
			vSubmit = false;
			return false;
		}	
	   
return 1;	   	   
}

function getsupport()
{   
  if(Validate()){
  
 	  var  txtfname=document.signup.txtfname.value
	  var  txtlname=document.signup.txtlname.value
 	  var  txtfname=document.signup.txtPosition.value
	  var  txtlname=document.signup.txtCompany.value
	  var  txtemail=document.signup.txtemail.value
	  var  txtphno=document.signup.txtphno.value
	  var  drIndustry=document.signup.drIndustry.value
	  //document.signup.supporttype.value = selectedtype ;
  	  document.signup.submit() ;

/*	   parameter=clfAjaxPath+"member/SignUpAjax.php?usrname="+Usrname+"&pwd="+Passwd+"&txtfname="+txtfname+"&txtlname="+txtlname+
	   "&txtemail="+txtemail+"&zipcode="+zipcode;     
	   AjaxInit(parameter);*/  
	   
 }
}
