function contactFormValidate(thisform)
{
	if (!emailValidate(contactForm.email)){
		  return false;
		}
	else if (contactForm.name.value == "")
	{
		alert('You must enter your name.');
		return false;
	}
	else if (contactForm.message.value == "")
	{
		alert('You must enter a message.');
		return false;
	}
	
	return true;
}



function orderFormValidate(thisform)
{
	if (!emailValidate(orderForm.email)){
		  return false;
		}
	else if (orderForm.first.value == "")
	{
		alert('You must enter your first name.');
		return false;
	}
	else if (orderForm.copy.value == "")
	{
		alert('You must enter the text of your ad.');
		return false;
	}
	
	return true;
}


function emailValidate(strEmail){
  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  strEmail = document.forms[0].email.value;
   
    if (strEmail.search(validRegExp) == -1) 
   {
      alert('A valid e-mail address is required.');
      return false;
    } 
    return true; 
}
