<!--
	/* scrolltotop moves the screen position to the top left corner of the page 
	This is benificial for i frame navigation
	use onload="scrolltotop(x,y)" in iframe to keep the page from displaying blank
	content at in the middle of a large i-frame. 
	*/
	var scrollRun = false;
	
	function scrolltotop(xpos,ypos)
	{
		if (scrollRun) // No need to scroll on the first load
			window.scrollTo(xpos,ypos);
		scrollRun = true; // Force Scrolling after the first run
	}

	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
//-->
