function getbrowserwidth()
    {
    if (navigator.userAgent.indexOf("MSIE") > 0)
    {
    	return(document.body.clientWidth);
    }
    else
	{
    return window.outerWidth;
    }
}
function getbrowserheight()
    {
   	if (navigator.userAgent.indexOf("MSIE") > 0)
   	{
     	return(document.body.clientHeight);
    } 
    else
	{
     	return(window.outerHeight);
    }
}
function mm_openbrwindow(theURL,winName,features) { //v2.0
  var X = getbrowserwidth() / 2
  var Y = getbrowserheight() / 2
  features = features + ' ' + 'top=' + (window.screenTop + (Y - 230)) + ' ' + 'left=' + (window.screenLeft + (X - 300));
  window.open(theURL,winName,features);
}
