function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		properties_over = newImage("images/properties2.gif");
		communities_over = newImage("images/communities2.gif");		
		about_over = newImage("images/about2.gif");
		weather_over = newImage("images/weather2.gif");
		marybeth_over = newImage("images/marybeth2.gif");
		contact_over = newImage("images/contact2.gif");
		preloadFlag = true;
	}
}



function FormValidator(theForm)
{
  if (theForm.name.value == "")
  {
    alert("Please enter your Name.");
    theForm.name.focus();
    return (false);
  }
  
  badEadd = false;
  var e_add = theForm.email.value;
  var is_there_at = e_add.indexOf('@');
  if (is_there_at == -1)
  {
    alert("You need to enter a valid e-mail address. \n\n A complete e-mail address has the format of: \n\n user_name@company.com");
	badEadd = true;
    theForm.email.focus();
    return (false);
  }
  
  var find_period = e_add.indexOf('.', is_there_at);
  if (badEadd == false && find_period == -1)
  {
    alert("You omitted the suffix. \n\n A complete e-mail address has a suffix such as \'.com\', \'.edu\', or \'.net\' and looks like this: \n\n user_name@company.com");
	badEadd = true;
    theForm.email.focus();
    return (false);
  }
    
  return (true);
}



function launcher()
{
	window.open("map.asp","","toolbar=no,scrollbars=auto,location=no,status=no,width=520,height=300,resizable=0")
}