


var quickLinkLabel =new Array();
var quickLinkLink =new Array();

function addQuickLink(theLabel,theLink){

	if (theLabel && theLink){
		quickLinkLabel[quickLinkLabel.length]=theLabel;
		quickLinkLink[quickLinkLink.length]=theLink;
	}


}

addQuickLink("Bank of Ireland Group","http://www.bankofireland.com")
addQuickLink("BoI Asset Mgt","http://www.biam.ie")
addQuickLink("BoI Finance","http://www.bif.ie")
addQuickLink("BoI Isle of Man","http://www.boiiom.com")
addQuickLink("BoI Life","http://www.bankofirelandlife.ie")
addQuickLink("BoI Mortgages","http://personalbanking.bankofireland.com/mortgages/")
addQuickLink("BoI Securities Services","http://www.boiss.ie")
addQuickLink("Branch Network","http://www.bankofireland.com/contact-us/branch-locator/")
addQuickLink("Bristol &amp; West Financial","http://www.bristol-west.co.uk")
addQuickLink("Business &amp; Retail Banking NI","http://www.bankofireland.co.uk")
addQuickLink("Business Banking Ireland","http://businessbanking.bankofireland.com/")
addQuickLink("Business Banking UK","http://www.bank-of-ireland.co.uk/")
addQuickLink("Capital Markets","http://capitalmarkets.bankofireland.com/")
addQuickLink("Corporate Communications","http://www.bankofireland.com/about-boi-group/press-room/")
addQuickLink("First Rate","http://www.bankofireland.com/contact-us/business-units/retail-ireland-and-uk/")
addQuickLink("Global Markets","http://www.treasuryspecialists.com/gns/home.aspx")
addQuickLink("IBI Corporate Finance","http://www.ibicorporatefinance.ie/")
addQuickLink("Insurance Business","http://personalbanking.bankofireland.com/insurance/")
addQuickLink("Iridian","http://www.iridian.com")
addQuickLink("New Ireland","http://www.newireland.ie")
addQuickLink("NIIB","http://www.niibfinance.com")
addQuickLink("Northridge","http://www.northridgefinance.com")
addQuickLink("Personal Lending UK","http://www.bank-of-ireland.co.uk")
addQuickLink("Personal Lending","http://personalbanking.bankofireland.com/")
addQuickLink("Private Banking","http://www.privatebanking.ie")


function init() {
	populateDropDown()
}

/*window.onload = init;


function populateDropDown(){

	selectObject=document.getElementById("group_a");
	selectObject.options.length = 0;

	for (var i = 0; i < quickLinkLabel.length; i++) {
		var option = document.createElement('option');
		option.setAttribute('value',quickLinkLink[i]);
		option.appendChild(document.createTextNode(quickLinkLabel[i]));
		selectObject.appendChild(option);
	}
}*/


//Function called with onsubmit
//the select dropdown is expected to be called "href"
function redirectToQuicklinkUrl(formObj) {
	if (formObj.href) {
		if (formObj.href.options) {
			if (formObj.href.options[formObj.href.selectedIndex].value!="") {
				if (formObj.href.options[formObj.href.selectedIndex].value.indexOf("http:") == -1) {
					document.location.href=formObj.href.options[formObj.href.selectedIndex].value;
				} else {
					openPopWindow(formObj.href.options[formObj.href.selectedIndex].value,"","");
				}
			}
		}
	}
	return false;
}

function openPopWindow(windowUrl, windowIdentifier, windowProperties) {
	var nWindow = window.open(windowUrl, windowIdentifier, windowProperties);
}




/*function checkForm(form) {
var count=1;
alertText="Please fill in the following fields:\n--------------------------------------------------------------------------------\n";
	for (var i=0; i<form.elements.length; i++) {
	  	if ((form.elements[i].value=="") &&(form.elements[i].type!="select")) {

					alertText+=replace(count+": "+form.elements[i].name+":\n");
					count++;
		}
	}
	if (alertText=="Please fill in the following fields:\n--------------------------------------------------------------------------------\n") {
		return true;
	}
	else {
		alert(alertText+"\n--------------------------------------------------------------------------------\n");
		return false;
	}
}*/
function checkForm(form) {
var count=1;
alertText="Please fill in the following fields:\n--------------------------------------------------------------------------------\n";
	for (var i=0; i<form.elements.length; i++) {
	  	if ((form.elements[i].value=="") &&(form.elements[i].type!="select") && (form.elements[i].name!="Email_Address")&& (form.elements[i].name!="extension")&& (form.elements[i].name!="evening_tel_no")&& (form.elements[i].name!="homeaddressline3")&& (form.elements[i].id!="eru_name")&& (form.elements[i].id!="eru_surname")&& (form.elements[i].id!="eru_companyname")&& (form.elements[i].id!="eru_address")&& (form.elements[i].id!="eru_towncity")&& (form.elements[i].id!="eru_county")&& (form.elements[i].id!="eru_country") && (form.elements[i].id!="over18") && (form.elements[i].id!="guardian_name") && (form.elements[i].id!="guardian_phone") && (form.elements[i].id!="guardian_address")) {
		alertText+=replace(count+": "+form.elements[i].name+":\n");
		count++;
		}
	}
	if (alertText=="Please fill in the following fields:\n--------------------------------------------------------------------------------\n") {
		return true;
	}
	else {
		alert(alertText+"\n--------------------------------------------------------------------------------\n");
		return false;
	}
}


function popprod(wname) {
	prodwin=window.open(wname,"Item","Toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=0,width=700,height=550")
	setTimeout('prodwin.focus()',500);
}



function replace(str) {
var ret="";
	for (var i=0; i<str.length; i++) {
		if (str.charAt(i)!="_") {
			ret+=str.charAt(i);
		}
		else {
			ret+=" ";
		}
	}
return ret;
}


function SiteStat365(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.365OnlineClickin";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatBOL(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.BOLClickin";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatsecurity(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.security";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatmorenews(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.morenews";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStat365BUS(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.365OnlineClickin";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatBOBUSL(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.BOLClickin";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatsecurityBUS(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.security";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatmorenewsBUS(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.morenews";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatFinancial(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.financial";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatHomeInsurance(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.homeinsurance";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatOnlineBanking(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.onlineBanking";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStat2in1(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.2in1";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStat2ndlevel(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.2ndlevel";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatTravelIns(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.travelinsurance";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatPOPLINK1(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.poplink1";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}
function SiteStatPOPLINK2(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.poplink2";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}
function SiteStatPOPLINK3(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?hp.feature.poplink3";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatPOPLINK1BUS(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.poplink1";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}
function SiteStatPOPLINK2BUS(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.poplink2";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}
function SiteStatPOPLINK3BUS(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.poplink3";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatBusinessAdvice(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.advice";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatBulletin(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.Bulletin";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatcoaching(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.coaching";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatevents(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.events";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatOnline(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.Online";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatgreenloan(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?bushp.feature.greenloan";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}
function SiteStat365com(){
alert();
var ns_l = "http://int.sitestat.com/boigroup/boi/s?365OnlineClickinCom";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}

function SiteStatLife(){
var ns_l = "http://int.sitestat.com/boigroup/boi/s?clickout.BOILIFE&ns_type=clickout";
ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
var netstatImage = document.createElement("<img src='"+ns_l+"' width='1' height='1' alt=''>");
document.body.appendChild(netstatImage);
return true;
}


function showPopUpCC1() {
			w = window.open("https://www.bankofireland.com/applications/creditcard_app/creditcard_app1.html","formCCWindow", "height=250,width=480,toolbar=no,scrollbars=yes,resizable=0");
			return false;
		}
	function showPopUpCC() {
			w = window.open("https://www.bankofireland.com/applications/creditcard_app/creditcard_app.html","formCCWindow", "height=600,width=745,toolbar=no,scrollbars=yes,resizable=0");
			return false;
		}
		function showPopUpLoan() {
			w = window.open("https://www.bankofireland.com/applications/loan_app/loan_app.html","formLoanWindow", "height=600,width=745,toolbar=no,scrollbars=yes,resizable=0");
			return false;
		}
		function showPopUpSavings() {
			w = window.open("https://www.bankofireland.com/applications/savings_app/savings_app.html","formSavingsWindow", "height=600,width=745,toolbar=no,scrollbars=yes,resizable=0");
			return false;
		}

function showPopUpOverdraft() {
	w = window.open("https://www.bankofireland.com/applications/overdraft_app/overdraft_app.html","formOverdraftWindow", 	"height=600,width=745,toolbar=no,scrollbars=yes,resizable=0");
	return false;
}

function showPopUpCarkTalkRules() {
	w = window.open("http://www.bankofireland.com/includes/personal/pdfs/cardtalk_terms_conditions_0709.pdf", "formcardtalkrulesWindow", 	"height=600,width=745,toolbar=no,scrollbars=yes,resizable=0");
	return false;
}


function showPopUpCarkTalkRules1() {
	w = window.open("http://www.bankofireland.com/includes/personal/pdfs/disney.pdf", "formcardtalkrulesWindow", 	"height=600,width=745,toolbar=no,scrollbars=yes,resizable=0");
	return false;
}


