
function raw_popup(url, name, strFeatures) 
{
	var theWindow = window.open(url, name, strFeatures);
	theWindow.focus();
	return theWindow;
}
	

/*function onKeyPress_Return() 
{     
	if (event.keyCode == 13) 
	{   
		event.cancelBubble = true;
		event.returnValue = false;
	}
}*/

function onKeyPress_Return(item) 
{     
	if (event.keyCode == 13) 
	{ 
		if(item != null)
		{
			item.click();
		}  
		event.cancelBubble = true;
		event.returnValue = false;
	}
}

function selectTab(group,tab) 
{
	var element = document.getElementById(group);
	element.className = tab;
}

function openSite1(myurl) {
  RemoteWin = open('https://netteller.savingsloans.com.au/webrequest/'+myurl, "_blank", 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizeable=0,width=500,height=500')
}

function openSite2() { //v1.0
  status = ''
  RemoteWin = window.open("https://netteller.savingsloans.com.au","tsw_window","top=0,left=0,width=780,height=560,toolbar=no,location=0,scrollbars=yes,directories=no,status=yes,menubar=no,resizable=yes")
}

function openSite3(myurl) {
  //RemoteWin = open('https://wic021p.server-secure.com/vs17801_secure/onlineforms/'+myurl, "_blank", 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizeable=0,width=500,height=500')
  RemoteWin = open(myurl, "_blank", 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizeable=0,width=500,height=500')
}

function openSite9() { //v1.0
  status = ''
  RemoteWin = window.open("http://www.savingsloans.com.au/pclink_check.asp","tsw_window","top=0,left=0,width=780,height=560,toolbar=no,location=0,scrollbars=yes,directories=no,status=yes,menubar=no,resizable=yes")
}

function getProductIdFromRequest() {
	var parts = location.href.split("&");
	for(var i = 0; i < parts.length; i++) {
		part = parts[i].split("=");
		if(part[0]=="prod"){
			return part[1];
		}
	}
}