function openRedirector(siteId, extraParams) {
    // build the url to open
    var redirectUrl = "http://www2.racq.com.au/apps/redirect/redirect.cfm?siteid=" + siteId; 
    // if we have extra params, then append those
    if (extraParams) {
        redirectUrl += "&" + extraParams;
    } // if
    // open the new window
    var newWindow = window.open(redirectUrl, "onlineservices", "height=600,width=800,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no"); 
    // if we opened the new window, then set focus to it
    if (newWindow) {
        newWindow.focus();
    } // if
} // openRedirector

function dropdown(mySel){
	var myWin, myVal;
	var myWinBars = 'directories=no,location=no,menubar=no,status=yes,titlebar=no,toolbar=no,scrollbars=yes,resizeable=yes';
	myVal = mySel.options[mySel.selectedIndex].value;
	if(myVal){
		if(mySel.form.target)myWin = parent[mySel.form.target];
	else myWin = window.open('','',myWinBars);
		if (! myWin) return true;
			myWin.location = myVal;
	}
	return false;
}

function openPopup(url){
// open the new window
    var newWindow = window.open(url, "onlineservices", "height=800,width=1024,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no"); 
    // if we opened the new window, then set focus to it
    if (newWindow) {
        newWindow.focus();
    } // if
}

