|
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 : /var/www/html/pathumthani_eoffice/application/manage_application/ |
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;
}
function swap(id,picexpand,pichidden)
{
control = "ctrl" + id;
swapbox = "swap" + id;
target = document.all(swapbox);
if (target.style.display != "none")
{
target.style.display = "none";
document.images[control].src = picexpand;
document.images[control].alt = "ขยายขนาด";
}
else
{
target.style.display = "";
document.images[control].src = pichidden;
document.images[control].alt = "ย่อขนาด";
}
}
function ToggleNav()
{
if(divCollapsedNav.style.display == "none")
{
divCollapsedNav.style.display = "";
divOpenNav.style.display = "none";
parent.frmstOuter.cols = "20,*"
parent.document.all ('left').noResize = true;
}
else
{
divOpenNav.style.display = "";
divCollapsedNav.style.display = "none";
parent.frmstOuter.cols = "210,*"
parent.document.all ('left').noResize = true;
}
}