CALENDAR.htm 1.2 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<link rel="STYLESHEET" type="text/css" href="CSS/CSSVIEW.css">
<script src="../../JS/CALENDAR.js"></script>
<script language="JavaScript">
<!--
function setName(){
	document.csccalendar.__temp.value = window.opener.document.cscform.__calendar.value;
	document.csccalendar.__format.value = window.opener.document.cscform.__dateformat.value;
	document.csccalendar.__language.value = window.opener.document.cscform.__language.value;
}

function initDoc(){
	setName();
	var conNo=eval("window.opener.document.cscform."+document.csccalendar.__temp.value);
	var dc = conNo.value.split("-");
	//alert(dc[0]+":"+dc[1]+":"+dc[2]);
	//alert(conNo.value);
	//alert(document.csccalendar.__format.value);
	if (conNo.value != "") {
		setTodayDay(dc[1],dc[0],dc[2]);	
	}

	paintCal(dc[1],dc[0],dc[2]);
	//window.opener.cscform.__birthday.focus();
	//setClock();
}
//-->
</script>
</head>
<body onload="initDoc();">
	<form name="csccalendar">
	<div id=calLayer ID=calLayer align="center"></div>
	<input type="hidden" name="__language">
	<input type="hidden" name="__temp">
	<input type="hidden" name="__format">
	</form>
</body>
</html>