
function BlockSign() {
	// 33 - 47 ! " # $ % & ' ( ) * + , - . /
	// 58 - 64 : ; < = > ? @
	// 91 - 96 [ \ ] ^ _ `
	// 123 - 126 { | } ~
	if ((event.keyCode>32&&event.keyCode<48)||(event.keyCode>57&&event.keyCode<65)||(event.keyCode>90&&event.keyCode<97)||(event.keyCode>122 && event.keyCode<127))
		event.returnValue = false
}
function BlockQuote() {
	// 34 "
	// 39 '
	if (event.keyCode==34||event.keyCode==39)
		event.returnValue = false
}
function BlockNum() {
	// 48 - 57 0 1 2 3 4 5 6 7 8 9
	if (event.keyCode>=48 && event.keyCode<=57)
		event.returnValue = false;
}
function NumOnly() {
	if (event.keyCode>='0'.charCodeAt()&&event.keyCode <= '9'.charCodeAt())
		event.returnValue = true;
	else
		event.returnValue = false;
}

function ExecuteURL(url){
	document.frmMain.action = url;
	document.frmMain.submit();
}

function winOpen(url){
	var h = 600;
	var w = 780;
			
	var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var settings = 'height=' + h + ',width=' + w + ',top=' + (TopPosition-50) + ',left=' + LeftPosition + ',toolbar=no, menubar=no, scrollbars=yes, resizable=yes, status=no'
			
	var rtnVal = window.open(url, 'ITRACK', settings)

}

function winOpenResume(url){
	var h = 600;
	var w = 780;
			
	var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var settings = 'height=' + h + ',width=' + w + ',top=' + (TopPosition-50) + ',left=' + LeftPosition + ',toolbar=no, menubar=no, scrollbars=yes, resizable=yes, status=no'
			
	var rtnVal = window.open(url, 'INETDETAIL', settings)

}
function winOpenModal(url){

	//var iWdDlg = 780
	//var iHtDlg = 710
	//var sFeatures = "dialogWidth:" + iWdDlg + "px; dialogheight:" + iHtDlg + "px; status:no; unadorned:yes; help:no"
		
	//oChildWin = window.showModalDialog(url, window, sFeatures);

	winOpen(url);
}

function ConfirmExectue(url,alertmsg){
	if(confirm(alertmsg)){
		ExecuteURL(url);
	}
}

function winOpenAdj(url, widthb, heightb, toolb, menub, scrollb, resizeb, statusb){
	var h = heightb;
	var w = widthb;
	var t = toolb
	var m = menub
	var sc = scrollb
	var r = resizeb
	var st= statusb

	var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var settings = 'height=' + h + ',width=' + w + ',top=' + (TopPosition-50) + ',left=' + LeftPosition + ',toolbar=' + t + ', menubar=' + m + ', scrollbars=' + sc + ', resizable=' + r + ', status=' + st + ''
	var rtnVal = window.open(url, '', settings)
	rtnVal.focus();
}

function winOpenAdjNotnew(url, widthb, heightb, toolb, menub, scrollb, resizeb, statusb, popname){
	var h = heightb;
	var w = widthb;
	var t = toolb
	var m = menub
	var sc = scrollb
	var r = resizeb
	var st= statusb

	var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var settings = 'height=' + h + ',width=' + w + ',top=' + (TopPosition-50) + ',left=' + LeftPosition + ',toolbar=' + t + ', menubar=' + m + ', scrollbars=' + sc + ', resizable=' + r + ', status=' + st + ''
	var rtnVal = window.open(url, popname, settings)
	rtnVal.focus();
}
