/*--------------------------------------------------------------------------swap()		source from the webmonkey code library 				(http://hotwired.lycos.com/webmonkey/reference/javascript_code_library/)	Function: Changes the source of an image.    Use: swap(originalImage, 'newSourceUrl');--------------------------------------------------------------------------*/ function swap(daImage, daSrc)	{	 var objStr,obj;  // Check to make sure that images are supported in the DOM.  if(document.images){    // Check to see whether you are using a name, number, or object    if (typeof(daImage) == 'string') {      // This whole objStr nonesense is here solely to gain compatability      // with ie3 for the mac.      objStr = 'document.' + daImage;      obj = eval(objStr);      obj.src = daSrc;    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {      daImage.src = daSrc;    }  }}/*--------------------------------------------------------------------------isValid()	Author: Alexia P. Bell (ember@innocent.com) 	Use: on Form tag: onSubmit="return isValid();"	Function: To validate form fields - if form fields aren't valid, 	user cannot submit form. --------------------------------------------------------------------------*/	function isValid()	{//opens the function		with(document.forms[0])		{//opens the with			if (realname.value=="") //check if a name has been entered 				{					alert("Please enter your name");					realname.focus();					return false;				}			//validate email for an @ symbol			var theAt = email.value.indexOf("@",1);			if (theAt==-1)				{					alert("Please provide a valid email address");					email.focus();					email.select();					return false;				}			//validate email for a "." after the "@"			if (email.value.indexOf(".",theAt)==-1)				{					alert("Please provide a valid email address");					email.focus();					email.select();					return false;				}				//validate text area for comments(not default)			if (comments.value==comments.defaultValue || comments.value=="")				{					alert("Please provide a comment");					comments.focus();					comments.select();					return false;				}							return true; //if all the above ifs don't run, return true so the submit will run.		}//closes the with			}//closes the function	/*--------------------------------------------------------------------------source from the webmonkey code library (http://hotwired.lycos.com/webmonkey/reference/javascript_code_library/)--------------------------------------------------------------------------*/function preload() {  if (document.images)	  {			if (typeof(document.img) == 'undefined'){			document.img = new Object();		}    document.img.loadedImages = new Array();    var argLength = preload.arguments.length;    for(i=0; i < argLength; i++) 		{      document.img.loadedImages[i] = new Image();      document.img.loadedImages[i].src = preload.arguments[i];    }  }}