function Popup(Url,PopupName,dl_width,dl_height){
	var x		= Math.round((screen.availWidth  - dl_width) / 2);
	var y		= Math.round((screen.availHeight - dl_height) / 2);
window.open(Url,PopupName,"left=" + x + ",top=" + y + ",width="+dl_width+",height="+dl_height+",memubar=no");
}

function Popup_scroll(Url,PopupName,dl_width,dl_height){
	var x		= Math.round((screen.availWidth  - dl_width) / 2);
	var y		= Math.round((screen.availHeight - dl_height) / 2);
	window.open(Url,PopupName);
/*window.open(Url,PopupName,"left=" + x + ",top=" + y + ", scrollbars=auto,resizable=no,width="+dl_width+",height="+dl_height+",memubar=no");*/
}
///////////////////////////////////////////
function checkInput() {
var key = window.event.keyCode;
var allowedKeys = new Array(13, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,46);
for (i = 0; i < allowedKeys.length; i++) {
if ( key == allowedKeys[i] ) 
return true; 
};
}


///////////////////////////////////
function isNumber(inputVal) {
oneDecimal = false
inputStr = inputVal.toString()
for (var i = 0; i < inputStr.length; i++) {
var oneChar = inputStr.charAt(i)

if (i == inputStr.length-1 && oneChar == ".") {
return false
}

if (i == 0 && oneChar == "-") {
continue
}

if (oneChar == "." && !oneDecimal) {
oneDecimal = true
continue
}

if (oneChar < "0" || oneChar > "9") {
return false
}
}
return true
}



  function display_yes(ID)
	 {
		
		 xxl=document.getElementById(ID)
  	 xxl.style.display=xxl.style.display=="none"?"":"none";
	 }