function validation1(frm1)
{
 if(!CheckEmpty(document.frm.do_name.value,"You did not give your name"))
	{
		document.frm.do_name.focus();
		return false;
	}
	
	 if(!CheckEmpty(document.frm.do_email.value,"Please enter your email address"))
	{
		document.frm.do_email.focus();
		return false;
	}
	if(!CheckEmailAddr(document.frm.do_email.value))
		{
			alert("Please enter a valid email address");
			document.frm.do_email.value="";
			document.frm.do_email.focus();
			return false;
		}
	 if(!CheckEmpty(document.frm.do_confirmemail.value,"Please enter your Confirm email address"))
	{
		document.frm.do_confirmemail.focus();
		return false;
	}
	if(!CheckEmailAddr(document.frm.do_confirmemail.value))
		{
			alert("Please enter a valid email address");
			document.frm.do_confirmemail.value="";
			document.frm.do_confirmemail.focus();
			return false;
		}
	if(document.frm.do_email.value!=document.frm.do_confirmemail.value)
		{
			alert("Your confirm email address do not match");
			document.frm.do_confirmemail.value="";
			document.frm.do_confirmemail.focus();
			return false;
		}
	 if(!CheckEmpty(document.frm.do_phone.value,"Please enter your phone number"))
	{
		document.frm.do_phone.focus();
		return false;
	}
	if(!IsPhone(document.frm.do_phone.value,"Please enter the Valid phone number ,it "))
	{
		document.frm.do_phone.focus();
		return false;
	}

	
	if(frm1.txtCaptcha.value == "")
	{
		alert("Please enter Verification Code");
		frm1.txtCaptcha.focus();
		return false;
	}
	getParam(frm1);
	return (false);	
	
	return true;
	}

	function submitForm(theform) {
	if(document.getElementById('free_demo1').checked){
		theform.action = "send_full_form.php";
		//theform.target="myframe1";
		theform.submit();

		theform.target="_blanc";
		theform.action = "http://www.worldvea.com/ars/addlead.php";
		theform.submit();
	}
	else{

		theform.submit();
	}

}

function showQ() {
	if(document.getElementById('call1').checked){
		document.getElementById('q1').style.display="block";
		document.getElementById('q2').style.display="block";
		document.getElementById('q3').style.display="block";
	}
	else{

		document.getElementById('q1').style.display="none";
		document.getElementById('q2').style.display="none";
		document.getElementById('q3').style.display="none";
	}

}

function validation2()
{

dml=document.forms['frm'];
len = dml.elements.length;
	
	 if(!CheckEmpty(document.frm.do_name.value,"You did not give us your name"))
	{
		document.frm.do_name.focus();
		return false;
	}
	
	 if(!CheckEmpty(document.frm.do_email.value,"Please enter your email Address"))
	{
		document.frm.do_email.focus();
		return false;
	}
	if(!CheckEmailAddr(document.frm.do_email.value))
		{
			alert("Please enter a valid email address");
			document.frm.do_email.focus();
			return false;
		}
		
	
	if(!CheckEmpty(document.frm.do_phone.value,"Please enter your phone"))
	{
		document.frm.do_phone.focus();
		return false;
	}

if(!IsPhone(document.frm.do_phone.value,"Please enter the Valid phone number ,it "))
	{
		document.frm.do_phone.focus();
		return false;
	}
		
	for( i=0 ; i<len ; i++)
		{	
		
		if (dml.elements[i].name=='f[address1]')
			{
			 if (dml.elements[i].value=="")
				{								
					alert("Please enter your Address.");
					dml.elements[i].focus();
					return false;  
			}
				
		}
			
		if (dml.elements[i].name=='f[address2]')
			{
			 if (dml.elements[i].value=="")
				{								
					alert("Please enter your Address.");
					dml.elements[i].focus();
					return false;  
			}
				
		}
		
		if (dml.elements[i].name=='f[city]')
			{
			 if (dml.elements[i].value=="")
				{								
					alert("Please enter your City.");
					dml.elements[i].focus();
					return false;  
			}
				
		}
		
		if (dml.elements[i].name=='f[state]')
			{
			 if (dml.elements[i].value=="Please select")
				{								
					alert("Please select your state from the list.");
					dml.elements[i].focus();
					return false;  
			}
				
		}
		
		if (dml.elements[i].name=='f[zip]')
			{
			 if (dml.elements[i].value=="")
				{								
					alert("Please enter your Zip Code.");
					dml.elements[i].focus();
					return false;  
			}
				
		}
		
		
		}

	
	return true;
	}

