<!-- START OF TIME PRINTING -->



function initArray() {
 for(i=0;i<initArray.arguments.length; i++)
  this[i] = initArray.arguments[i];
}
var isnMonths=new initArray("January","February","March","April","May","June","July","August","September","October","November","December");
var isnDays= new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
today=new Date();
hrs=today.getHours();
min=today.getMinutes();
sec=today.getSeconds();
clckh=""+((hrs>12)?hrs-12:hrs); 
clckm=((min<10)?"0":"")+min;
clcks=((sec<10)?"0":"")+sec;
clck=(hrs>=12)?"p.m.":"a.m.";

var stnr="";
var ns="0123456789";
var a="";


<!-- END OF TIME PRINTING -->

<!-- START CHECK LOGIN MEMBERS -->

function check_members_login(){
	if (document.login.user_name.value ==""){
		window.alert("Please enter your Username!");
		document.login.user_name.focus()
		}
	else{
	document.login.action = "login.asp";
	document.login.submit();
	}
}
function window_onload() {
	document.login.user_name.focus()	
}

<!-- END CHECK LOGIN MEMBERS -->


<!-- START IMAGE POPUP EXACT WINDOW -->

function newWindow(newURL,imgWidth,imgHeight,imgName){
	if (document.images){
		//var imgName='';
		var nnWidth=imgWidth+12;
		var nnHeight=imgHeight+31;
		var ieWidth=imgWidth+11;
		var ieHeight=imgHeight+29;
		var maxWidth=screen.availWidth-30;
		var maxHeight=screen.availHeight-30;
		var winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=no,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		if (imgWidth>=maxWidth){
			nnWidth=maxWidth;
			ieWidth=maxWidth;
			ieHeight=ieHeight+16;
			winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=yes,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		}
		if (imgHeight>=maxHeight){
			nnHeight=maxHeight;
			ieHeight=maxHeight;
			ieWidth=ieWidth+15;
			winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=yes,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		}
		if ((imgWidth>=maxWidth)&&(imgHeight>=maxHeight)){
			nnWidth=maxWidth;
			nnHeight=maxHeight;
			ieWidth=maxWidth;
			ieHeight=maxHeight;
			winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=yes,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		}
		myWindow = window.open("","_blank",winSize)
		if (document.all){
			myWindow.resizeTo(ieWidth,ieHeight);
		}
		myWindow.document.write("<html><head><title>");
		myWindow.document.writeln(imgName);
		myWindow.document.write("</title></head><body marginwidth='0' marginheight='0' leftmargin='0' topmargin='0' bgcolor='White' ");
		//myWindow.document.write("onLoad='setTimeout(window.close, 30*1000)'");
		myWindow.document.write("><div align='left'><img src=");
		myWindow.document.writeln(newURL);
		myWindow.document.write(" name='preview' align='top' hspace=0 vspace=0 border=0 height=");
		myWindow.document.writeln(imgHeight);
		myWindow.document.write(" width=");
		myWindow.document.writeln(imgWidth);
		myWindow.document.write("></div></body></html>");
		myWindow.document.close();
		return;
	}
}	

<!-- END IMAGE POPUP EXACT WINDOW -->


