 <!-- HIDE FROM OLD BROWSERS
function historyBack()
{
        if (getBrowser()){
           history.back();
		} 
		else {
		alert("Sorry. This link doesn't work in your browser. Please use your browser's own back button.")
		}
}

function getBrowser() 
{
         browser= navigator.appName;
         version = navigator.appVersion;
         accept = version.substring(0, 1);
         if ( (browser == "Netscape") && ( accept >= 3 ) ) return 1;
         if ( (browser == "Microsoft Internet Explorer") && ( accept >= 4) ) return 1;
         return 0;
 }


  function displayDate(str) 
{
       	if (getBrowser()){
 		now = new Date()
 		now.mymonth = (now.getMonth()+ 1)
 		now.mydate = now.getDate()
 		now.myyear = now.getYear()
 		document.write(str + " " + now.mymonth + "/" + now.mydate + "/" + now.myyear)}
 }




function verifyDomain(f)
{
       	if (getBrowser()){
			if((f.domain1.value == '')) 
			{
				alert("Enter the domain name that you would prefer to use. This could be something as simple as YourName.com. Try to think up something unique, unusual, and memorable. "); 
				document.siteInput.domain1.focus();
				return false;
			}
			if ((f.domain1.value.indexOf(".")>=0))
			{
				alert("Do not put a 'www' or a dot extension (i.e. '.com') into the domain name field. Use the pull-down menu to select the extension.");
				document.siteInput.domain1.focus();
				return false;
			}
			if ((f.domain1.value.indexOf(" ")>=0) || (f.domain1.value.indexOf("_")>=0) || (f.domain1.value.indexOf("!")>=0) || (f.domain1.value.indexOf("%")>=0) || (f.domain1.value.indexOf("^")>=0) || (f.domain1.value.indexOf("&")>=0) || (f.domain1.value.indexOf("*")>=0) || (f.domain1.value.indexOf("@")>=0) || (f.domain1.value.indexOf("#")>=0) || (f.domain1.value.indexOf("$")>=0) || (f.domain1.value.indexOf(",")>=0) || (f.domain1.value.indexOf("(")>=0) || (f.domain1.value.indexOf(")")>=0) || (f.domain1.value.indexOf("<")>=0) || (f.domain1.value.indexOf(">")>=0) || (f.domain1.value.indexOf("[")>=0) || (f.domain1.value.indexOf("]")>=0) || (f.domain1.value.indexOf("{")>=0) || (f.domain1.value.indexOf("}")>=0) || (f.domain1.value.indexOf("?")>=0) || (f.domain1.value.indexOf("/")>=0) || (f.domain1.value.indexOf("\\")>=0) || (f.domain1.value.indexOf("|")>=0) || (f.domain1.value.indexOf("'")>=0) )
			{
				alert("The submitted domain name contains characters that are not allowed. Try again, avoiding spaces and characters like ! % ^ & * @ # $ , ( ) < > ? / \ } { ] [ ' and |");
				document.siteInput.domain1.focus();
				return false;
			}
		return true;
		}
}

function verifyDomainSidebar(f)
{
       	if (getBrowser()){
			if((f.domain1.value == '')) 
			{
				alert("Enter the domain name that you would prefer to use. This could be something as simple as YourName.com. Try to think up something unique, unusual, and memorable. "); 
				document.siteInputSidebar.domain1.focus();
				return false;
			}
			if ((f.domain1.value.indexOf(".")>=0) && (f.domain1.value.indexOf(".com")<=0))
			{
				alert("Do not put a 'www' or a dot extension (i.e. '.com') into the domain name field. Use the pull-down menu to select the extension.");
				document.siteInputSidebar.domain1.focus();
				return false;
			}
			if ((f.domain1.value.indexOf(" ")>=0) || (f.domain1.value.indexOf("_")>=0) || (f.domain1.value.indexOf("!")>=0) || (f.domain1.value.indexOf("%")>=0) || (f.domain1.value.indexOf("^")>=0) || (f.domain1.value.indexOf("&")>=0) || (f.domain1.value.indexOf("*")>=0) || (f.domain1.value.indexOf("@")>=0) || (f.domain1.value.indexOf("#")>=0) || (f.domain1.value.indexOf("$")>=0) || (f.domain1.value.indexOf(",")>=0) || (f.domain1.value.indexOf("(")>=0) || (f.domain1.value.indexOf(")")>=0) || (f.domain1.value.indexOf("<")>=0) || (f.domain1.value.indexOf(">")>=0) || (f.domain1.value.indexOf("[")>=0) || (f.domain1.value.indexOf("]")>=0) || (f.domain1.value.indexOf("{")>=0) || (f.domain1.value.indexOf("}")>=0) || (f.domain1.value.indexOf("?")>=0) || (f.domain1.value.indexOf("/")>=0) || (f.domain1.value.indexOf("\\")>=0) || (f.domain1.value.indexOf("|")>=0) || (f.domain1.value.indexOf("'")>=0) )
			{
				alert("The submitted domain name contains characters that are not allowed. Try again, avoiding spaces and characters like ! % ^ & * @ # $ , ( ) < > ? / \ } { ] [ ' and |");
				document.siteInputSidebar.domain1.focus();
				return false;
			}
		return true;
		}
}

function isEmpty(s)
{   return ((s == null) || (s.length == 0))
}

function verifySearch(f)
{
       	if (getBrowser()){
			if(isEmpty(f.term.value))
			{
				alert("Enter the term for which you would like to search."); 
				document.search.term.focus();
				return false;
			}
		return true;
		}
}

function verifySearchSidebar(f)
{
       	if (getBrowser()){
			if(isEmpty(f.szTerm.value))
			{
				alert("Enter the keyword phrase you would like to search for."); 
				document.searchSidebar.szTerm.focus();
				return false;
			}
		return true;
		}
}

function verifyEmail(f)
{
	if (getBrowser()){
		txtRaw=f.email.value;
		txt=txtRaw.toLowerCase();
		if(isEmpty(txt))
		{
			alert("Please enter your email address.");
			return false;
			}
		if ((txt.indexOf("/")>=0))
			{
			alert("The email address you have provided seems wrong. Please"
			+" make sure there are no spaces or slashes.");
			return false;
			}
		if ((txt.indexOf("@")<=0) || (txt.indexOf(".@")>=0))
			{
			alert("The email address you have provided seems wrong. Please"
			+" check the prefix and '@' sign, making sure there is not a dot immediately before the '@' symbol.");
			return false;
			}
		if ((txt.indexOf("@.")>=0))
			{
			alert("The email address you have provided seems wrong. Please"
			+" check the prefix, making sure there is not a dot immediately after the '@' symbol.");
			return false;
			}
		if ((txt.indexOf(" ")>=0))
			{
			alert("The email address you have provided for yourself seems wrong. Make sure there are no spaces in the address.");
			return false;
			}
		if ((txt.lastIndexOf(".")) < (txt.indexOf("@")))
			{
			alert("The email address you have provided seems wrong. Please"
			+" check the suffix for accuracy. (It should include a "
			+".com, .edu, .net, .org, .gov, .mil, or similar)");
			return false;
  			}
		return true;
		}
}
function focusToForm()
{
	if (getBrowser()){
		//document.signup.email.focus();
	} 
}
function confirmDelete(itemID,goodURL,cancelURL) 
{
	var msg = "Are you SURE you want to delete this item?" 
    if (confirm(msg)){
		location.replace(goodURL + itemID + '&returnURL=' + cancelURL);
	}
 }
//STOP HIDING-->