<!-- 
// Example:
// var b = new BrowserInfo();
// alert(b.version); 
function BrowserInfo()
{
  this.name = navigator.appName;
  this.codename = navigator.appCodeName;
  this.version = navigator.appVersion.substring(0,4);
  this.platform = navigator.platform;
  this.javaEnabled = navigator.javaEnabled();
  this.screenWidth = screen.width;
  this.screenHeight = screen.height;
}

function cdigvoid () {
	return false;
}

function printPage() {
	window.print();
}

var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;

if (isNS6 ) {
	
}

function trimString(str) {
   return str.replace(/^\s*|\s*$/g,"");
}

function siteSearch() {	

	var strSearchScript = "/content/content_494.aspx?";

	if (trimString(document.forms[0].frmTextSearch.value) != "") 
	{
		document.location.href =  strSearchScript + "q=" + trimString(document.forms[0].frmTextSearch.value);
	} 
	else 
	{
		document.forms[0].action = "";
	}
	
}

function siteSearchKey(e) {	

    var keynum;
    var keychar;
    var numcheck;
    
    if(window.event) // IE
    {
        keynum = e.keyCode;
    }
    else if(e.which) // Netscape/Firefox/Opera
    {
        keynum = e.which;
    }

    if (keynum == 13)
    {
	    var strSearchScript = "/content/content_494.aspx?";

	    if (trimString(document.forms[0].frmTextSearch.value) != "") 
	    {
		    document.location.href =  strSearchScript + "q=" + trimString(document.forms[0].frmTextSearch.value);
            return false;        	
    	} 
    	else 
    	{
			document.forms[0].action = "";
	    }
	}
}

function initOnLoad() {

	//document.forms[0].onsubmit = siteSearch;
}


function onEnter( evt, frm ){
var keyCode = null;

if( evt.which ) {
keyCode = evt.which;
} else if( evt.keyCode ) {
keyCode = evt.keyCode;
}
if( 13 == keyCode ) {
	doSearch();
return false;
}
return true;
}


function doSearch() {
	var strUrl = "content_494.aspx";
	var strSearch = "?q=" + document.forms[0].q.value;
    
    if (document.forms[0].q.value == 'Key word search') return;
    
	document.location.href = strUrl + strSearch;



	
}



function doSearch2() {
	var strUrl = "/content/content_494.aspx";
	var strSearch = "?q=" + document.forms[0].q.value;
    
    if (document.forms[0].q.value == 'Key word search') return;
    
	document.location.href = strUrl + strSearch;
		

		
	
}

function onEnter2( evt, frm )  {
var keyCode = null;

if( evt.which ) {
keyCode = evt.which;
} else if( evt.keyCode ) {
keyCode = evt.keyCode;
}
if( 13 == keyCode ) {
	doSearch2();
return false;
}
return true;
}






// -->
