CALENDARSTD.htm 1.41 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 42 43 44 45 46
<!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(){

//	alert(window.opener.document.cscform.__dateformat.value);

	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);

	if(conNo.value != ""){

		var dc = conNo.value.split("-");

		//alert(dc[0]+":"+dc[1]+":"+dc[2]);

		//alert(conNo.value);

		//alert(document.csccalendar.__format.value);

		//setTodayDay(dc[1],dc[0],dc[2]);

		//paintCal(dc[1],dc[0],dc[2]);
		setTodayDay(dc[1],dc[2],dc[0]);

		paintCal(dc[1],dc[2],dc[0]);

	//	setClock();

	}else{

		paintCal(null,null,null);

	}

}

//-->

</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>