//Function to jump to another forum
function ForumJump(URL) {
	
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
	return true;
}

//Function to open pop up window
function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}


//Function to open preview post window
function OpenPreviewWindow(targetPage, formName){
	
	now = new Date  
	
	//Open the window first 	
   	openWin('','preview','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=680,height=400')
   		
   	//Now submit form to the new window
   	formName.action = targetPage + "?ID=" + now.getTime();	
	formName.target = "preview";
	formName.submit();
}

// Function to open in Main window
function openInMainWin(URL) {
	var day = new Date();
	var id = day.getTime();
	var wdh = ( w == null || w == "" || w == "undefined" ) ? 250 : w;
	var hgh = ( h == null || h == "" || h == "undefined") ? 160 : h;
	var tp = ( t == null || t == "" || t == "undefined") ? 200 : t;
	var lft = ( l == null || l == "" || l == "undefined") ? 100 : l;
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no, width=" + wdh + ", height=" + hgh + ", left =" + lft + ", top = " + tp + "');");
}