<!--


function GetRootDir(){
	var strLocation, strVirtualDirName;
	var intStartPos, intEndPos;
	strLocation = top.window.location.href;
	intStartPos = strLocation.indexOf("//");
	if (intStartPos == -1)	// 不包含//，只好返回空了
		strVirtualDirName = "";

	intStartPos = strLocation.indexOf("/", intStartPos + 2);
	if (intStartPos == -1)	// 不包含/，只好返回空了
		strVirtualDirName = "";

	intEndPos = strLocation.indexOf("/", intStartPos + 1);
	if (intEndPos == -1){

		strVirtualDirName = strLocation.substr(intStartPos);
	}
	else{

		strVirtualDirName = strLocation.substr(intStartPos, intEndPos - intStartPos + 1);
	}
	return strVirtualDirName;
}
function MWalert(intType,strMessage){
		var strTemp;
		var strVersion;
		var varReturn;
		strVersion = navigator.appVersion;
		strTemp = GetRootDir() + "MsDialog/alertwindow.asp?intType=" + intType +"&strMessage="+strMessage + "&Rnd=" + Math.random();
		if(strVersion.indexOf("MSIE 5")!=0 && strVersion.indexOf("MSIE 5")!=-1)
			varReturn = top.window.showModalDialog(strTemp,"Dialog Arguments Value","dialogHeight: 172px; dialogWidth: 300px; center: Yes; help: No; resizable: No; status: no;");
		else{
			varReturn = top.window.showModalDialog(strTemp,"Dialog Arguments Value","dialogHeight: 187px; dialogWidth: 300px; center: Yes; help: No; resizable: no; status: no;");
		}
		return varReturn;
}
//-->