function printdelay(){return 10000;}

function doWindowClose(){
    window.name="me";
    window.close();
}

function printwindow(){
  browserVersion = parseInt(navigator.appVersion) 
  if (browserVersion >= 4) window.print()
}

function printmessage(srchstr){
  var ms1 = "";
  var ms2 = "";
  if (window.print)
    ms1 = "You might want to <a href=javascript:printwindow()>print this page<\/a> for reference.<br /><br />";
  if (srchstr != ''){
    ms2 = "Go back to previous page".link(srchstr);
  } 
  else
  {
    ms2 = "<A HREF='javascript:doWindowClose()'>Click here to close this window<\/A>";
  } 
 return ms1+ms2; 
}

function getElm(id){
	var elm = null;
	try{
		if (document.getElementById){
			elm = document.getElementById(id);
		} else {
			elm = document.all[id];
		}
	}catch(e){
	    alert('getElm Failed for getElm("' + id + '")');
	}
    return elm;
}


