function MM_openBrWindow(theURL,winName,features){
	window.open(theURL,winName,features); 
}

// -------------------------------------------------------------
// JUMP MENU
function jumpto(x){
	if (document.form1.jumpmenu.value != "null") {
		document.location.href = x
	}
}
// -------------------------------------------------------------

function changePage(selectObj) {
    	if( selectObj.value != '' ) {
        document.forms[0].submit();
    	}
}
// -------------------------------------------------------------
// SHOW / HIDE
			function show_hide(id, show){
			   el = document.getElementById(id)
			   el2 = document.getElementById("pic");
			   
				   if (null==show) show = el.style.display=='none';
				   el.style.display = (show ? '' : 'none');
				   el2.style.display = 'none';
		   }

			function addVenue(id, show){
			   el = document.getElementById(id)
			   
				   if (null==show) show = el.style.display=='none';
				   el.style.display = (show ? '' : 'none');
		   }
// -------------------------------------------------------------
		   	function deleteItem(item,id){
		   		answer = confirm("Are you sure you want to delete this item?\n\n There is no Undo!");
				if (answer !=0) { location = "delete.php?action=" + item + "&ID=" + id }
			}
// -------------------------------------------------------------
		   	function pendingCheck(){
		   		answer = confirm("Did you mean to set the status to Pending?\n\n Click cancel to go back and change it live, or ok to continue.");
				if (answer !=0) { location = "index.php?id=news" }
			}
			
			/* SAMPLE CALL 
			onClick="pendingCheck(); return false;"
			*/
// -------------------------------------------------------------