function VALIDATE_SIGN(){
if (document.frm.sign.value==":") {
	alert("Please enter sign handle.")
	document.frm.sign.focus()
return false }
if (document.frm.url.value=="http://") {
	alert("Please enter sign URL.")
	document.frm.url.focus()
return false }
}
function VALIDATE_TYPE(){
if (document.frm.name.value=="") {
	alert("Please enter category name.")
	document.frm.name.focus()
return false }
}
function VALIDATE_EVENT_PUB(){
if (document.form1.title.value=="") {
	alert("Please enter event title.")
	document.form1.title.focus()
return false }
if (document.form1.event.value=="") {
	alert("Please enter event content.")
	document.form1.event.focus()
return false }
if (document.form1.name.value=="") {
	alert("Please enter your name.")
	document.form1.name.focus()
return false }
if (document.form1.email.value=="") {
	alert("Please enter your email address.")
	document.form1.email.focus()
return false }
}
function VALIDATE_EVENT(){
if (document.form1.title.value=="") {
	alert("Please enter event title.")
	document.form1.title.focus()
return false }
if (document.form1.event.value=="") {
	alert("Please enter event content.")
	document.form1.event.focus()
return false }
}
function movepic(img_name,img_src){
	document[img_name].src=img_src;
}
function AskSign(ID,I_NAME) {
	if (confirm("Delete Sign : "+ I_NAME )) {
		window.location.replace("del_sign.asp?ID=" + ID );
	}
}
function AskType(ID,I_NAME) {
	if (confirm("Delete Category : "+ I_NAME )) {
		window.location.replace("del_type.asp?ID=" + ID );
	}
}
function AskEvent(ID,I_NAME) {
	if (confirm("Delete Event : "+ I_NAME )) {
		window.location.replace("del.asp?ID=" + ID );
	}
}
function AskEventIndex(ID,I_NAME,curdate,action,show) {
	if (confirm("Delete Event : "+ I_NAME )) {
		window.location.replace("del.asp?ID=" + ID + "&curdate=" + curdate + "&action=" + action + "&show=" + show );
	}
}
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function showRemoteSolution() {
	// if (confirm("This action will overwrite any content already entered. Continue ?")) {
		self.name = "main";
		var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
		"toolbar=NO,menubar=NO,location=NO,scrollbars=YES,resizable=YES,width=600,height=300";
		OpenWindow = window.open("event_lookup.asp", "remote", windowprops); // opens remote control
	// }
}
function printit(){  
	if (window.print) {
	    window.print() ;  
	} else {
	    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
	document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
	    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
	}
}

