home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / install.wim / 2 / Windows / System32 / ieframe.dll / HTML / DOCBROWS.JS < prev    next >
Text File  |  2008-01-19  |  2KB  |  73 lines

  1. ∩╗┐function wrapRegionalShortDate(dateIn)
  2. {
  3.     var newDate;
  4.     try
  5.     {
  6.         newDate = regionalShortDate(dateIn);
  7.     }
  8.     catch(e)
  9.     {
  10.         newDate = dateIn;
  11.     }
  12.     return newDate;
  13. }
  14.  
  15. function regionalizeDates() {
  16.     // ie5 changed filecreationdate and filemodifieddate
  17.     // to return 4 characters for the year, in a non-localized format.
  18.     // this code will localize the date according to the system locale setting,
  19.     // so that the properties dialog is not adversely affected.
  20.     // this function should be called from the onload handler.
  21.  
  22.     var    fcDate = _fileCreatedDate.innerText;
  23.     if (fcDate!= "undefined" && fcDate != "")
  24.         _fileCreatedDate.innerText = wrapRegionalShortDate(fcDate);
  25.  
  26.     var fmDate = _fileModifiedDate.innerText;
  27.     if (fmDate != "undefined" && fmDate != "")
  28.         _fileModifiedDate.innerText = wrapRegionalShortDate(fmDate);
  29. }
  30.  
  31. function btnCertsClick()
  32. {
  33.     window.dialogArguments.showSecurityInfo();
  34. }
  35.  
  36. function BodyLoad()
  37. {
  38.     var arrAll = document.all;
  39.  
  40.     if(document.dir == "rtl")
  41.     {
  42.         divButtons.style.pixelLeft = 15;
  43.     }
  44.     else
  45.     {
  46.         divButtons.style.pixelLeft = document.body.clientWidth - (btnCerts.offsetWidth + 15);
  47.     }
  48.  
  49.     regionalizeDates();
  50.     for (i=0; i < arrAll.length; i++)
  51.     {
  52.         var elm = arrAll[i];
  53.         if (elm.id.substring(0,1) == "_")
  54.         {
  55.             if (elm.innerText== "undefined" || elm.innerText == "")
  56.             {
  57.                 elm.innerText = L_NotAvailable_Text;
  58.                 if (elm.id == "_fileSize")
  59.                     spaBytes.innerText = "";
  60.                 else if (elm.id == "_connInfo" )
  61.                 {
  62.                     var secInfo = window.dialogArguments.secureConnectionInfo;
  63.                     if (secInfo == "")
  64.                         elm.innerText = L_NotEncrypted_Text;
  65.                     else
  66.                         elm.innerText = secInfo ;
  67.                 }
  68.             }
  69.         }
  70.     }
  71. }
  72.  
  73.