function confirmSubmit(msg)
{
var agree=confirm(msg);
if (agree)
	return true ;
else
	return false ;
}

function confirmSubmitCustom(comment)
{
var agree=confirm(comment);
if (agree)
	return true ;
else
	return false ;
}


function OpenAWindow(url,XDim,YDim,WinName) {
	if (arguments.length > 1) {
		var width = String(arguments[1]);
		var height = String(arguments[2]);
		if ((loc = width.indexOf("%")) != -1) {
			width = width.slice(0, loc);
			width = Number(width);
			width = screen.width * (width / 100);
		}
		if ((loc = height.indexOf("%")) != -1) {
			height = height.slice(0, loc);
			height = Number(height);
			height = screen.height * (height / 100);
		}
	} else {
		var width = 800;
		var height = 480;
	}
	var attributeString = 'height=' + height + ',width=' + width + ',scrollbars=yes,resizable=yes,screenX=10,screenY=10,top=10,left=10';
	//alert(attributeString);
	Mywin=window.open(url, WinName, attributeString);
	Mywin.focus();
}
function OpenAWindowNoScrolls(url,XDim,YDim,WinName) {
	if (arguments.length > 1) {
		var width = String(arguments[1]);
		var height = String(arguments[2]);
		if ((loc = width.indexOf("%")) != -1) {
			width = width.slice(0, loc);
			width = Number(width);
			width = screen.width * (width / 100);
		}
		if ((loc = height.indexOf("%")) != -1) {
			height = height.slice(0, loc);
			height = Number(height);
			height = screen.height * (height / 100);
		}
	} else {
		var width = 640;
		var height = 480;
	}
	var attributeString = 'height=' + height + ',width=' + width + ',scrollbars=no,resizable=yes,screenX=200,screenY=200,top=200,left=200';
	//alert(attributeString);
	Mywin=window.open(url, WinName, attributeString);
	Mywin.focus();
}
