function OpenIBWindow(s)
{
	var width = 795;
	var height = 560;
	var newWin1
								  
	newWin1 = window.open(s, "", "toolbar=0,status=1,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
}

function setLogin(s)
{
	for (var i = 0; i < document.login_form.selectlogin.length; i++) {
		if (document.login_form.selectlogin[i].checked) {
			var str = document.login_form.selectlogin[i].value;
			break;
		}
	}
	var arrayOfURL = str.split(",");
	var URL1 = arrayOfURL[0];
	var URL2 = arrayOfURL[1];
	if (s == 1)
	{
		if (URL1 != "") window.location.href = URL1;
	}
	else
	{
		if (URL2 != "") window.location.href = URL2;
	}
}

function setLogin2(s)
{
	for (var i = 0; i < document.login_form2.selectlogin2.length; i++) {
		if (document.login_form2.selectlogin2[i].checked) {
			var str = document.login_form2.selectlogin2[i].value;
			break;
		}
	}
	var arrayOfURL = str.split(",");
	var URL3 = arrayOfURL[0];
	var URL4 = arrayOfURL[1];
	if (s == 1)
	{
		if (URL3 != "") window.location.href = URL3;
	}
	else
	{
		if (URL4 != "") window.location.href = URL4;
	}
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function P7_JumpMenu(selObj,restore){ //v1.4 by Project Seven
	var theName="MyWindow";
	var theParams='resizable=yes, status=yes, resizable=yes, width=790, height=555, top=10, left=10';
	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,theName,theParams);}
	else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
	else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
}