var MyWidget
function SetDate(what,where){
	MyWidget = what	
	where.focus()
	window.open('http://www.aub.edu.lb/cgi-bin/calendar.pl?cgitype=calendar','CALENDAR','height=250,width=250,scrollbars');
}
function onerror(msg, URL, lineNum) {
	var errWind = window.open("","errors","HEIGHT=260,WIDTH=400")
	errWind.document.write("<HTML>")
	errWind.document.write("<TITLE>Script Error Report </TITLE>")
	errWind.document.write("<BODY BGCOLOR=RED>")
	errWind.document.write("<B>An error has occurred on this page.  Please report it to AUB's JavaScript Tech Support.</B>")
	errWind.document.write("<FORM METHOD=POST ACTION='http://www.aub.edu.lb/cgi-bin/nph-mail.pl'>")
	errWind.document.write("<input type=hidden name=mailto value='webmaster@aub.edu.lb'>")
	errWind.document.write("<input type=hidden name=subject value='Javascript Automated Error Report'>")
	errWind.document.write("<input type=hidden name=nextpage value='http://www.aub.edu.lb/JavaScript/Error.html'>")
	errWind.document.write("<input type=hidden name=URL value='")
	errWind.document.write(URL)
	errWind.document.write("'>")
	errWind.document.write("<input type=hidden name=ErrorMessage value='")
	errWind.document.write(msg)
	errWind.document.write("'>")
	errWind.document.write("<input type=hidden name=LineNumber value='")
	errWind.document.write(lineNum)
	errWind.document.write("'>")
	errWind.document.write("<input type=hidden name=BrowserVersion value='")
	errWind.document.write(navigator.userAgent)
	errWind.document.write("'>")
	errWind.document.write("<TEXTAREA name=Report COLS=45 ROWS=8 WRAP=VIRTUAL>")
	errWind.document.write("Please describe what you were doing when the error occurred:")
	errWind.document.write("</TEXTAREA><P>")
	errWind.document.write("<INPUT TYPE=SUBMIT VALUE='Send Error Report'>")
	errWind.document.write("<INPUT TYPE=button VALUE='Cancel' onClick='self.close()'>")
	errWind.document.write("</FORM></BODY></HTML>")
	errWind.document.close()
	return true
}
window.onerror = null
