//Version 5.0
//4/11/2007
/**
 * common.js v5.0
 *
 * 4/11/2007
 *
 */
function BranchTo(myURL)
{
 top.location = myURL;
}

function Goto(list)
{
 var item=list.options[list.selectedIndex].value;

 if (item != '0') 
	 top.location = item;
}


function openWindow(theURL,winName,winWidth,winHeight,otherFeatures) 
{
	var x = 0;
	var y = 0;
	
	x = (screen.availWidth - 12 - winWidth) / 2;
	y = (screen.availHeight - 48 - winHeight) / 2;
	
	//if (otherFeatures != "") {otherFeatures = "," + otherFeatures}
	//var features = "screenX=" + x + ",screenY=" + y + ",width=" + winWidth + ",height=" + winHeight+",top="+y+",left="+x+"'" + otherFeatures

	var NewWindow = window.open(theURL,winName,'menubar=1,resizable=1,width=350,height=250');
	
	NewWindow.focus();
}

function branchTo(list)
{
 var item=list.value;

 top.location = item;
}

function confirmDeletion(thisDisplayInfoType, thisTitle, thisURL)
{
	var msg = "Do you want to\n\nDELETE the " + thisDisplayInfoType + " '" + thisTitle + "'?";
	
	if (confirm(msg)){
		msg = "Please Confirm to DELETE the " + thisDisplayInfoType + " '" + thisTitle + "'.";
		
		if (confirm(msg))
			window.location=thisURL;
	}
}