﻿
function jsfPIWC(path,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupImageHE.aspx?path="+path,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
function jsfSHM(id)
{if(null!=(o=document.getElementById(id)))
o.style.display=(o.style.display=='none')?'':'none';}
function jsfSH(id)
{if(null!=(o=document.getElementById(id)))
o.style.display=(o.style.display=='none')?'':'none';}
function jsfS(id)
{if(null!=(o=document.getElementById(id)))
o.style.display='block';}
function jsfSD(id,bID,DId,iId)
{if(null!=(o1=document.getElementById(id)))
o1.style.display='block';
if(null!=(o2=document.getElementById(bID)))
o2.style.display='none';
if(null!=(o3=document.getElementById(DId)))
o3.style.display='none';
if(null!=(o4=document.getElementById(iId)))
o4.style.display='none';

}
function jsfClass(id,className)
{if(null!=(o=document.getElementById(id)))
o.className = className;}
function jsfH(id)
{if(null!=(o=document.getElementById(id)))
o.style.display='none';}
function jsfSMHSM(o,c,id,i)
{o.style.color=c;if(null!=(o=document.getElementById(id)))
o.src=aMHS[i].src;}
function jsfSMHS(o,c,bgc,id,i)
{jsfSMHSS(o,c,bgc);if(null!=(o=document.getElementById(id)))
o.src=aMHS[i].src;}
function jsfSMHSS(o,c,bgc)
{o.style.color=c;o.style.backgroundColor=bgc;}
function jsfSMSS(o,c,bgc,id,i)
{jsfSMSSS(o,c,bgc);if(null!=(o=document.getElementById(id)))
o.src=aMSS[i].src;}
function jsfSMSSS(o,c,bgc)
{o.style.color=c;o.style.backgroundColor=bgc;}
function jsfColor(id,c)
{if(null!=(o=document.getElementById(id)))
o.style.color=c;}
function jsfSTI(idTable,oImg)
{if(null!=(oTable=document.getElementById(idTable)))
oImg.src=oTable.style.display=='none'?aSiteMapImgs[0].src:aSiteMapImgs[1].src}
function jsfSMSA(o,c,bgc)
{o.style.color=c;o.style.backgroundColor=bgc;}
function jsfSMSAI(id,oImg)
{if(null!=(oTr=document.getElementById(id)))
oImg.src=oTr.style.display=='none'?aMSA[0].src:aMSA[1].src}
function jsfACC(idTr)
{document.getElementById(trDP).style.display='block'}
function jsfPopupArticleResponse(aid,rid,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupArticleResponseHE.aspx?aid="+aid+"&rid="+rid,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
var aSearch=new Array();(aSearch[0]=new Image()).src="~/../HE/Gr/Header/search_c.gif";(aSearch[1]=new Image()).src="~/../HE/Gr/Header/search_c_over.gif";function jsfSIS(array,o,i)
{o.src=array[i].src;}
function jsfPopupProduct(id,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupProductHE.aspx?pid="+id,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
function jsfPopupMail(id,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupMail.aspx?id="+id,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
function back()
{history.go(-1);}
function jsfOWC(wndUrl,wndWidth,wndHeight,wndScrollbar,wndMenubar)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open(wndUrl,"","toolbar=no,location=no,directories=no,status=no,menubar="+wndMenubar+",scrollbars="+wndScrollbar+",resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft);win.focus();}
function jsfTrim(s)
{s=this!=window?this:s;return s.replace(/^\s+/g,'').replace(/\s+$/g,'');}
function copy_clip(maintext)
{if(window.clipboardData)
{window.clipboardData.setData("Text",maintext);}
else if(window.netscape)
{netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var clip=Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);if(!clip)return;var trans=Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);if(!trans)return;trans.addDataFlavor('text/unicode');var str=new Object();var len=new Object();var str=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);var copytext=maintext;str.data=copytext;trans.setTransferData("text/unicode",str,copytext.length*2);var clipid=Components.interfaces.nsIClipboard;if(!clip)return false;clip.setData(trans,null,clipid.kGlobalClipboard);}
return false;}
function showdeadcenterdiv(Xwidth,Yheight,divid){var scrolledX,scrolledY;if(self.pageYoffset){scrolledX=self.pageXoffset;scrolledY=self.pageYoffset;}else if(document.documentElement&&document.documentElement.scrollTop){scrolledX=document.documentElement.scrollLeft;scrolledY=document.documentElement.scrollTop;}else if(document.body){scrolledX=document.body.scrollLeft;scrolledY=document.body.scrollTop;}
var centerX,centerY;if(self.innerHeight){centerX=self.innerWidth;centerY=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){centerX=document.documentElement.clientWidth;centerY=document.documentElement.clientHeight;}else if(document.body){centerX=document.body.clientWidth;centerY=document.body.clientHeight;}
var leftoffset=scrolledX+(centerX-Xwidth)/2;var topoffset=scrolledY+(centerY-Yheight)/2;var o=document.getElementById(divid);var r=o.style;r.position='absolute';r.top=topoffset+'px';r.left=leftoffset+'px';r.display='';}

function jsfShowDiv(id,id1,id2,id3,id4,id5,id6)
{
    if(null!=(o=document.getElementById(id)))
    o.style.display='block';
    
    if(null!=(o1=document.getElementById(id1)))
    o1.style.display='none';
    
    if(null!=(o2=document.getElementById(id2)))
    o2.style.display='none';
    
    if(null!=(o3=document.getElementById(id3)))
    o3.style.display='none';
    
    if(null!=(o4=document.getElementById(id4)))
    o4.style.display='none';
    
    if(null!=(o5=document.getElementById(id5)))
    o5.style.display='none';
    
    if(null!=(o6=document.getElementById(id6)))
    o6.style.display='none';
}
function jsfShowTbl(id,id1,id2,sp,sp1,sp2)
{
    if(null!=(o=document.getElementById(id)))
    {
      o.style.display='block';
      
    }
    if(null!=(o1=document.getElementById(id1)))
    {
        o1.style.display='none';
    }
    if(null!=(o2=document.getElementById(id2)))
    {
        o2.style.display='none';
    }
    
  if(null!=(o=document.getElementById(sp)))
  {
      o.style.color='#ffffff';
      o.style.backgroundColor='#CABAA7';
  }
  if(null!=(o=document.getElementById(sp1)))
  {
      o.style.color='#7D695A';
      o.style.backgroundColor='#F8F6F3';
  }
  if(null!=(o=document.getElementById(sp2)))
  {
      o.style.color='#7D695A';
      o.style.backgroundColor='#F8F6F3';
  }
}


