// JavaScript Document

function start() {
  if(document.forms['login_form']){
    document.forms['login_form'].elements['login'].focus();
    }
  
  }
  
var win=null;
function new_window(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}

function hide_show (elm, hiddenDivName, ShowText, HideText)
{
  var hiddenDiv = document.getElementById(hiddenDivName);

  if(hiddenDiv.style.display == 'none' || hiddenDiv.style.display == '')
  {
    elm.innerHTML = HideText;
    hiddenDiv.style.display = 'block';
  }
  else
  {
    elm.innerHTML = ShowText;
    hiddenDiv.style.display = 'none';
  }
}
function hid_show_all_bckp(id)	{
	var pic_check=document.getElementById(id);
	var all_fil_flag=0;
	if (pic_check.style.display=="none")
	{
		pic_check.style.display="block";
		
	}
	else
	{
		pic_check.style.display="none";
		
	}
}

function hid_show_all_2bckp(id){ 
  if (document.getElementById){ 
    obj = document.getElementById(id); 
    if (obj.style.display == "none"){ 
      obj.style.display = ""; 
    }
    else { 
    obj.style.display = "none"; 
    } 
  } 
}

var state = 'none'; 

function hid_show_all(layer_ref) { 

if (state == 'block') { 
state = 'none'; 
} 
else { 
state = 'block'; 
} 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
} 
