function checkCR(evt) {
  var evt  = (evt) ? evt : ((event) ? event : null);
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
   if ((evt.keyCode == 13) && (node.type=="text")) {
		alert("Sorry, You can't press ENTER  !!");
		return false;
	}
}
document.onkeypress = checkCR;

function Del(mypage) {
var agree=confirm("Are you sure to delete this record?");
		if (agree){
			//alert('url : '+mypage);
			window.location=mypage;
		}
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}