﻿// JScript File

function submitSearch(searchPage) {
    window.location.href = searchPage + document.forms[0].qt.value;
}

function clickSearch() {
    document.forms[0].sitesearchGo.click();
    return false;
}

function NewWindow(mypage, myname, w, h, scroll) {
	self.name = "main"; 
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function printWindow() {
	bV = parseInt(navigator.appVersion);
	if (bV >= 4) window.print();
}

function confirmIt(sDestination, sMsg) {
 //Reroute the browser to another page after confirmation

 	if (sMsg.length < 1) {
 	    var msg =  "You are now leaving BabsonCapital.com and entering BabsonCapitalEurope.com, website of Babson Capital Europe Ltd, an indirect subsidiary of Babson Capital Management LLC.  Babson Capital Europe is registered in England and Wales and authorised and regulated by the Financial Services Authority. The contents at this site are not intended for distribution to, or use by, any person or entity in any jurisdiction or country where such distribution or use would be contrary to local law or regulation." +  "\r" + "\r" + "Would you like to continue to " + sDestination +"?";
    } else {
        var msg = sMsg + "\r" + "\r" + "Would you like to continue to " + sDestination +"?";
    }

 	if (confirm(msg)) {
		window.location.href = (sDestination);
	}
	
 } 
