
//Return browser type
function getBrowserType(){
	sAgent = navigator.userAgent;
	if (sAgent.indexOf("Mac")  > -1) return "MAC";
	if (sAgent.indexOf("IE 4") > -1) return "IE4";
	if (sAgent.indexOf("IE 5") > -1) return "IE5";
	bIsIE = sAgent.indexOf("MSIE") > -1;
	if (sAgent.indexOf("Mozilla") > -1 && !bIsIE) return "NN";
}

function getTodaysDate(){
	var now = new Date();
	var tdate = "";

	var dArray = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	var mArray = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
	tdate = dArray[now.getDay()] + " " + mArray[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear();
	return tdate;
}

function setCellColor(cid, color){
	if (document.all) {
		document.all(cid).bgColor = color
	}else{
	}
}

function openPicture(imgSrc, imgCaption){
	img = new Image()
	img.src = imgSrc
	var strHTML = "<html><head><title>Photo</title></head>"
	strHTML = strHTML + "<body onblur='javascript:self.focus()'><table align=center width=100% height=100% border=0><tr><td align=center><table border=0 cellpadding=1 cellspacing=0><tr><td bgcolor=navy align=center valign=middle><img src=" + img.src + "></td></tr></table></td></tr><tr><td align=center><b>" + imgCaption.toString() + "</b></td></tr><tr><td align=center valign=bottom><form><input type=button value=' Close ' onclick='javascript:self.close()'></form></p></td></tr></table>"
	strHTML = strHTML + "</body></html>"
	winPhoto = window.open("","","fullscreen=0,menubar=0,toolbar=0,top=0,left=0,width=300,height=400,resizable=1", true);
	winPhoto.document.write(strHTML)
	winPhoto.document.close()
}
