function getTargetWin() {
	sQuery = location.search;

	if (sQuery.indexOf("targetwinsize")==-1) {
		targetWinSize = "1";
	}

	if(sQuery.length > 1) {
		this.sQuery = sQuery.substring(1, sQuery.length);
	} else {
		this.sQuery = null;
		targetWin="";
	}



	this.keyValuePairs = new Array();
	if(sQuery) {
		for(var i=0; i < this.sQuery.split("&").length; i++) {
			this.keyValuePairs[i] = this.sQuery.split("&")[i];
		}
	}
	for(var i=0; i < this.keyValuePairs.length; i++) {
		sKeyValueInstance = keyValuePairs[i];
		aKeyValue = sKeyValueInstance.split("=");

	//	this is the "key"
		sKey = aKeyValue[0];

	//	this is the "value"
		sValue = aKeyValue[1];

		if (sKey == "targetwinsize") {
			targetWinSize = aKeyValue[1];
		}

		if (sKey == "targetwin") {
			targetWin = aKeyValue[1];
		}

	}
}

function forwardPages() {
	getTargetWin();
	if (targetWin=="fun") {
		sHref = "../savesummer/funlovers_default.asp";
		sWindowName = "fun";
	} else if (targetWin=="paf") {
		sHref = "../savesummer/paf_home.asp";
		sWindowName = "pafwindow";
	} else if (targetWin.indexOf("http://")!=-1) {
		sHref = targetWin;
		sWindowName = "new_window";
	} else {
		targetWin="";
	}

	if (targetWinSize=="1") {
		sHeight = "420";
		sWidth = "550";
		sResize = "no";
		sMenu = "no";
	} else if (targetWinSize=="2") {
		sHeight = "600";
		sWidth = "800";
		sResize = "yes";
		sMenu = "yes";
	} else {
// default - no size given
		sHeight = "420";
		sWidth = "550";
		sResize = "no";
		sMenu = "no";
	}

	if (targetWin!="") {
		popUp(sHref,sHeight,sWidth,sResize,sMenu,sWindowName);
	}

} 