<!--
	//--------------------------------------------------
	
	
	function setupClientEnvironment(){
	
		
	}
	
	
	
	//--------------------------------------------------
	function setupUserAndMachine(){
		
	}
	//--------------------------------------------------
	function queryIsLearningTerminal( machineName ){
		
		return "1";
	}
	//--------------------------------------------------
	function configureLearningTerminal(){
	}
	

	//--------------------------------------------------
	function queryPreferredServer( machineName ){
		return "none";
	}
	//--------------------------------------------------
	function unknownUser( userName ){
		
		return "unknown";
	}	
	//--------------------------------------------------
	function SetDurableCookie( cName, cValue ){
	//alert("CN " + cName + " CV " + cValue)
		//var expiryDate = new Date();
		//expiryDate.setYear( expiryDate.getYear()+1 );
		//SetCookie( cName, cValue, expiryDate, "/" );
	}
	//--------------------------------------------------
	function SetSessionCookie( cName, cValue ){
	//alert("CN " + cName + " CV " + cValue)
		//SetCookie( cName, cValue, null, "/" );
	}
	//--------------------------------------------------
	// this function made "impotent" to prevent cookie problems caused by accidental use
	function clearClientEnvironment(){
//		DeleteCookie( "machineName" ); 
//		DeleteCookie( "userName" );
//		DeleteCookie( "isLearningTerminal" );
//		DeleteCookie( "preferredServer" );
//		SetSessionCookie( "machineName", "" );
//		SetSessionCookie( "userName", "" );
//		SetSessionCookie( "isLearningTerminal", "" );
//		SetSessionCookie( "preferredServer", "" );
	}
	//---------------------------------
	function getUserName(){ 
		//if( tmpUser != "" ){
			//var tmp = tmpUser;
		//}else{
		//	var tmp = GetCookie("userName");
		//	if( tmp == null ) tmp = "";
		//}
		
		return "tmp";
	}
	//---------------------------------
	function getMachineName(){
		//var tmp = GetCookie("machineName");
		//if( tmp == null ) tmp = "";    
		return "tmp";
	}
	//---------------------------------
	function getPreferredServer(){
		//var tmp = GetCookie("preferredServer");
		//if( tmp == null ) tmp = "";
		return "tmp";
	}
	//---------------------------------
	function getIsLearningTerminal(){
		//var tmp = GetCookie("isLearningTerminal");
		//if( tmp == null ){
			return false;
		//} else {
			//return (tmp == "1");
		//}
	}
	//---------------------------------
	function showClientEnvironment(){
		//var envText = "";
		//var userName = getUserName();
		//var machineName = getMachineName();
		//if( userName != "" ){
		//	envText = "User:" + userName + ", Machine:" + machineName;
		//} else {
			envText = "Unknown user";
		//}
		//if( getIsLearningTerminal() ) envText += ",server:" + getPreferredServer();

		window.defaultStatus = envText;
		window.status = envText;
	}

		//--------------------------------------------------

function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1)
    { var OpSys = "Irix"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows95"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('98') != -1))
    { var OpSys = "Windows98"; }
  else if((navigator.userAgent.indexOf('Win') != -1)  &&
  (navigator.userAgent.indexOf('5.0') != -1))
     { var OpSys = "Windows 2000"; }
  else if((navigator.userAgent.indexOf('Win') != -1)  &&
  (navigator.userAgent.indexOf('5.1') != -1))
     { var OpSys = "Windows XP"; }	     	
  else if(navigator.userAgent.indexOf('Win') != -1)
    { var OpSys = "Windows3.1 or NT 4"; }
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else { var OpSys = "other"; }
  return OpSys;
	}
	
	//--------------------------------------------------
	
	function cleanString( string ) {
		/** added 03/09/02 Peekp01. **/
		/** remove apostrophes in userNames and convert to lower case **/
		cleanString = string.replace(/'/gi,"").toLowerCase();
		return cleanString;
	}
	
	//--------------------------------------------------



function printIt(){		
  if (window.focus) { window.focus(); }
  if (window.print) {  window.print(); } 
  else {
      msg = "Your browser does not support automatic printing\nPlease press ";
      
						if ( is_mac )  { msg += ' APPLE(COMMAND)+P'; }
									else if (is_win) { msg += ' CTRL+P'; }
									else { msg += ' the print button on your browser '; }
      
       alert(msg); 
       }
       
 }
 	
	
//-->

