var ns4 = (document.layers) ? true:false;			// Variable to track Netscape browser
var ie = (document.all) ? true:false;				// Variable to track Explorer browser
var mac = navigator.appVersion.indexOf('Mac');		// Variable to track Macintosh platform
mac = (mac != -1) ? true:false;
if (ns4) initHeight =  window.innerHeight;
if (ns4) initWidth = window.innerWidth;

//Universal window.open function
function openWindow(URL,name,props) {
	window.open(URL,name,props);
}




// A function to reload the page on a user resize
function reDo() {
	if (ns4) document.location = document.location; 
}

// function bogusResize
// A function to fix the Netscape CSS resize bug
function bogusResize(){
  if (navigator.appName == 'Netscape'){
	if ((window.innerWidth != initWidth) || (window.innerHeight != initHeight)){
	  location.reload();
	}
  }
}

onresize = bogusResize;

// function clearMaxSearch
// Clears the search tax from the Max menu
function clearMaxSearch() {
	if (is.nav) {
		document.askMax.document.forms['frmAskMaxSearch'].txtSearchString.value = "";
	}
	else if (is.ie) {
		document.forms['frmAskMaxSearch'].txtSearchString.value="";
	}
}


