<!--
var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? true : false;
var isMinIE4 = (document.all) ? true : false;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? true : false;
//--***********************************************************************************
function fStatus( p_msg ) {
	return onWindowStatus(p_msg);
} // fStatus
function onWindowStatus(displayMessage) {
	window.onerror = null;
	window.status = displayMessage;
	return true;
} // onWindowStatus
function navigateToPage(pageName)
{
	window.onerror = null;
	window.status  = '';
	if(pageName != '') {
		window.document.location.href = pageName;
	}
} // navigateToPage
//--***********************************************************************************
function fGetCurrentDate(){
	//-- FUNCTION : extracts the monthname, day and year from the 
	//--			client side system time.
	//-- INPUT    : Nothing
	//-- OUTPUT   : Nothing
	
	if ( isMinNS4 || isMinIE4 ){  
		var months = new makeArray('January','February','March',    
					 'April','May','June','July','August','September',    
					 'October','November','December');
		var date 	= new Date();
		var day  	= date.getDate();
		var month 	= date.getMonth() + 1;
		var yy 		= date.getYear();
		var year 	= (yy < 1000) ? yy + 1900 : yy;
	
		//-- return the concatendated current date in the
		//-- format of Monthname DD, YYYY	
		return months[month] + " " + day  + ", " + year;	 
	}
	return '';
}

//--***********************************************************************************
function openWin( p_sURL, p_iheight, p_iwidth, p_blnShowstatus, p_blnShowtoolbar ) {    
  	//-- FUNCTION: centers the instantiated window.
  	//-- INPUT   : p_sURL - parameter variable containing the reference RUL
  	//-- OUTPUT  : Nothing
  	//-- NOTES   : CALL - openWin()
  
  	var iWIDTH = 400;
  	var iHEIGHT = 400;
	
  	window.onerror = null;
	
  	//-- random number generator
  	var iNumber 	= Math.random();
	var iRADIX_STR 	= new String();
	iRADIX_STR 	= iNumber.toString(10);
  	iRADIX_STR 	= iRADIX_STR.substr(3,7);
  	var sGENERIC_HANDLE = 'windowHandle' + iRADIX_STR;
    
  	if (p_iheight != null){iHEIGHT = p_iheight;}
  	else{p_iheight = iHEIGHT;}	
		
  	if (p_iwidth != null){iWIDTH = p_iwidth;}
  	else{p_iwidth = iWIDTH;}

	if ( isMinNS4 || isMinIE4 ){ 
  		if (document.all){	
  			var xMax = screen.width;
			var yMax = screen.height;
  		}
  		else{
    		if (document.layers){
            		var xMax = window.outerWidth;
            		var yMax = window.outerHeight;        
        		}
			else{
        		var xMax = 640;
	    		var yMax = 480;
        		}
  		}
	}

  	var xOffset = (xMax - iWIDTH)/2; 
  	var yOffset = (yMax - iHEIGHT)/2;
 
	sOptions = 'resizable=yes,scrollbars=yes';
	
	if( p_blnShowstatus == false ){ sOptions += ',status=no'; }
	else{ sOptions += ',status=yes'; }
	
	if( p_blnShowtoolbar == false ){ sOptions += ',toolbar=no'; }
	else{ sOptions += ',toolbar=yes'; }
	
  	hWND = self.open('',sGENERIC_HANDLE,"width="+iWIDTH+
                      ",height="+iHEIGHT+",screenX="+xOffset+
                      ",screenY="+yOffset+",top="+yOffset+
                      ",left="+xOffset+","+sOptions);
  	hWND.location.href = p_sURL;
  	if (hWND.opener == null) hWND.opener = self; 

}

//--***********************************************************************************
function fAuthUser(){
	window.document.location.href = '/survey/_authenticate/';
}
//--***********************************************************************************
//-->