function ForumJump(URL) {
	
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
	return true;
}

function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}


function OpenPreviewWindow(targetPage, formName){
	
	now = new Date  
	
   	winOpen('','preview','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=680,height=400')
   		
   	formName.action = targetPage + "?ID=" + now.getTime();	
	formName.target = "preview";
	formName.submit();
}

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 = 650;
	var w = 1000;
			
	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, '', settings)

}

function winOpenSch(url){
	var h = 500;
	var w = 600;
			
	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, 'SCHEDULE', settings)


}
function winOpenMini(url){
	var h = 400;
	var w = 400;
			
	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, 'MINI', settings)

}

function winChatOpen(url){
	var h = 600;
	var w = 800;
			
	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, 'CHAT', 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);

}

function ConfirmExectue(url,alertmsg){
	if(confirm(alertmsg)){
		ExecuteURL(url);
	}
}

