<!--
function Get_Cookie(name) {
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
    if (start == -1) return null;
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end));
}

function Set_Cookie(name,value,expires,path,domain,secure) {
    document.cookie = name + "=" +escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() : "") +
        ( (path) ? ";path=" + path : "") + 
        ( (domain) ? ";domain=" + domain : "") +
        ( (secure) ? ";secure" : "");
}

function Delete_Cookie(name,path,domain) {
    if (Get_Cookie(name)) document.cookie = name + "=" +
       ( (path) ? ";path=" + path : "") +
       ( (domain) ? ";domain=" + domain : "") +
       ";expires=Thu, 01-Jan-70 00:00:01 GMT";
}

var today = new Date();
var year = today.getFullYear();
var month = today.getMonth() + 1;
var day = today.getDate();

var expires_date = new Date(year+50,month,day,0,0,0);


function storeMasterCookie() {
    if (!Get_Cookie('MasterCookie'))
        Set_Cookie('MasterCookie','MasterCookie');
}

function storeIntelligentCookie(name,value) {
    if (Get_Cookie('MasterCookie')) {
        var IntelligentCookie = Get_Cookie(name);
        if ((!IntelligentCookie) || (IntelligentCookie != value)) {
            Set_Cookie(name,value,expires_date);
            var IntelligentCookie = Get_Cookie(name);
            if ((!IntelligentCookie) || (IntelligentCookie != value))
                Delete_Cookie('MasterCookie');
        }
    }
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function GoToLink(pstrIsSecure,pstrURL) {
		location.href = pstrURL
}

function gotoPage(pstrURL) {
		if ((pstrURL.indexOf('www.managemycreditcard.com') > -1) || (pstrURL.indexOf('www.bankcardoffer.com') > -1) || (pstrURL.indexOf('www.deluxe-card.com') > -1)) {
			if (Get_Cookie('dontwarnonlink')=='true') {
				location.href = pstrURL;
			} else {
				document.getElementById('go').value = pstrURL;
				var myWin = open('http://www.southbank.com/content/leaving.htm','Notice','left=250,width=400,height=350,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no');
				if (myWin.opener == null) 
					myWin.opener = self;
			}
		} else {
			location.href = pstrURL;
		}	
}


function gotoPage1(pstrURL) {
		if ((pstrURL.indexOf('www.managemycreditcard.com') > -1) || (pstrURL.indexOf('www.bankcardoffer.com') > -1) || (pstrURL.indexOf('www.deluxe-card.com') > -1)) {
			if (Get_Cookie('dontwarnonlink')=='true') {
				return pstrURL;
			} else {
				var myWin = open('http://www.southbank.com/content/leaving.htm','Notice','left=250,width=400,height=350,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no');
				if (myWin.opener == null) myWin.opener = self;
				while(!myWin.closed) {
					// do nothing until the window is closed;
				}
				if (document.getElementById('go').value=='true') {
					return pstrURL;
				} else {
					return 'http://www.southbank.com/content/home.asp';
				}
			}	
		} else {
			return pstrURL;
		}	
}
function exitSave(URL){
	var URL=URL;
	var msg="You are now leaving the SOUTHBank&#174; Web Site\nand being redirected to " + URL + ".\n\nThe web site you have selected is an external one located on another server. SOUTHBank&#174; has no responsibility for any external web site. It neither endorses the information, content, presentation, or accuracy nor makes any warranty, express or implied, regarding any external site.  Refer to the external sites privacy policy before submitting any non-public personal information.\n\nThank you for visiting the SOUTHBank&#174; web site."
	if (confirm(msg)){window.location = URL}
}

var compat = 'NS';

if(parseInt(navigator.appVersion) >= 4) {
			if(document.getElementById) {
				compat = 'DOM';
			} else if(document.layers) {
				compat = 'NN';
			} else {
				compat = 'IE';
			}
		}

if (compat=='NS') { document.location = 'http://www.SOUTHBank.com/notsupported.htm'; }



var LinkPopup = null;

function OpenLinkPopup(pstrFullURL, pstrName, pintwidth, pintheight) {
	var intLeft = ((screen.availWidth - pintwidth) / 2) ; 
	var intTop = ((screen.availHeight - pintheight) / 2) ; 
	if (LinkPopup != null) {
		if (LinkPopup.closed == false)
			LinkPopup.close()
	}
	LinkPopup = window.open(pstrFullURL,pstrName,"width=" + pintwidth + ",height=" + pintheight + ",left=" + intLeft + ",top=" + intTop + ",toolbar=0,location=0,directories=0,resizable=1,status=1,menubar=1,scrollbars=1");
	return LinkPopup;
}
var LinkPopup1 = null;

function OpenLinkPopup1(pstrFullURL, pstrName, pintwidth, pintheight) {
	if (LinkPopup1 != null) {
		if (LinkPopup1.closed == false)
			LinkPopup1.close()
	}
	LinkPopup1 = window.open(pstrFullURL,pstrName,"left=250,width=" + pintwidth + ",height=" + pintheight + "location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no");
	return LinkPopup1;
}

function OpenCertDetails()
	{
	thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USSOUT353', 'anew', config='height=400,width=475,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
	}

function SK_Preload_willCall_MM_Preload(){
var strImg=""; strImg= "MM_preloadImages("; for (var idx=0;idx < document.images.length; idx++){
	if (document.images.length-1 != idx){strImg = strImg + '"' + document.images[idx].src + '"' +", ";}else{strImg = strImg + '"' + document.images[idx].src + '"' +")";		}
	}
eval(strImg);
}      

function MM_preloadImages_K() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages_K.arguments; alert("Total images = "+a.length);for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function doReset(){
	document.HBLogin.ID.value="";
	document.HBLogin.PIN.value="";
	document.HBLogin.ID.focus();
}

var Popup;


function GoToLink(pstrIsSecure,pstrURL) {
		location.href = pstrURL
}

function OpenPopup(pstrFullURL, pstrName, pintwidth, pintheight, pshowMenu) {
	Popup = null;
	if (pshowMenu) {
		Popup = window.open(pstrFullURL,pstrName,"width=" + pintwidth + ",height=" + pintheight + ",toolbar=0,location=0,directories=0,resizable=0,status=1,menubar=1,scrollbars=1");
	} else {
		Popup = window.open(pstrFullURL,pstrName,"width=" + pintwidth + ",height=" + pintheight + ",toolbar=0,location=0,directories=0,resizable=0,status=1,menubar=0,scrollbars=1");
	}
	//Popup.focus();
	return Popup;
}
//-->