function checksubmitAddResort()
{
   // check to see if name field is empty
   // note that you use the name of the form and the field
   if (document.formname.name.value == "")
   {
	  // tell client that you need the name
	  alert("Please enter your Name")
	  // send the cursor to the fullname field
	  document.formname.name.focus()
	  // field is empty, so return false to abort the form submission
	  // the client is returned to the form
	  return false
   }
   // check to see if email address field is empty
   if (document.formname.email.value == "")
   {
	  alert("Please enter your Last Name")
	  document.formname.email.focus()
	  return false
   }
   
   	   
   if (document.formname.msg.value == "" )
   {
	  alert("Please enter your Comments and Concerns")
	  document.formname.msg.focus()
	  return false
   }
   
   if (document.formname.email.value != document.formname.email2.value)
   {
	  // tell client that you need the name
	  alert("Please Enter Same Email for Both the Fields")
	  //window.location.reload(true)
	  // send the cursor to the fullname field
	  document.formname.email.focus()
	  // field is empty, so return false to abort the form submission
	  // the client is returned to the form
	  return false
   }
   // if both fields are filled out, return true
   // this triggers the form submission
   return true
}

function checksubmitAddProperty()
{
	var pattern = /(\.com|\.biz|www\.|website|\.net|\@|email|e-mail|\.org|\.html)/i
	
	 // check to see if name field is empty
	// note that you use the name of the form and the field
	if ( (!document.frm1.checkbox.checked) )
	{
	  // tell client that you need the name
	  alert("You must agree to the terms and guidelines before proceeding")
	  // send the cursor to the fullname field
	   // field is empty, so return false to abort the form submission
	  // the client is returned to the form
	  return false
	}
	if(pattern.test(document.frm1.x_giftcode.value))
	{
		alert("Please do not use website addresses, email addresses, phone numbers,profanity, or html.")			 
		return false
	}
	
	if(pattern.test(document.frm1.x_season.value))
	{
		alert("Please do not use website addresses, email addresses, phone numbers,profanity, or html.")			 
		return false
	}
	
	if(pattern.test(document.frm1.x_price.value))
	{
		alert("Please do not use website addresses, email addresses, phone numbers,profanity, or html.")			 
		return false
	}
	
	if(pattern.test(document.frm1.x_maintenancefee.value))
	{
		alert("Please do not use website addresses, email addresses, phone numbers,profanity, or html.")			 
		return false
	}
	
	if(pattern.test(document.frm1.x_comments.value))
	{
		alert("Please do not use website addresses, email addresses, phone numbers,profanity, or html.")			 
		return false
	}
	
	if(pattern.test(document.frm1.x_points.value))
	{
		alert("Please do not use website addresses, email addresses, phone numbers,profanity, or html.")			 
		return false
	} else {
		return true
	}
}

function checksubmitFeedback()
	{
	   // check to see if name field is empty
	   // note that you use the name of the form and the field
	   if (document.formname.name.value == "")
	   {
		  // tell client that you need the name
		  alert("Please enter your First Name")
		  // send the cursor to the fullname field
		  document.formname.name.focus()
		  // field is empty, so return false to abort the form submission
		  // the client is returned to the form
		  return false
	   }
	   // check to see if email address field is empty
	   if (document.formname.email.value == "")
	   {
		  alert("Please enter your Email Address")
		  document.formname.email.focus()
		  return false
	   }
	   
	   	   
	   if (document.formname.msg.value == "" )
	   {
		  alert("Please enter your Comments and Concerns")
		  document.formname.msg.focus()
		  return false
	   }
	   
	    if (document.formname.email.value != document.formname.email2.value)
	   {
		  // tell client that you need the name
		  alert("Please Enter Same Email for Both the Fields")
		  //window.location.reload(true)
		  // send the cursor to the fullname field
		  document.formname.email.focus()
		  // field is empty, so return false to abort the form submission
		  // the client is returned to the form
		  return false
	   }
	   // if both fields are filled out, return true
	   // this triggers the form submission
	   return true
	}