function printThis(){
   if (navigator.appName.indexOf("Microsoft") > -1 &&
       navigator.appVersion.indexOf("5.") == -1) {
      OLECMDID_PRINT = 6;
      OLECMDEXECOPT_DONTPROMPTUSER = 2;
      OLECMDEXECOPT_PROMPTUSER = 1; 
      WebBrowser = 
       '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; 
      document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
      WebBrowser1.ExecWB(OLECMDID_PRINT,   OLECMDEXECOPT_PROMPTUSER);
      WebBrowser1.outerHTML = "";
     }
   else {
     window.print();
     }
   }   

function openWin(name,wid,hei,sbar,title){
	xx=screen.availWidth/2-wid/2;
	yy=screen.availHeight/2-hei/2;
	str=(isNS4||isNS6)?"screenX=" + Math.round(xx) + ",screenY=" + Math.round(yy):"left=" + Math.round(xx) + ",top=" + Math.round(yy);
	if (title==''){title='Astoria';}
	window.open(name,title,'width='+wid+',height='+hei+',toolbar=no,scrollbars='+sbar+',resizable='+sbar+','+str);
}


function openWin1(name,wid,hei,sbar,title){
	xx=screen.availWidth/2-wid/2;
	yy=screen.availHeight/2-hei/2;
	str=(isNS4||isNS6)?"screenX=" + Math.round(xx) + ",screenY=" + Math.round(yy):"left=" + Math.round(xx) + ",top=" + Math.round(yy);
	if (title==''){title='Astoria';}
	var url = document.URL;
	name = name+"?"+url;
	window.open(name,title,'width='+wid+',height='+hei+',toolbar=no,scrollbars='+sbar+',resizable='+sbar+','+str);
}


function closeWin(){
	window.close();
}

function showDate(){
	today=new Date();
	week=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
	month=new Array('January','February','March','April','May','June','July','August','September','October','November','December');
	yearFinal=(isNS4)?(today.getYear()+1900):today.getFullYear();
	document.write('<p class="hour">'+week[today.getDay()]+', '+month[today.getMonth()]+' '+today.getDate()+', '+yearFinal+'</p>');
}
