var Wwait

function ShowProgress()
{
  strAppVersion = navigator.appVersion;
  if (document.comunicato.img.value != "")
  {
    if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4)
    {
      winstyle = "dialogWidth=250px; dialogHeight:115px; center:yes; dialog:no; status:no";
      window.showModelessDialog('wait.asp',null,winstyle);
    }
    else
    {
	       var w = 250;
	       var h = 100;
	       var pw = Math.floor((screen.width-w)/2);
	       var ph = Math.floor((screen.height-h)/2);		
		     wait =  window.open("wait.asp?b=ns","","copyright=no, width=" + w + ",height=" + h + ", top=" + ph + ", left=" + pw + ", true"); 
				 wait.focus();

    }
  }
  return true;
}

function closeW() {
					self.focus()
 //        wait.close();
         }
				 
				 
				 
