function hideOrShowErrorMessageDiv(msgDivCss){
	try{
		var pholder = $$("."+msgDivCss);
		if(pholder == null || pholder.length == 0)return false;
		pholder = pholder[0];
		var innerHTMLValue = pholder.innerHTML.strip();
		if(innerHTMLValue.empty()){
			pholder.style.display = "none";
		}else{
			pholder.style.display = "block";
		}
	}catch(e){//swallow excpetion if could not find the div
	}
}

		function onEnterKeyPerformAction(e, actionClass){
			if(e.charCode=='13'||e.keyCode==13||e.charCode==13){
				try{
				document.getElementsByClassName(actionClass)[0].onclick();
				e.returnValue = false;
				}catch(ex){}
			}
			return false;
		}

