function IsBrowserIE()
{
	if (navigator.appName.indexOf('Microsoft') != -1)
		return true;
	else
		return false;
}

function showPopup(url,width,height) {
	var pos = '';
	var l = -1;
	var t = -1;
	
	if (IsBrowserIE())
	{
		l = (screen.Width - width) / 2;
		t = (screen.Height - height) / 2;
	}
	else
	{
		l = (screen.availWidth - width) / 2;
		t = (screen.availHeight - height) / 2;
	}

	if (l >= 0 && t >= 0) {
		pos = ',top='+t+',left='+l;
	}
	
	win = window.open(url, '', 'width='+width+',height='+height+',resizable=0,scrollbars=0'+pos);
	if (win != null) {
		win.focus();
	}
}
