function left_validatequote()
{
	var theform=document.left_part;
	if(theform.left_name.value == "")
	{
		alert("please enter name");
		theform.left_name.focus();
		return false;
	}
	var emailId = theform.left_email.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
	if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
	{
    }
    else
    {
      alert("Please provide a valid email address");
      theform.left_email.focus();
      return false;
	}
	if(isNaN(theform.left_telephone.value))
	{
			alert("please enter numberic telephone number");
			theform.left_telephone.focus();
			return false;
	}
	if(theform.left_telephone.value == "")
	{
		alert("please enter telephone number");
		theform.left_telephone.focus();
		return false;
	}
	
	var lc=theform.left_application.value;
	if(theform.left_application[0].checked ==false && theform.left_application[1].checked ==false && theform.left_application[2].checked ==false)	
	{
			alert( "Please check at least one service." );
			return false;
	}
	if(theform.leftcode.value == "")
	{
		alert("please enter Security code");
		theform.leftcode.focus();
		return false;
	}
	return true;
}

function qvalidatequote(){
	var theform=document.request_quick_quote;
	if(theform.qname.value == "")
	{
		alert("please enter name");
		theform.qname.focus();
		return false;
	}
	var emailId = theform.qemail.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
		if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
		{
	    }
	    else
	    {
	      alert("Please provide a valid email address");
	      theform.qemail.focus();
	      return false;
		}
	
	if(theform.qtelephone.value == "")
	{
		alert("please enter telephone number");
		theform.qtelephone.focus();
		return false;
	}


	if(isNaN(theform.qtelephone.value))
	{
			alert("please enter numberic telephone number");
			theform.qtelephone.focus();
			return false;
	}
	
	if(theform.qcountry.value == "")
	{
		alert("please enter country name");
		theform.qcountry.focus();
		return false;
	}
	
	
  
  	var lt=0;
	var lc=theform['qapplication[]'];
	for(var i=0;i<lc.length;i++)
	{
		lc[i].checked?lt++:null;
	}
	if(lt ==0)
	{
			alert( "Please check at least one service." );
			return false;
	}
  
	
	if(theform.code.value == "")
	{
		alert("please enter security code");
		theform.code.focus();
		return false;
	}
	return true;
}

function resetleftform(){
	var theform=document.left_part;
	theform.left_name.value='';
	theform.left_email.value='';
	
	theform.left_telephone.value='';
	theform.left_message.value='';
}

function resetcontactusform(){
	var theform=document.contactus;
	theform.contact_name.value='';
	theform.contact_email.value='';
	
	theform.tel.value='';
	theform.contact_message.value='';
	theform.contact_logics.value='';
}

function resetform(){
	var theform=document.quote;
	theform.name.value='';
	theform.email.value='';
	
	theform.telephone.value='';
	theform.country.value='';
	theform.website.value='';
	theform.hear_about.value='';
	
}
function validatequote(){
	var theform=document.quote;
	if(theform.name.value == "")
	{
		alert("please enter name");
		theform.name.focus();
		return false;
	}
	var emailId = theform.email.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
		if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
		{
	    }
	    else
	    {
	      alert("Please provide a valid email address");
	      theform.email.focus();
	      return false;
		}
	
	if(theform.telephone.value == "")
	{
		alert("please enter telephone number");
		theform.telephone.focus();
		return false;
	}
	if(isNaN(theform.telephone.value))
	{
			alert("please enter numberic telephone number");
			theform.telephone.focus();
			return false;
	}
	if(theform.country.value == "")
	{
		alert("please enter country");
		theform.country.focus();
		return false;
	}
	
	
	
	
	var t=0;
	var c=theform['application[]'];
	for(var i=0;i<c.length;i++)
	{
		c[i].checked?t++:null;
	}
		if(t ==0)
		{
			alert( "Please check at least one application." );
			return false;
		}
	
	
	if(theform.hear_about.value == "")
	{
		alert("please enter hear about");
		theform.hear_about.focus();
		return false;
	}
	if(theform.code.value == "")
	{
		alert("please enter Security code");
		theform.code.focus();
		return false;
	}
}

function validaterequestquote(){
	var theform=document.request_seo_quote;
	if(theform.name.value == "")
	{
		alert("please enter name");
		theform.name.focus();
		return false;
	}
	var emailId = theform.email.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
		if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
		{
	    }
	    else
	    {
	      alert("Please provide a valid email address");
	      theform.email.focus();
	      return false;
		}
	
	if(theform.telephone.value == "")
	{
		alert("please enter telephone number");
		theform.telephone.focus();
		return false;
	}
	if(theform.country.value == "")
	{
		alert("please enter country");
		theform.country.focus();
		return false;
	}
	var t=0;
	var c=theform['application[]'];
	for(var i=0;i<c.length;i++)
	{
		c[i].checked?t++:null;
	}
		if(t ==0)
		{
			alert( "Please check at least one application." );
			return false;
		}
	
	
	if(theform.hear_about.value == "")
	{
		alert("please enter hear about");
		theform.hear_about.focus();
		return false;
	}
	
}

function validate_contactus(){
	var theform=document.contactus;
	if(theform.contact_name.value == "")
	{
		alert("please enter name");
		theform.contact_name.focus();
		return false;
	}
	var emailId = theform.contact_email.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
		if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
		{
	    }
	    else
	    {
	      alert("Please provide a valid email address");
	      theform.contact_email.focus();
	      return false;
		}


if(isNaN(theform.tel.value))
	{
			alert("please enter numberic telephone number");
			theform.tel.focus();
			return false;
	}
	
	if(theform.contact_message.value == "")
	{
		alert("please enter Comments");
		theform.contact_message.focus();
		return false;
	}
	
	if(theform.contact_logics.value == "")
	{
		alert("please enter hear about");
		theform.contact_logics.focus();
		return false;
	}
	
	if(theform.code.value == "")
	{
		alert("please enter security code");
		theform.code.focus();
		return false;
	}
	
	
	
}

function validateseoquote(){
	var theform=document.request_seo_quote;
	if(theform.name.value == "")
	{
		alert("please enter name");
		theform.name.focus();
		return false;
	}
	
	
	
	var emailId = theform.email.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
		if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
		{
	    }
	    else
	    {
	      alert("Please provide a valid email address");
	      theform.email.focus();
	      return false;
		}
	
	if(theform.telephone.value == "")
	{
		alert("please enter telephone number");
		theform.telephone.focus();
		return false;
	}

	if(isNaN(theform.telephone.value))
	{
		alert("please enter Numric Number");
		theform.telephone.focus();
		return false;
	}
	

	
	if(theform.country.value == "")
	{
		alert("please enter country");
		theform.country.focus();
		return false;
	}
	

	
	
	var t=0;
	var c=theform['papplication[]'];
	for(var i=0;i<c.length;i++)
	{
		c[i].checked?t++:null;
	}
		if(t ==0)
		{
			alert( "Please check at least one target." );
			return false;
		}
		
	/*if(theform.promote.value == "")
	{
		alert("please enter promote");
		theform.promote.focus();
		return false;
	}*/
	
	
	var at=0;
	var ac=theform['application[]'];
	for(var i=0;i<ac.length;i++)
	{
		ac[i].checked?at++:null;
	}
	if(at ==0)
	{
			alert( "Please check at least one application." );
			return false;
	}
	
	if(theform.annual_budget.value == "")
	{
		alert("Please Select Your Annual SEO Budget");
		theform.annual_budget.focus();
		return false;
	}
		
	
	
	
	if(theform.hear_about.value == "")
	{
		alert("please enter hear about");
		theform.hear_about.focus();
		return false;
	}
	
	if(theform.annual_budget.value == "")
	{
		alert("please enter annual budget");
		theform.annual_budget.focus();
		return false;
	}
	
	
	if(theform.code.value == "")
	{
		alert("please enter security code");
		theform.code.focus();
		return false;
	}
	
	
	
}

function validate_quote(){

	var theform=document.formspider;
	if(theform.name.value == "")
	{
		alert("please enter name");
		theform.name.focus();
		return false;
	}
	
	
	
	var emailId = theform.email.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
		if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
		{
	    }
	    else
	    {
	      alert("Please provide a valid email address");
	      theform.email.focus();
	      return false;
		}
	
	if(theform.tel.value == "")
	{
		alert("please enter telephone number");
		theform.tel.focus();
		return false;
	}
	if(theform.country.value == "")
	{
		alert("please enter country");
		theform.country.focus();
		return false;
	}
	

	var at=0;
	var ac=theform['application1[]'];
	for(var i=0;i<ac.length;i++)
	{
		ac[i].checked?at++:null;
	}
	if(at ==0)
	{
			alert( "Please check at least one application." );
			return false;
	}
	
	if(theform.message.value = "")
	{
		alert("Please Specify YOur Requirments");
		theform.message.focus();
		return false;
	}
}
















function quick_validatequote(){
	var theform=document.left_part;
	if(theform.qname.value == "")
	{
		alert("please enter name");
		theform.qname.focus();
		return false;
	}
	var emailId = theform.qemail.value;
	var apos=emailId.indexOf("@");
	var dotpos=emailId.lastIndexOf(".");
	var lastpos=emailId.length-1;		
		if (emailId.indexOf(' ')==-1 && 0 < emailId.indexOf('@') && 0 < emailId.indexOf('.') && emailId.indexOf('@')+1 < emailId.length && emailId.length >= 5)
		{
	    }
	    else
	    {
	      alert("Please provide a valid email address");
	      theform.qemail.focus();
	      return false;
		}
	
	if(theform.qtelephone.value == "")
	{
		alert("please enter telephone number");
		theform.qtelephone.focus();
		return false;
	}
	
	
  
  	var lt=0;
	var lc=theform['qapplication[]'];
	for(var i=0;i<lc.length;i++)
	{
		lc[i].checked?lt++:null;
	}
	if(lt ==0)
	{
			alert( "Please check at least one service." );
			return false;
	}
  if(theform.code.value == "")
	{
		alert("please enter security code");
		theform.code.focus();
		return false;
	}
	
	return true;
	
	
}























