var _window = null;

function OpenWin(url, title, height, width)
{
	if (_window != null && _window.closed == true)	 
	{
		_window = null;
	}					 
				
	//check if the window is closed if not you can get a message access denied
	if(_window == null )
	{
		_window = window.open(url, title,'resizable=1,location=0,toolbar=1,statusbar=1;scrollbars=1,menubar=1,height='+ height +',width=' + width  ,'');
		_window.focus();
	}
	else
	{				
		_window.resizeTo(parseInt(width),parseInt(height));
		_window.location.href = url;
		_window.focus();
	}
				
}
