function PopUpManager(numberOfColumnsOfResults,numberOfRowsOfResults){
this._url = "/sol/shared/spl/hi/football/predictor/html/pop.html";
this._parameters = "status=no,scrollbars=no,resizable=yes,width=203,height=445";
this._name = "Current_Premiership_results";
this._numberOfColumnsOfResults = numberOfColumnsOfResults;
this._numberOfRowsOfResults = numberOfRowsOfResults;
this._queryString = "?";
this.counter = 1;
}
PopUpManager.prototype.saveResultsForPopUp = function(){
for(var i=1;i<=this._numberOfRowsOfResults;i++){
	// this._numberOfColumnsOfResults-1 - because we don't want to send GF to popup
		for(var j=1;j<=(this._numberOfColumnsOfResults-1);j++){
		this._queryString = this._queryString +""+ document.outputForm["o_a"+i+""+j].name+"="+document.outputForm["o_a"+i+""+j].value+"&";
		}
	}	
this._queryString = this._queryString.substring(0,(this._queryString.length-1))	
}
PopUpManager.prototype.popUpPage = function()
{
	if(this.counter==1){this._url = this._url + this._queryString;this.counter=2}
	this.day = new Date();
	this._pageName = this._name ? this._name : this.day.getTime()
	eval("bbc"+this._pageName+" = window.open('"+this._url+"','"+this._pageName+"','"+this._parameters+"')");
	if (eval("bbc"+this._pageName) && window.focus) eval("bbc"+this._pageName).focus();
}


