function showMessageBox(argText, argTitle, argOK, argText1, argText2, argWidth) {
	var sFeature
	var iReturn
	var oObj = new Object()

	oObj.title = argTitle
	oObj.text = argText
	oObj.buttonType = argOK
	oObj.buttonText1 = argText1
	oObj.buttonText2 = argText2

	if (!argWidth)
		argWidth = 400

	sFeature = "status:no;dialogHeight:230px;dialogwidth:" + argWidth + "px; scroll:no;help:no"

	iReturn = window.showModalDialog("/templates/en/1/js/messageBox.htm", oObj, sFeature)

	return iReturn
}

function createPopupWindow(argPage, argName, argTool, argWidth, argHeight) {
	var varWin, varFeature, varPage, varName

	if (argTool == 2)
		varFeature = "toolbar=yes,location=yes,menubar=yes,scrollbars=auto,resizable=yes,"
	else if (argTool)
		varFeature = "toolbar=yes,location=no,menubar=no,scrollbars=no,resizable=no,"
	else
		varFeature = "toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,"

	if (!argWidth)
		argWidth = window.screen.width

	if (!argHeight)
		argHeight = window.screen.height

	varFeature += "width=" + argWidth + ",height=" + argHeight + ","
	varFeature += "top=" + (window.screen.height - argHeight) / 2 + ","
	varFeature += "left=" + (window.screen.width - argWidth) / 2
	
	varWin = window.open(argPage, argName, varFeature, true)
	
	varWin.focus()
}