function validRegister()
	{


	if(document.frmsignup.txtfirstname.value=="")
		{
		alert("Please enter First Name");
		document.frmsignup.txtfirstname.focus();
		return false;
		}
	if (document.frmsignup.txtfirstname.value.length <= 2)
		{
		alert("First Name should be minimum 3 characters");
		document.frmsignup.txtfirstname.focus();
		return false;
		}

	if(document.frmsignup.txtlastname.value=="")
		{
		alert("Please enter Last Name");
		document.frmsignup.txtlastname.focus();
		return false;
		}
	if (document.frmsignup.txtlastname.value.length <= 2)
		{
		alert("Last Name should be minimum 3 characters");
		document.frmsignup.txtlastname.focus();
		return false;
		}


/*	if(document.frmsignup.txttitle.value=="")
		{
		alert("Please enter Title");
		document.frmsignup.txttitle.focus();
		return false;
		}
	if (document.frmsignup.txttitle.value.length <= 2)
		{
		alert("Title should be minimum 3 characters");
		document.frmsignup.txtlastname.focus();
		return false;
		}
*/
	if (document.frmsignup.txtcompany.value == "")
		{
		document.frmsignup.txtcompany.focus();
		alert("Please enter your Company Name");
		return false;
		}
	if (document.frmsignup.txtcompany.value.length <= 2)
		{
		alert("Company Name should be minimum 3 characters");
		document.frmsignup.txtcompany.focus();
		return false;	
		}

	if (document.frmsignup.txtaddress1.value == "")
		{
		alert("Please enter your Company Address");
		document.frmsignup.txtaddress1.focus();
		return false;
		}
	if (document.frmsignup.txtaddress1.value.length <= 5)
		{
		alert("Address should be minimum 6 characters");
		document.frmsignup.txtaddress1.focus();
		return false;
		}


	if (document.frmsignup.txtcity.value == "")
		{
		alert("Please enter your City or Town");
		document.frmsignup.txtcity.focus();
		return false;
		}
	if (document.frmsignup.txtcity.value.length <= 2)
		{
		alert("City or Town should be minimum 3 characters");
		document.frmsignup.txtcity.focus();
		return false;
		}

	if (document.frmsignup.txttel.value == "")
		{
		alert("Please enter your Telephone Number");
		document.frmsignup.txttel.focus();
		return false;
		}
	if (document.frmsignup.txttel.value.length <= 5)
		{
		alert("Telephone Number should be minimum 6 characters");
		document.frmsignup.txttel.focus();
		return false;
		}


	if (document.frmsignup.txtemail.value == "")
		{
		alert("Please enter your Email ID");
		document.frmsignup.txtemail.focus();
		return false;
		}
	if (document.frmsignup.txtemail.value.length <= 5)
		{
		alert("Email Id should be minimum 6 characters");
		document.frmsignup.txtemail.focus();
		return false;	
		}
	if (document.frmsignup.txtemail.value.indexOf("@")==-1)
		{
		alert("Please enter valid Email Id");
		document.frmsignup.txtemail.focus();
		return false;
		}
	if(hasChar(document.frmsignup.txtemail))
		return false;


	if (document.frmsignup.txtpassword.value == "")
		{
		alert("Please enter your Password");
		document.frmsignup.txtpassword.focus();
		return false;
		}
	if (document.frmsignup.txtpassword.value.length <= 2)
		{
		alert("Password should be minimum 3 characters");
		document.frmsignup.txtpassword.focus();
		return false;	
		}
	if(hasChar(document.frmsignup.txtpassword))
		return false;

	if (document.frmsignup.txaclue.value == "")
		{
		alert("Please enter clue");
		document.frmsignup.txaclue.focus();
		return false;
		}
	if (document.frmsignup.txaclue.value.length <= 4)
		{
		document.frmsignup.txaclue.focus();
		alert("Clue should be minimum 5 character");
		return false;	
		}


	
	return true;
	}

