//Open New Window
function OpenWindow(WindowHREF,InnerWidth,InnerHeight,Name,ScreenX,ScreenY,LocationBar,ToolBar)
	{	
		var	DataWindow;
			Width="";
			Height="";
		if (Name == null || Name == ""){Name="DataWindow"} 
		if (WindowHREF == null || WindowHREF == "")
		{	WindowHREF='""'	} 
		if (InnerWidth == null || InnerWidth == "")
		{	InnerWidth = ""	} else	{	Width=",Width = "+(InnerWidth+50);
										InnerWidth = ",InnerWidth="+InnerWidth;
								}
		if (InnerHeight == null || InnerHeight == "")
		{InnerHeight = ""} else	{	Height=",Height="+(InnerHeight+100);
									InnerHeight=",InnerHeight="+InnerHeight;
								}
		if (ScreenX == null || ScreenX == "")
		{	ScreenX = ""	} else	{	ScreenX=",ScreenX="+ScreenX+",left="+ScreenX	}
		if (ScreenY == null || ScreenY == "")
		{	ScreenY = ""	} else	{	ScreenY=",ScreenY="+ScreenY+",top="+ScreenY	}
		if (LocationBar == null || LocationBar == "")
		{	LocationBar = ""	} else	{	LocationBar=",Location=yes"	}
		if (ToolBar == null || ToolBar == "")
		{	ToolBar = ""	} else	{	ToolBar=",ToolBar=yes"	}
		
		Options = InnerWidth+InnerHeight+Width+Height+ScreenX+ScreenY+LocationBar+ToolBar;
		Options += ',menubar,status,scrollbars,resizable,titlebar';
		DataWindow = window.open("",Name,Options);
		if (DataWindow.opener == null){DataWindow.opener = self};
		DataWindow.location = WindowHREF;
		DataWindow.focus();
	};
