	var newWins = new Array();

	function TestPopUp(){
		var retVal = true;
		try{
			var popup = window.open('about:blank');
			popup.close();		
			if(popup == null) retVal = false;		
		
			if(window.opera){
				if(!popup.opera){
					retVal = false;
				}
			}
		}catch(err){
			retVal = false;
		}				
		return retVal;
	}

	function ShowNewWindow(url,index){
		if(newWins[index]!=null && !newWins[index].closed){
			newWins[index].close();
		}		
		newWins[index] = window.open(url);
	}
		
	function CloseAllWindows(){
		for(i in newWins){
			newWins[i].close();
		}
	}

	function CloseWindow(i){
		newWins[i].close();
	}	