function onLoadRoutine()
{
	disableForm();
	hideHelp();
}

function disableForm()
{
	document.forms[0].submitButt.disabled=true;
	document.forms[0].Code.disabled=true;
	document.forms[0].submitButt.style.backgroundColor = "#eaeaea";
	document.forms[0].Code.style.backgroundColor = "#eaeaea";
}

function enableForm()
{
	document.forms[0].submitButt.disabled=false;
	document.forms[0].Code.disabled=false;
	document.forms[0].submitButt.style.backgroundColor = "#10afe5";
	document.forms[0].Code.style.backgroundColor = "#10afe5";
}

function showHideHelp()
{
	if(document.getElementById('helpDiv').style.display == 'none')
		showHelp();
	else
		hideHelp();
}

function showHelp()
{
	document.getElementById('helpDiv').style.display = "block";
}

function hideHelp() 
{
	document.getElementById('helpDiv').style.display = "none";
}

function agreeDisagree()
{
	if(document.forms[0].submitButt.disabled)
		enableForm();
	else
		disableForm();
}