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 validjoin()
{if(document.formjoin.name.value=="Your Name:")
{alert('Please Enter Name')
document.formjoin.name.focus();return false;}
if(document.formjoin.phone.value=="Phone Number:")
{alert('Please Enter Phone')
document.formjoin.phone.focus();return false;}
filter=/^.+@.+\..{2,15}$/;if(!(filter.test(document.formjoin.email.value)))
{alert("Please Enter a Valid Email Address!")
document.formjoin.email.focus();return false;}
if(document.formjoin.comments.value=="Comments :")
{alert('Please Enter Comments')
document.formjoin.comments.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;}
