function verifyEmail() 

		{

			frmObj=document.main3;

			var ysnVerifyFields = true;

			var strEmail;

			strEmail=frmObj.elements["email"].value

			apos=strEmail.indexOf("@");

			dotpos=strEmail.lastIndexOf(".");

			lastpos=strEmail.length-1;

			if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2)

			{

				ysnVerifyFields=false;

			}

			return ysnVerifyFields;

		}

	function validation()

		{

		var verified = true;



		if(verifyEmail()!=true && document.main3.elements["email"].value!="")  

		{

		alert("You have entered an invalid email address.\nPlease enter a complete email address in the form: yourname@yourdomain.com");

	   	//verify=false;

		//event.returnValue=false;

		document.main3.email.focus();

		return false;

		}

//start
		if (document.main3.cname) {
		    if (document.main3.cname.value == '') {

		        alert('Please input your Company Name.');

		        document.main3.name.focus();

		        return false;

		    }
		}

			if(document.main3.name.value==''){

					alert('Please input your Name.');

					document.main3.name.focus();

					return false;

				}	
				
				else
				
			if(document.main3.phone.value==''||document.main3.phone.value.length < 10){

					alert('Please input your Phone.');

					document.main3.phone.focus();

					return false;

				}	
				
				else
				
			if(document.main3.email.value==''){

					alert('Please input your Email.');

					document.main3.email.focus();

					return false;

				}	
				/*
				else
				
				
							if(document.main3.comments.value==''){

					alert('Please input your Comments.');

					document.main3.comments.focus();

					return false;

				}*/
				
				else
				
				
				{


					return true;

				}	

		}
