function showLAYER(layName){
if(document.getElementById)
document.getElementById(layName).style.display='block'
else if(document.layers)document.layers[layName].display='block'
else if(document.all)document.all(layName).style.display='block'
}
function hideLAYER(layName){
if(document.getElementById)
document.getElementById(layName).style.display='none'
else if(document.layers)document.layers[layName].display='none'
else if(document.all)document.all(layName).style.display='none'
}
var sh=true
function Val(lnt,lnb) {
if(sh==true) {
showLAYER(lnt);
hideLAYER(lnb);
sh=false
}
else {
hideLAYER(lnt);
showLAYER(lnb);
sh=true
}
return true
}
var status = null;
function oW1(ur,Width,Height) {
Top = ((screen.height - Height)/10)
Left = ((screen.width - Width)/2)
status = window.open(ur,'w1','width='+Width+',height='+Height+',top='+Top+',left='+Left+',menubar=no,location=no,scrollbars=no');
}
function PopClose()
{
if (status != null && status.open) status.close();
}
window.onfocus=PopClose;
function oW2(ur,Width,Height) {
Top = ((screen.height - Height)/100)
Left = ((screen.width - Width)/2)
status = window.open(ur,'w2','width='+Width+',height='+Height+',top='+Top+',left='+Left+',menubar=no,location=no,scrollbars=no');
}
function Val1(la) {
if(sh==true) {
showLAYER(la);
sh=false
}
else {
hideLAYER(la);
sh=true
}
}
function Val2(laa) {
hideLAYER(laa);
sh=true
}

