
var tabh=""; 
var f=1;  
function show(tab_name)    
{ var w;
  if(tab_name==tabh)
    f=0;
  if(window.innerWidth)
      w=140;	
  else
    if(document.all)	
        w=140; 
  if(document.layers)							//NS4
  { document.layers[tab_name].left=w+6; 
    document.layers[tab_name].visibility="visible";
  }
  if(document.all&&!document.getElementById)	//IE4
  { document.all(tab_name).style.left=w;
    document.all(tab_name).style.visibility="visible";
  }
  if(document.getElementById&&document.all)		//IE5+
  { document.getElementById(tab_name).style.left//=w;
    document.getElementById(tab_name).style.visibility="visible";
	document.getElementById(tab_name).style.filter="alpha(opacity=90)";
  }
  if(document.getElementById&&!document.all)	//NS6+
  { document.getElementById(tab_name).style.left//=w;
    document.getElementById(tab_name).style.visibility="visible";
  }
}

function popen(url) {
w = 550;
h = 450;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no';
ss = window.open("",'pic',settings);
ss.document.write('<body topmargin=0 leftmargin=0 onClick="window.close()">');
ss.document.write('<img width='+w+' height='+h+' src="'+url+'">');
ss.document.write('</body>');
}


function hide(tab_name)
{ tabh=tab_name;
  f=1;
  setTimeout('hide2(tabh,0)',10); 
}

function hide2(tab_name,p) 
{ if(f||p)
  { if(document.layers)
      document.layers[tab_name].visibility="hidden";
    if(document.all&&!document.getElementById ) 
      document.all(tab_name).style.visibility="hidden";
    if(document.getElementById)  
      document.getElementById(tab_name).style.visibility="hidden";          
  }
}

function SetState1(obj_checkbox, obj_select, obj_file)
{ 
if(obj_checkbox.checked)
			{
			   obj_select.disabled = true;
			   obj_file.disabled = false;
			}
			else
				{ 
			   obj_file.value ='';	
			   obj_select.disabled = false;
			   obj_file.disabled = true;
				}
}
function map(url) {
   w = 1000;
    h = 835; 
     LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
     TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no ,resizable=no';
ss = window.open(url,'MAP',settings);
}
