function OpenWindow()
{
	this.Page = "";
}

OpenWindow.prototype.OpenPageOnTop = function(URL,PageType,winprops)
{
	if (navigator.platform.indexOf("Win") != -1)
	{
		if (this.Page)
		{
			this.Page.close();
		}
		this.Page = window.open(URL,PageType,winprops);
		this.Page.focus();
	}
	else
	{	
		if (this.Page)
		{
			if (this.Page.closed)
				this.Page = window.open(URL,PageType,winprops);
			else
			{
				this.Page.location = URL;
				this.Page.focus();
			}
		}
	
		else
			this.Page = window.open(URL,PageType,winprops);
	}
}
