function validationpost()
  		 {
    
   
   		//------------------------------------------------
		if(document.buynow.name.value=="")
   		{
   		alert('Please Enter Name')
		document.buynow.name.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.buynow.phone.value=="")
   		{
   		alert('Please Enter Phone')
		document.buynow.phone.focus();
		return false;
   		}
		//------------------------------------------------
		filter=/^.+@.+\..{2,15}$/;
		if (!(filter.test(document.buynow.email.value)))
		{
			alert("Please Enter a valid email address!")
			document.buynow.email.focus();
    		return false;
		}
		//------------------------------------------------
		if(document.buynow.company.value=="")
   		{
   		alert('Please Enter Company')
		document.buynow.company.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.buynow.addneed.value=="")
   		{
   		alert('When does your ad need to run?')
		document.buynow.addneed.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.buynow.addcopy.value=="")
   		{
   		alert('Please Enter Ad Copy')
		document.buynow.addcopy.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.buynow.comments.value=="")
   		{
   		alert('Please Enter Comments')
		document.buynow.comments.focus();
		return false;
   		}
		
		//------------------------------------------------
		if(document.buynow.security_code.value=="")
   		{
   		alert('Please Enter Security Code')
		document.buynow.security_code.focus();
		return false;
   		}
		//------------------------------------------------
	
			return true;
	}
	
	function contactushome_old()
	{
		
		
		//------------------------------------------------
		if(document.frmcontact.name.value=="")
   		{
   		alert('Please Enter Name')
		document.frmcontact.name.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmcontact.phone.value=="")
   		{
   		alert('Please Enter Phone')
		document.frmcontact.phone.focus();
		return false;
   		}
		//------------------------------------------------
		filter=/^.+@.+\..{2,15}$/;
		if (!(filter.test(document.frmcontact.email.value)))
		{
			alert("Please Enter a Valid Email Address!")
			document.frmcontact.email.focus();
    		return false;
		}
		//------------------------------------------------
		if(document.frmcontact.company.value=="")
   		{
   		alert('Please Enter Company')
		document.frmcontact.company.focus();
		return false;
   		}
		
		if(document.frmcontact.comments.value=="")
   		{
   		alert('Please Enter Comments')
		document.frmcontact.comments.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmcontact.security_code.value=="")
   		{
   		alert('Please Enter Security Code')
		document.frmcontact.security_code.focus();
		return false;
   		}
		//------------------------------------------------
	}
	
	
	function contactushome()
	{
		
		
		//------------------------------------------------
		if(document.frmcontact.name.value=="Your Name:")
   		{
   		alert('Please Enter Name')
		document.frmcontact.name.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmcontact.phone.value=="Phone Number:")
   		{
   		alert('Please Enter Phone')
		document.frmcontact.phone.focus();
		return false;
   		}
		//------------------------------------------------
		filter=/^.+@.+\..{2,15}$/;
		if (!(filter.test(document.frmcontact.email.value)))
		{
			alert("Please Enter a Valid Email Address!")
			document.frmcontact.email.focus();
    		return false;
		}
		//------------------------------------------------
		if(document.frmcontact.company.value=="Company:")
   		{
   		alert('Please Enter Company')
		document.frmcontact.company.focus();
		return false;
   		}
		
		if(document.frmcontact.comments.value=="Comments:")
   		{
   		alert('Please Enter Comments')
		document.frmcontact.comments.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmcontact.security_code.value=="")
   		{
   		alert('Please Enter Security Code')
		document.frmcontact.security_code.focus();
		return false;
   		}
		//------------------------------------------------
	}
	
	
	
	function contactus()
	{
		
		//------------------------------------------------
		if(document.frmcontact.adneed.value=="")
   		{
   		alert('When does your ad need to run?')
		document.frmcontact.adneed.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmcontact.name.value=="")
   		{
   		alert('Please Enter Name')
		document.frmcontact.name.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmcontact.phone.value=="")
   		{
   		alert('Please Enter Phone')
		document.frmcontact.phone.focus();
		return false;
   		}
		//------------------------------------------------
		filter=/^.+@.+\..{2,15}$/;
		if (!(filter.test(document.frmcontact.email.value)))
		{
			alert("Please Enter a Valid Email Address!")
			document.frmcontact.email.focus();
    		return false;
		}
		//------------------------------------------------
		if(document.frmcontact.company.value=="")
   		{
   		alert('Please Enter Company')
		document.frmcontact.company.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmcontact.security_code.value=="")
   		{
   		alert('Please Enter Security Code')
		document.frmcontact.security_code.focus();
		return false;
   		}
		//------------------------------------------------
	}
	
	
	
function validads()
{
	//------------------------------------------------
		if(document.frmpermads.fname.value=="")
   		{
   		alert('Please Enter First Name')
		document.frmpermads.fname.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmpermads.lname.value=="")
   		{
   		alert('Please Enter Last Name')
		document.frmpermads.lname.focus();
		return false;
   		}
		//------------------------------------------------
		filter=/^.+@.+\..{2,15}$/;
		if (!(filter.test(document.frmpermads.email.value)))
		{
			alert("Please Enter a Valid Email Address!")
			document.frmpermads.email.focus();
    		return false;
		}
		//------------------------------------------------
		if(document.frmpermads.phone.value=="")
   		{
   		alert('Please Enter Phone')
		document.frmpermads.phone.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmpermads.insertion.value=="")
   		{
   		alert('Please Enter Insertion')
		document.frmpermads.insertion.focus();
		return false;
   		}
		
		
		//------------------------------------------------
		if(document.frmpermads.security_code.value=="")
   		{
   		alert('Please Enter Security Code')
		document.frmpermads.security_code.focus();
		return false;
   		}
		
		if (!document.frmpermads.chterms.checked) {
			alert('You must agree to the terms')
		document.frmpermads.chterms.focus();
		return false;
		}
		
		
}






function signup()
	{
		
		
		//------------------------------------------------
		if(document.frmsignup.city.value=="")
   		{
   		alert('Please Select City')
		document.frmsignup.city.focus();
		return false;
   		}
		//------------------------------------------------
		if(document.frmsignup.state.value=="")
   		{
   		alert('Please Select State')
		document.frmsignup.state.focus();
		return false;
   		}
		
		//------------------------------------------------
		if(document.frmsignup.fname.value=="")
   		{
   		alert('Please Enter First Name')
		document.frmsignup.fname.focus();
		return false;
   		}
		
		//------------------------------------------------
		if(document.frmsignup.lname.value=="")
   		{
   		alert('Please Enter Last Name')
		document.frmsignup.lname.focus();
		return false;
   		}
		
		//------------------------------------------------
		filter=/^.+@.+\..{2,15}$/;
		if (!(filter.test(document.frmsignup.email.value)))
		{
			alert("Please Enter a Valid Email Address!")
			document.frmsignup.email.focus();
    		return false;
		}
		//------------------------------------------------
		if(document.frmsignup.password.value=="")
   		{
   		alert('Please Enter Password')
		document.frmsignup.password.focus();
		return false;
   		}
		
		//------------------------------------------------
		if(document.frmsignup.cpassword.value=="")
   		{
   		alert('Please Enter Confirm Password')
		document.frmsignup.cpassword.focus();
		return false;
   		}
		
		if(document.frmsignup.password.value!=document.frmsignup.cpassword.value)
   		{
   		alert('Passwords does not match')
		document.frmsignup.cpassword.focus();
		return false;
   		}
		
		
		//------------------------------------------------
	}
	













function limiter(){
var count = "1000"; 
var tex = document.frmpermads.adcopy.value;
var len = tex.length;
if(len > count){
        tex = tex.substring(0,count);
        document.frmpermads.adcopy.value =tex;
        return false;
}
document.frmpermads.limit.value = count-len;
}
