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 >
Wrap
Text File
|
2008-01-19
|
2KB
|
73 lines
function wrapRegionalShortDate(dateIn)
{
var newDate;
try
{
newDate = regionalShortDate(dateIn);
}
catch(e)
{
newDate = dateIn;
}
return newDate;
}
function regionalizeDates() {
// ie5 changed filecreationdate and filemodifieddate
// to return 4 characters for the year, in a non-localized format.
// this code will localize the date according to the system locale setting,
// so that the properties dialog is not adversely affected.
// this function should be called from the onload handler.
var fcDate = _fileCreatedDate.innerText;
if (fcDate!= "undefined" && fcDate != "")
_fileCreatedDate.innerText = wrapRegionalShortDate(fcDate);
var fmDate = _fileModifiedDate.innerText;
if (fmDate != "undefined" && fmDate != "")
_fileModifiedDate.innerText = wrapRegionalShortDate(fmDate);
}
function btnCertsClick()
{
window.dialogArguments.showSecurityInfo();
}
function BodyLoad()
{
var arrAll = document.all;
if(document.dir == "rtl")
{
divButtons.style.pixelLeft = 15;
}
else
{
divButtons.style.pixelLeft = document.body.clientWidth - (btnCerts.offsetWidth + 15);
}
regionalizeDates();
for (i=0; i < arrAll.length; i++)
{
var elm = arrAll[i];
if (elm.id.substring(0,1) == "_")
{
if (elm.innerText== "undefined" || elm.innerText == "")
{
elm.innerText = L_NotAvailable_Text;
if (elm.id == "_fileSize")
spaBytes.innerText = "";
else if (elm.id == "_connInfo" )
{
var secInfo = window.dialogArguments.secureConnectionInfo;
if (secInfo == "")
elm.innerText = L_NotEncrypted_Text;
else
elm.innerText = secInfo ;
}
}
}
}
}