
function fnTrapKD(btn){
	if (document.all){
		if (event.keyCode == 13){
			event.returnValue=false;
			event.cancel = true;
			btn.click();
		}
	}
}


function SetValue(element, str, ex){
	if(element.value == ex)
		element.value = str;
}


function popContent(PageID){
	pop(560, 400, "PopContent.aspx?PageID=" + PageID, "yes", "yes");
}

function pop(w, h, p, n, s, r){
	var theHeight=h;
	var theWidth=w;
	var theTop=(screen.height/2)-(theHeight/2)
	var theLeft=(screen.width/2)-(theWidth/2)
	var	features='height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft;
	var winPop = window.open(p,n,"scrollbars="+s+","+features+",resizable="+r+"");
	winPop.focus();
}



