
/****************************************************************/

function P7_JumpMenu(selObj,restore){ //v1.7 by Project Seven
	var theFullString = selObj.options[selObj.selectedIndex].value;
	if (restore) selObj.selectedIndex=0;
	var theLength = theFullString.length;
	var endPos = theFullString.lastIndexOf("~");
	var theUrl, theTarget, theParent;
	if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
	else {theUrl = theFullString;}
	endPos++
	if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}
	else {theTarget = "window:Main";}
	if (theTarget == "window:New") {window.open(theUrl);}
	else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
	else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
}

/****************************************************************/

function SelectAll(){
	for (var i=0;i<document.form1.project_id.length;i++){
		var e = document.form1.project_id[i];
		e.checked = true;
	}
}
function SelectAllDelete(){
	for (var i=0;i<document.form1.project_iddelete.length;i++){
		var e = document.form1.project_iddelete[i];
		e.checked = true;
	}
}
function DeselectAll(){
	for (var i=0;i<document.form1.elements.length;i++){
		var e = document.form1.elements[i];
    		e.checked = false;
	}
}
function openWindow(url) {
	window.open(url,'new_page','width=425,height=300,scrollbars=no')
}
function openWindow1(url) {
	window.open(url,'new_page','width=450,height=525,scrollbars=yes,toolbars=yes,menubar=yes,resizable=yes')
}
function openWindow2(url) {
	window.open(url,'new_page','width=500,height=750,scrollbars=yes,toolbars=yes,menubar=yes,resizable=yes')
}

/****************************************************************/

function toggle(id){
	ul = "ul_" + id;
	img = "img_" + id;
	ulElement = document.getElementById(ul);
	imgElement = document.getElementById(img);
	if (ulElement){
		if (ulElement.className == 'closed'){
		ulElement.className = "open";
		imgElement.src = "/images/opened.gif";
		}else{
		ulElement.className = "closed";
		imgElement.src = "/images/closed.gif";
		}
	}
}

/****************************************************************/

