// JavaScript Document for trulifevision.comk



function valid()

{

	

   if (document.signup.Name.value=="")

	{

		alert("Please Enter Your Name");

		document.signup.Name.focus();

		return(false);

	}



	if (document.signup.Email.value=="") 

	{

		alert("Please Enter Your E-mail");

		document.signup.Email.focus();

		return(false);

	}

	 

	 if ((document.signup.Email.value.length < 3)||(document.signup.Email.value.indexOf("@") == 1)||(document.signup.Email.value.indexOf(".") == -1)||(document.signup.Email.value.indexOf("'")!= -1))

	{

				alert("Please enter the valid E-mail Address ");

				document.signup.Email.focus();

				document.signup.Email.select();

				return (false);

	}

   

return (true);

}





function valid1()

{

	

   if (document.comp.Name.value=="")

	{

		alert("Please Enter Your Name");

		document.comp.Name.focus();

		return(false);

	}



	if (document.comp.Email.value=="") 

	{

		alert("Please Enter Your E-mail");

		document.comp.Email.focus();

		return(false);

	}

	 

	 if ((document.comp.Email.value.length < 3)||(document.comp.Email.value.indexOf("@") == 1)||(document.comp.Email.value.indexOf(".") == -1)||(document.comp.Email.value.indexOf("'")!= -1))

	{

				alert("Please enter the valid E-mail Address ");

				document.comp.Email.focus();

				document.comp.Email.select();

				return (false);

	}

   

return (true);

}



function valid2()

{

	

   if (document.contact.Name.value=="")

	{

		alert("Please Enter Your Name");

		document.contact.Name.focus();

		return(false);

	}



	if (document.contact.Email.value=="") 

	{

		alert("Please Enter Your E-mail");

		document.contact.Email.focus();

		return(false);

	}

	 

	 if ((document.contact.Email.value.length < 3)||(document.contact.Email.value.indexOf("@") == 1)||(document.contact.Email.value.indexOf(".") == -1)||(document.contact.Email.value.indexOf("'")!= -1))

	{

				alert("Please enter the valid E-mail Address ");

				document.contact.Email.focus();

				document.contact.Email.select();

				return (false);

	}

   

return (true);

}

function valid3()

{

	

   if (document.privacy.Name.value=="")

	{

		alert("Please Enter Your Name");

		document.privacy.Name.focus();

		return(false);

	}



	if (document.privacy.Mailing address.value=="") 

	{

		alert("Please Enter Your E-mail");

		document.privacy.Mailing address.focus();

		return(false);

	}

	 

	 if ((document.privacy.Mailing address.value.length < 3)||(document.privacy.Mailing address.value.indexOf("@") == 1)||(document.privacy.Mailing address.value.indexOf(".") == -1)||(document.privacy.Mailing address.value.indexOf("'")!= -1))

	{

				alert("Please enter the valid E-mail Address ");

				document.privacy.Mailing address.focus();

				document.privacy.Mailing address.select();

				return (false);

	}

   

return (true);

}

