function OpenWindow(sURL, width, height, top, left, winname, features)
{
	var sFeatures = '';
	if( typeof(features)!='undefined')
		sFeatures = features;
	else	
		sFeatures = 'channelmode=no'
								+ ',directories=no'
								+ ',fullscreen=no'
								+ ',location=no'
								+ ',menubar=no'
								+ ',resizable=yes'
								+ ',scrollbars=no'
								+ ',status=no'
								+ ',titlebar=no'
								+ ',toolbar=no'
								+ ',left=' + left
								+ ',top=' + top
								+ ',height=' + height
								+ ',width=' + width;

	var sName = '_blank';
	if(typeof(winname)!='undefined' && winname.length > 0 )
		sName = winname;
	var win = window.open(sURL, sName, sFeatures);
	if ( parseInt(navigator.appVersion) >= 4)
	{ 
		win.window.focus(); 
	}
	return win;
}

