


function help_OnClick(sHelpID)
{
	var oHelp = document.all[sHelpID];
	if (oHelp != null)
	{
		if (oHelp.style.display == 'none')
			oHelp.style.display = '';
		else
			oHelp.style.display = 'none';

		return true;	//cancel postback
	}
	return false;	//failed so do postback
}

// Handle the enter key for a section of a form, binding it to the provided submit buton 
function HandleEnterKey(event) { 
var nav = window.Event ? true : false; 
if (nav) { 
return NetscapeEventHandler_KeyDown(event); 
} else { 
return MicrosoftEventHandler_KeyDown(); 
} 
} 

function NetscapeEventHandler_KeyDown(e) { 
if (e.which == 13 && e.target.type != 'textarea' && e.target.type != 'submit') { 
e.returnValue = false; 
e.cancel = true; 
e.preventDefault(); 
var att = e.target.attributes['SubmitControl']; 
if(att!=null) 
CallSubmit(att.value) 
return false; 
} 
return true; 
} 

function MicrosoftEventHandler_KeyDown() { 
if (event.keyCode == 13 && event.srcElement.type != 'textarea' && event.srcElement.type != 'submit') { 
event.returnValue = false; 
event.cancel = true; 
var att = event.srcElement.attributes['SubmitControl']; 
if(att!=null) 
CallSubmit(att.value) 
return false; 
} 
return true; 
}


