// JavaScript Document

<!-- ----------------------------------------------------------------- -->
<!-- http://www.hooverwebdesign.com/emailpage.html -->

function mailpage()
{
mail_str = "mailto:?subject=Check out the '" + document.title + "' web page";
mail_str += "&body=I thought you might be interested in the '" + document.title + "' web page";
mail_str += ". You can view it at '" + location.href + "'."; 
location.href = mail_str;
}

<!-- ----------------------------------------------------------------- -->

<!-- Copyright 2003, Sandeep Gangadharan -->
<!-- For more free scripts go to http://sivamdesign.com/scripts/ -->

 
function checkForm() {
 document.ContactUsForm.Email.value = document.ContactUsForm.Email.value;
 
  if (document.ContactUsForm.Name.value == "Enter your name...") {                      // this part of the script is
      alert('Your name is not valid!'); return false; }     // related to the Name field
  if (document.ContactUsForm.Name.value == "") {                      // this part of the script is
      alert('Your name is missing!'); return false; }     // related to the Name field	  
     mail = document.ContactUsForm.Email.value;                            // this part of the script is
  if ((mail.indexOf('@') == -1) || (mail.indexOf('.') == -1)) {
      alert('Your email address is invalid!'); return false; } // related to the E-Mail field 
  if (document.ContactUsForm.Query.value == "") {                       // this part of the script is
      alert('Your question field is empty!'); return false; }
  if (document.ContactUsForm.Query.value == "Enter your question - comment...") {                       // this part of the script is
      alert('Your question field is not valid!'); return false; }	  
  if (document.ContactUsForm.Query.value.length > 250) {
      alert('Your question is too long! 250 characters max!'); return false; } // related to the Comments field
               //  the code prevents users from typing in more than 250 characters in the comment
               //  field. The # can be modified by typing in any number instead of 250. If this
               //  feature is not needed just delete the 2 lines in the code above.
  return true;
 }

<!-- ----------------------------------------------------------------- -->
<!-- from http://www.willmaster.com/blog/javascript/form-field-prompts.php -->

function WipePrompt(s,f) {
if(f.value == s) { f.value = ''; }
}


<!-- ----------------------------------------------------------------- -->
