
var isMSIE = navigator.userAgent.toLowerCase().indexOf("msie") != -1;

function upgradeClick(){
    var link = ( isMSIE ) ?  "http://www.microsoft.com/windows/internet-explorer/" : "http://www.getfirefox.com/";
    goParent( link );
}

function addOpenSearch(url) {
    try { window.external.AddSearchProvider(url); }
    catch (e) {
        alert("You need to use Internet Explorer (7.0 or later) or Firefox (2.0 or later) to install the OpenSearch plug-in.");
    }
}

function goParent( loc ){
	self.opener.location.href = loc;
	self.close();
	return false;
}