/* Original:  CodeLifter.com (support@codelifter.com) *//* Web Site:  http://www.codelifter.com *//* This script and many more are available free online at *//* The JavaScript Source!! http://javascript.internet.com */var url = window.location;var subject = "Great info from Berroco(r)";function validEmailAddress(emailField) {// the following expression must be all on one line...var goodEmail = emailField.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);if (goodEmail) {return true;}else {alert('Please enter a valid e-mail address.');emailField.focus();emailField.select();return false;   }}function mailThisUrl() {var emailField = document.getElementById("friends_email");if (validEmailAddress(emailField)) {// the following expression must be all on one line...window.location = "mailto:"+emailField.value+"?subject="+subject+"&body="+document.title+" "+url;   }}function clearField2 (field) /* a generic version of clearField() */{ if ("INPUT" == field.tagName) {  field.value = ""; }} //end clearField2function clearField (whichField){ switch (whichField.id) {  case "friends_email":  {   if (whichField.value == 'Enter friend\'s email address')   {    whichField.value = '';   }   break;  }   case "email":  {   if (whichField.value == 'Enter your email address')   {    whichField.value = '';   }   break;  }}} // end clearField