function CustValidate()
		{
		if (document.fmMain.fname.value=="")
			{
			alert("Please Enter Your First Name")
			document.fmMain.fname.focus();
			return false
			}
		if (document.fmMain.lname.value == "")
			{
			alert("Please Enter Your Last Name")
			document.fmMain.lname.focus();
			return false
			}
		if (document.fmMain.dob.selectedIndex == 0)
			{
			alert("Please select your day of birth")
			document.fmMain.dob.focus();
			return false
			}
		if (document.fmMain.mob.selectedIndex == 0)
			{
			alert("Please select your month of birth")
			document.fmMain.mob.focus();
			return false
			}
		if (document.fmMain.yob.selectedIndex == 0)
			{
			alert("Please select your year of birth")
			document.fmMain.yob.focus();
			return false
			}
		if (document.fmMain.nationality.value =="")
			{
			alert("Please Enter Your Nationality")
			document.fmMain.nationality.focus();
			return false
			}
		if (document.fmMain.COUNTRY.selectedIndex==0)
			{
			alert("Please Select Country")
			document.fmMain.COUNTRY.focus();
			return false
			}
		if (document.fmMain.address.value =="")
			{
			alert("Please Enter Your Address")
			document.fmMain.address.focus();
			return false
			}
		if (document.fmMain.phone.value=="")
			{
			alert("Please Enter Your Phone Number")
			document.fmMain.phone.focus();
			return false
			}

		a = document.fmMain.phone.value 
		if (a.length < 5)
			{
			alert("Please enter valid phone number\nWARNING: Telephone number must have 5-14 digits")
			document.fmMain.phone.focus();
			return false
			}
		a = document.fmMain.phone.value
		ln = a.length
		for (i=0; i!=ln; i++)
			{
			b = a.substring(i,i+1)
			if (b < "0" || b > "9")
				{
				alert("Please enter a valid telephone number\nWARNING: Characters are not allowed in phone number")
				document.fmMain.phone.focus();
				return false
				}
			}
			
		if (document.fmMain.mobile.value == "")
			{
			alert("Please Enter Your Mobile Number")
			document.fmMain.mobile.focus();
			return false
			}
		a = document.fmMain.mobile.value 
		if ( a.length < 10)
			{
			alert("Please enter valid mobile number")
			document.fmMain.mobile.focus();
			return false
			}
		a = document.fmMain.mobile.value
		ln = a.length
		for (i=0; i!=ln; i++)
			{
			b = a.substring(i,i+1)
			if (b < "0" || b > "9")
				{
				alert("Please enter a valid mobile number\nWARNING: Characters are not allowed in mobile number")
				document.fmMain.mobile.focus();
				return false
				}
			}
		if (document.fmMain.fax.value != "")
			{
			a = document.fmMain.fax.value
			ln = a.length
			for (i=0; i!=ln; i++)
				{
				b = a.substring(i,i+1)
				if (b < "0" || b > "9")
					{
					alert("Please enter a valid fax number\nWARNING: Characters are not allowed in fax number")
					document.fmMain.fax.focus();
					return false
					}
				}
			}
		if (document.fmMain.PassNo.value == "")
			{
			alert("Please enter your passport no.")
			document.fmMain.PassNo.focus();
			return false
			}

		if (document.fmMain.PassIssueDay.selectedIndex == 0)
			{
			alert("Please select your day of issue of your passport")
			document.fmMain.PassIssueDay.focus();
			return false
			}
		if (document.fmMain.PassIssueMon.selectedIndex == 0)
			{
			alert("Please select your month of issue of your passport")
			document.fmMain.PassIssueMon.focus();
			return false
			}
		if (document.fmMain.PassIssueYear.selectedIndex == 0)
			{
			alert("Please select your year of issue of your passport")
			document.fmMain.PassIssueYear.focus();
			return false
			}
			
		if (document.fmMain.PassExpDay.selectedIndex == 0)
			{
			alert("Please select your day of expire of your passport")
			document.fmMain.PassExpDay.focus();
			return false
			}
		if (document.fmMain.PassExpMon.selectedIndex == 0)
			{
			alert("Please select your month of expire of your passport")
			document.fmMain.PassExpMon.focus();
			return false
			}
		if (document.fmMain.PassExpYear.selectedIndex == 0)
			{
			alert("Please select your year of expire of your passport")
			document.fmMain.PassExpYear.focus();
			return false
			}

		if (document.fmMain.email.value=="")
			{
			alert("Please Enter Your Email Address")
			document.fmMain.email.focus();
			return false
			}
		a = document.fmMain.email.value.indexOf("@")
		if ( a==-1)
			{
			alert("Please Enter a Valid Email Address")
			document.fmMain.email.focus();
			return false
			}
		a = document.fmMain.email.value.indexOf(".")
		if (a == -1)
			{
			alert("Please Enter Valid Email Address")
			document.fmMain.email.focus();
			return false
			}
		if (document.fmMain.pass1.value == "")
			{
			alert("Please Chose a password")
			document.fmMain.pass1.focus();
			return false
			}
		if (document.fmMain.pass2.value == "")
			{
			alert("Please Confirm Your Password")
			document.fmMain.pass2.focus();
			return false
			}
		a = document.fmMain.pass1.value
		b = document.fmMain.pass2.value
		if (a!=b)
			{
			alert("Please Enter Same Password in Both Fields")
			document.fmMain.pass1.focus();
			return false
			}
		a = document.fmMain.pass1.value 
		if(a.length < 5)
			{
			alert("Password must have atleast 5 characters")
			document.fmMain.pass1.focus();
			return false
			}
		}
