<%@ Page Language="vb" AutoEventWireup="false" Codebehind="servercontrols4.aspx.vb" Inherits="WebFormDemo.calendar"%>
<HTML>
	<HEAD>
		<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
		<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
		<meta name="vs_defaultClientScript" content="JScript">
		<meta name="vs_targetSchema" content="Internet Explorer 5.0">
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="calendar" method="post" runat="server">
			Enter Your News Story
			<table border="1">
				<tr>
					<td>
						Title
					</td>
					<td>
						<input type="text" id="text1" size="40">
					</td>
				</tr>
				<tr>
					<td>
						Dates to run
					</td>
					<td>
						From <input type="text" id="date1" size="10"> <input type="button" onclick="return openCal('date1');" value="date" name="button1">
						&nbsp;&nbsp;&nbsp; to &nbsp;&nbsp;&nbsp; <input type="text" id="date2" size="10">
						<input type="button" onclick="return openCal('date2');" value="date" name="button2">
					</td>
				<tr>
					<td>
						Body
					</td>
					<td>
						<textarea rows="15" cols="45" id="textarea1" runat="server" NAME="textarea1"></textarea>
					</td>
				</tr>
			</table>
		</form>
		<script language="javascript">
<!--
function openCal(sendTo){
		var url = 'calshow.aspx?&sendto=' + sendTo
		//alert(url);
		window.open(url,null,'height=235,width=250,toolbar=no, status=no,menubar=no,scrollbars=yes');
		return true;
}
//-->
		</script>
	</body>
</HTML>
