function go(url) {   
location.href = url;}

function openWin(URL)
{
aWindow=window.open(URL, "thewindow", "scrollable=yes, width=500, height=120");
}

// Initialise global variables for ticker tape.
var varUOGtickerText = '';
var varUOGtickerLength = 0;

// Run an incremental ticker tape.
function fnUOGincTicker(varUOGinitialTickerText) {
	var varUOGtimeout = 100;
	var objUOGtickerHolder = document.getElementById('clsUOGtickerTapeAnchor');
	varUOGtickerText = varUOGinitialTickerText;

	if (varUOGtickerLength % 2) {
		varUOGcursor = '_';
	} else {
		varUOGcursor = '-';
	}
	if (varUOGtickerLength == varUOGinitialTickerText.length) {
		varUOGcursor = '';
	}
	objUOGtickerHolder.innerHTML = varUOGinitialTickerText.substring(0, varUOGtickerLength) + varUOGcursor;

	if (varUOGtickerLength < varUOGinitialTickerText.length) {
		varUOGtickerLength++;
	} else {
		varUOGtickerLength = 0;
		varUOGtimeout = 100000;
	}
	window.setTimeout('fnUOGincTicker(varUOGtickerText)', varUOGtimeout);
	return null;
}

/* Store */
<!--
function enterkey(frm,e){
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	if (keycode == 13) frm.submit();
}
function popPage(pagename, cici, progid, apphdr){
	var pgurl = 'prog%5Fid=418002&app%5Fhdr=0&ci=cici';
	pgurl = pgurl.replace('cici', cici);
	if (progid != '') pgurl = pgurl.replace('418002', progid);
	if (apphdr != '') pgurl = pgurl.replace('hdr=0', 'hdr=' + apphdr);
	if (pagename.indexOf('?') <= 0){
		pgurl = '?' + pgurl}
	else{
		pgurl = '&' + pgurl}
	if ((pagename.indexOf('http://') < 0)&&(pagename.indexOf('https://') < 0)){
		pgurl = ('https://www.securepaynet.net/gdshop/' + pagename + pgurl);}
	else{
		pgurl = (pagename + pgurl);	}
	var win=window.open(pgurl, 'spop', 'left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620');
}
function popAnchor(pagename, cici, anchor){
	var pgurl = 'prog%5Fid=418002&app%5Fhdr=0&ci=cici';
	pgurl = pgurl.replace('cici', cici);
	if (pagename.indexOf('?') <= 0){
		pgurl = '?' + pgurl}
	else{
		pgurl = '&' + pgurl}
	if ((pagename.indexOf('http://') < 0)&&(pagename.indexOf('https://') < 0)){
		pgurl = ('https://www.securepaynet.net/gdshop/' + pagename + pgurl);}
	else{
		pgurl = (pagename + pgurl);	}
	if (anchor != '') pgurl = pgurl + '#' + anchor
	var win=window.open(pgurl, 'spop', 'left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620');
}
function abandonWin(){
	if (!internal_clicked){ //show abandon popup	
		var target = "_abandon";		
		var url = "https://www.securepaynet.net/gdshop/jump_pages/abandon.asp?prog%5Fid=418002&app%5Fhdr=99&location=locationurl";
		var loc = document.location.href; loc += (loc.indexOf('?') > 0) ? "&":"?";
		if (loc.indexOf('domainToCheck') < 1) loc += "domainToCheck=&tld=&checkAvail=&currStep="
		loc = passedURLEncode(loc);
		url = url.replace('locationurl', loc);		
		var winWidth = 420; var winHeight = 370;
		var options = "resizable=0,scrollbars=0,status=0,location=0,menubar=0,toolbar=0,width=" + winWidth + ",height=" + winHeight + ",top=" + ((screen.availHeight - winHeight) /2) + ",left=" + ((screen.availWidth - winWidth) /2) + ",screenX=" + ((screen.availWidth - winWidth) /2) + ",screenY=" + ((screen.availHeight - winHeight) /2) + ",";
		var win = window.open(url,target,options); win.focus();}
}
function passedURLEncode(str)
{
	str = str.replace(/\?/g,"!");str = str.replace(/=/g,"^");str = str.replace(/&/g,"$");
	return str;
}
