<!--
function displayStatusMsg(msgStr) {
  status=msgStr;
  document.returnValue = true;
}

var houseTimeOut

function fntLeftNav(layername,visibility)
{
	document.getElementById(layername).style.visibility = visibility;
}

function HousePause()
{
	houseTimeOut = setTimeout('fntLeftNav(\'layerHouse\',\'hidden\');', 750);
	return houseTimeOut;
	
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/*************************************************************************************************
* IsTel checks whether a given string contains only 0-9 or () or +/- or * or ' ' or x (for extn) *
* That is, it forms a sensible telephone number (the empty string is a 'good' number)            *
* No numerics in a string also represents a bad number                                           *
**************************************************************************************************/
function isTel(tel) {
	var i;
	var numberCount;
	i = 0;
	numberCount = 0;
	if (tel.length > 0) {
		while(i < (tel.length)) {
			if ( (tel.charCodeAt(i) >= 48) && (tel.charCodeAt(i) <= 57) ) { 
				// numbers 0-9
				numberCount++;
			} else if ( (tel.charCodeAt(i) >= 40) && (tel.charCodeAt(i) <= 41) ||	// ( or )
						(tel.charCodeAt(i) >= 42) && (tel.charCodeAt(i) <= 43) ||	// * or +
						(tel.charCodeAt(i) == 32)  ||								// space char
						(tel.charCodeAt(i) == 45)  ||								// minus sign
						(tel.charCodeAt(i) == 120) ||								// x represents extension
						(tel.charCodeAt(i) == 88)  );								// X represents extension
			else {
				i = 0;
				break;
			}
			i++;
		}
	} else {
		numberCount = 1; //empty string so set the number Count to reasonable value, because return is false anyway
	}
	if (i==0 || numberCount==0) {
		return(false); //Bad char was found
	} else {
		return(true); //good telephone number
	}
}	
/************************************************************************************************
* IsMail checks whether a given string contains only 0-9 or a-z or . or _ or " or <> or - and @ *
* That is, it forms a sound email address (the empty string is a 'good' email)                  *
* No characters or .s after the '@' constitutes a bad email, as does mulitiple @s               *
*************************************************************************************************/
function isMail(mail) {
	var i;
	var atCount;
	i = 0;
	atCount = 0;
	if (mail.length > 0) {
		// If there is no . after the @ then email is invalid
		if (mail.indexOf(".",mail.indexOf("@")) == -1) {
			i = 0;
			return(false);
		}
		while (i < mail.length) {
			if ( (mail.charCodeAt(i) >= 48) && (mail.charCodeAt(i) <= 57) ||	// numbers 0-9
			(mail.charCodeAt(i) >= 65) && (mail.charCodeAt(i) <= 90)  ||		// A-Z
			(mail.charCodeAt(i) >= 97) && (mail.charCodeAt(i) <= 122) ||		// a-z
			(mail.charCodeAt(i) == 46) ||										// . char
			(mail.charCodeAt(i) == 95) ||										// _ char
			(mail.charCodeAt(i) == 45) );										// - char
			else if (mail.charCodeAt(i) == 64) {								// @ char
				// only one @ allowed
				atCount++; 
			} else {
				//alert("error at: "+(i+1));
				i = 0;
				return(false);
			}
			i++;
		}
	}
	// Also check length is >= 5 if len(mail)>0 [min email: a@b.c = 5 char]
	// and only one @ has been parsed
	if ( (i == 0) || ((mail.length > 0) && (mail.length < 5)) || (atCount > 1) || (atCount < 1) ) {
		return(false); //Bad char was found
	} else {
		return(true); //good email address
	}
}

function setColor(el, bg) {
  if (el.style) el.style.backgroundColor = bg;
}
//-->