
// coz 2-30-2001 - added remote script content support to reduce extra round trip to server
	function getGlobalLocation() {
		var loc = '';
		if (location.search != '') { loc = location.search.substring(1,location.search.length) + '&'; }
		loc += 'launchBase=http://' + location.hostname + location.pathname + '&siteGUID=<%= gsSiteGUID %>';
		return (loc);
	}

	function remoteScriptContent(surl) {
//alert(getGlobalLocation());
		if (surl.indexOf('?') > 1) {
			var loc = surl + '&' + getGlobalLocation();
		} else {
			var loc = surl + '?' + getGlobalLocation();
		}
		document.write('<scr'+'ipt src=\'' + loc + '\'></scr'+'ipt>');
		//document.write(loc);
		//alert('<scr'+'ipt src=\'' + loc + '\'></scr'+'ipt>');
	}
// end coz 2-30-2001


//added from points/embeds/launchScript.js
function launchPoints(sURL, sLogoURL, sPalette, sStart) {
	// ds - 1-3-2002 - always leave these 4 params to support legacy references
	if (sStart == null) { sStart = ''; }
	winLaunchFrame = window.open(sURL + "/points.asp?start=" + sStart, "frameTop", "width=468,height=374,toolbar=yes,menubar=yes");
	winLaunchFrame.focus();
}


function popup (html,w,h, bScroll) {
	// dbh - 03-05-2002 - pass in URL reference, width and height 
	// dbh - 09-27-2002 - enable scroll bar selection from the function call

	if ((bScroll == null) || (bScroll == "" )) {
		var features = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,width=" + w + ",height=" + h + ",resizable=no";
	}
	else {
		var features = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,width=" + w + ",height=" + h + ",resizable=no";
	}

	var myWin=window.open(html,"",features);
	
}

function popup2 (html,w,h, bScroll) {
	// dbh - 03-05-2002 - pass in URL reference, width and height 
	// dbh - 09-27-2002 - enable scroll bar selection from the function call
	// dbh - 09-27-2002 - enable scroll bar selection from the function call



	if ((bScroll == null) || (bScroll == "" )) {
		var features = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,width=" + w + ",height=" + h + ",resizable=no";
	}
	else {
		var features = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,width=" + w + ",height=" + h + ",resizable=no";
	}

	var myWin=window.open(html,"",features);
	
}
