function checkform()
{
	if (document.myform.name.value == "")
	{
		// something is wrong
		alert('Your Name is required!');
		return false;
	}
	else if (isValidEmail(document.myform.email.value)==false)
	{
		// something else is wrong
		
		return false;
	}

	else if (document.myform.start_date.value == "yyyy-mm-dd")
	{
		// something else is wrong
		alert('Please select desired rental start date.');
		return false;
	}

	else if (document.myform.end_date.value == "yyyy-mm-dd")
	{
		// something else is wrong
		alert('Please select desired rental end date.');
		return false;
	}

	
	// If the script gets this far through all of your fields
	// without problems, it's ok and you can submit the form

	return true;
}

function isValidEmail(strEmail){
  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  //strEmail = document.forms[0].email.value;

   // search email text for regular exp matches
    if (strEmail.search(validRegExp) == -1) 
   {
      alert('Your E-Mail Address is invalid! Please re-enter.');
      return false;
    } 
    return true; 
}
