在VS2008的代码升级到2010版本时产生错误

vs2008版本的代码

<script language="JavaScript">

	window.onload = initWindow;
	function initWindow() {
	    window.returnValue = "";
		cal.setDate(window.dialogArguments);
	}

用iis运行后时间表这块显示如下错误:

 

function calendar(t) {
	var sPath =  "Script/calContainer.htm";
	strFeatures = "status=no;dialogWidth=225px;dialogHeight=230px;center=yes;help=no";
	sDate = showModalDialog(sPath,t.value,strFeatures);
	t.value = sDate;
}

function calendar2(t) {

	var sPath =  "../Script/calContainer.htm";
	strFeatures = "status=no;dialogWidth=243px;dialogHeight=230px;center=yes;help=no";
	sDate = showModalDialog(sPath,t.value,strFeatures);
	t.value = sDate;
}

 请问大家这个要怎么改呀?

你写的是JavaScript,跟编辑器无关,只跟浏览器有关,你应该是升级了vs,把默认浏览器改成IE了,你试试用谷歌浏览器打开你的网页试试(不要用vs调试,直接引用ip的形式在浏览器访问)