function CHK()
		{
		if (document.Form1.Marital_Status.value=="Never Married")
			{
			document.Form1.CHILDREN.value="NA";
			document.Form1.CHILDREN.disabled=true;
			document.Form1.CHILD_LIVING.disabled=true;
			document.Form1.CHILD_NOTLIVING.disabled=true;
			}
		else 
			{
			document.Form1.CHILDREN.disabled=false;
			document.Form1.CHILD_LIVING.disabled=false;
			document.Form1.CHILD_NOTLIVING.disabled=false;
			}
		}
		function chkfrm()
		{
			if (document.Form1.txtname.value=="")
			{
				alert("Please Enter Your Name");
				document.Form1.txtname.focus();
				return false;
			}
			if (document.Form1.cmbday.value=="")
			{
				alert("Select birth day");
				document.Form1.cmbday.focus();
				return false;
			}
			if (document.Form1.cmbmonth.value=="")
			{
				alert("Select birth month");
				document.Form1.cmbmonth.focus();
				return false;
			}
			if (document.Form1.cmbyear.value=="")
			{
				alert("Select birth year");
				document.Form1.cmbyear.focus();
				return false;
			}
			if (document.Form1.Gender.value=="")
			{
				alert("Select your gender");
				document.Form1.Gender.focus();
				return false;
			}
			if (document.Form1.txtemail.value=="")
			{
				alert("Please Enter your Email ");
				document.Form1.txtemail.focus();
				return false;
			}
			if (document.Form1.txtpsw.value=="")
			{
				alert("Please Enter Password");
				document.Form1.txtpsw.focus();
				return false;
			}
			if (document.Form1.txtcpsw.value=="")
			{
				alert("Please Confirm your password");
				document.Form1.txtcpsw.focus();
				return false;
			}
			if (document.Form1.TERMS.checked==false)
			{
				alert("Please accept the terms and conditions");
				document.Form1.TERMS.focus();
				return false;
			}
			return true;
			
		}
		
		function trim(argvalue)
		
		{ 
		var tempstr=ltrim(argvalue);
		return rtrim(tempstr);
		}