|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /home/pathumthani_integration/integration/application/people/ |
Upload File : |
function ylib_Browser()
{
d=document;
this.agt=navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.dom=(d.getElementById)?1:0;
this.ns=(d.layers);
this.ns4up=(this.ns && this.major >=4);
this.ns6=(this.dom&&navigator.appName=="Netscape");
this.op=(window.opera? 1:0);
this.ie=(d.all);
this.ie4=(d.all&&!this.dom)?1:0;
this.ie4up=(this.ie && this.major >= 4);
this.ie5=(d.all&&this.dom);
this.win=((this.agt.indexOf("win")!=-1) || (this.agt.indexOf("16bit")!=-1));
this.mac=(this.agt.indexOf("mac")!=-1);
};
var oBw = new ylib_Browser();
function DisplayElement ( elt, displayValue ) {
if ( typeof elt == "string" ) elt = document.getElementById( elt );
if ( elt == null ) return;
if ( oBw && oBw.ns6 ) {
// OTW table formatting will be lost:
if ( displayValue == "block" && elt.tagName == "TR" )
displayValue = "table-row";
else if ( displayValue == "inline" && elt.tagName == "TR" )
displayValue = "table-cell";
}
elt.style.display = displayValue;
}