// JavaScript Document



function IBLogin2() {
 	var win_height=screen.height-100;
	var win_width=screen.width-30;
	var newin = window.open("https://is2.cuviewpoint.net/mvpindustriesmutual/Login.asp","IBANK3_1","status=yes,scrollbars=yes,resizable=yes,width=" + win_width + ",height=" + win_height + ",top=0,left=0");
 }
 function IBLogin() {
 	var win_height=screen.height-100;
	var win_width=screen.width-30;
	var newin = window.open("https://www.sharedservices.com.au/secure/ibanking/imcu/popup.asp","IBANK3_1","status=yes,scrollbars=yes,resizable=yes,width=" + win_width + ",height=" + win_height + ",top=0,left=0");
	
 }


// SETLOGIN.JS
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;
	}
}


