var sStartPath = '/enova/';

function showInfoDialog(sURL, sInputValue) 
{
	vReturnValue = window.showModalDialog(sURL , sInputValue);
}

function confirmDialog(sTitle, sMainText, sWidth, sHeight, sAdvanced) 
{
	return confirm(sMainText);
}

function helpDialog(sTitle, sMainText, sWidth, sHeight, sAdvanced) 
{
	return alert(sMainText);
}

function pageDialog(sUrl, sTitle, sWidth, sHeight, sAdvanced) 
{
	oArgs = new Object();
	oArgs.title = sTitle;
	
	var sFeatures = '';
	if (sWidth) sFeatures = 'dialogWidth:' + sWidth + 'px;';
	if (sHeight) sFeatures = sFeatures + 'dialogHeight:' + (sHeight + 20) + 'px;';
	if ((!sWidth) && (!sHeight)) sFeatures = 'dialogWidth:200px;dialogHeight:200px;';
	if (sAdvanced) {sFeatures = sFeatures + sAdvanced}
	else {sFeatures = sFeatures + "status:no"}
	
	vReturnValue = window.showModalDialog(sUrl, oArgs, sFeatures);
	return vReturnValue;
}
