
/*function capEnt(e)
{
	var key = document.all?window.event.keyCode:e.which;
	return (key != 13 && key != 3);
}
if (document.layers) document.captureEvents(Event.KEYPRESS);
document.onkeypress = capEnt;
*/

function disableValidation()
{
	var i;
	for(i = 0; i < Page_Validators.length; i++)
	{
		Page_Validators[i].style.visibility = "hidden";
	}
	Page_ValidationActive = false;
}

function openReport(rptType)
{
	var page = "report.aspx?rpt=" + rptType.toString();
	window.open(page, 'Nutshell Report', 'height=600,location=no,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,width=800');
}

function popWin(page)
{
	window.open(page, 'help', 'menubar=no,height=560,width=820,resizable=yes,scrollbars=yes,toolbar=no,location=no,status=no');
}

// Function to print the Div content.
function printField(divName)
{
	var doc = document.getElementById(divName);
	if(doc == null)
		return false;

	pWin = window.open('NutshellPrint','pWin','location=false,height=500,width=500,,menubar=yes,scrollbars=yes,toolbar=yes');

	if(pWin == null)
		return false;

	pWin.document.open();
	pWin.document.write('<html><head></head><body>');
	pWin.document.write(doc.innerHTML);
	pWin.document.write('</body></html>');
	pWin.print();
	pWin.document.close();
	pWin.close();
	return false;
}
