// ****************************************************************
// File Name:			openWindow.js
// Description:			在用户删除、修改前提示
// Function:					
// -------------------------
// 2001-8-22,Created by yzy
// ****************************************************************

/******************************************************************
* Function Name:		showModal
* Description:			弹出一个modalDialog
* Parameters:			theUrl-->表示预弹出的页面, theTitle-->弹出页面的Title
*						theWidth, theHeight-->弹出窗口的宽、高
* Return:				无
* Author:				yzy
* Createddate:			2001-8-22
* showModal Start*************************************************/
	function showModal(theUrl, theTitle, theWidth, theHeight, theArguments)
	{
		var theScriptFile = theUrl;
		var intParaBegin = theUrl.indexOf("?");
		if (intParaBegin >= 0)
		{
			theScriptFile = theUrl.substr(0, intParaBegin);
		}

		var intPathLen = theScriptFile.lastIndexOf("../");
		var pathUrl = "";
		if (intPathLen >= 0)
		{
			intPathLen += 3;
			pathUrl = theUrl.substr(0, intPathLen);
			//theUrl = theUrl.substr(intPathLen, theUrl.length - intPathLen);
		}
		return window.showModalDialog (pathUrl + "/Root/ShowModalFrame.asp?Url=" + escape(theUrl) + "&Title=" + escape(theTitle), theArguments, "help:no;status:no;dialogWidth:" + theWidth + "px;dialogHeight:" + theHeight + "px");
	}
/* showModal End *************************************************/

function openFullWin(url){
	window.open(url, "FullScreen", "fullscreen=1");
}

function openWindow(url, width, height){
	window.open(url, "", "resizable=no,width=" + width + ",height=" + height);
}
