// JavaScript Document

//hide area  
function hide(zap,obj) {
 if (document.getElementById) {
  var abra = document.getElementById(zap).style;
  if (abra.display = "block") {
   abra.display = "none"; 
   } else {
   abra.display = "block";	
  }
  return false;
  } else {
  return true;
 }
}

function showcompany(zap,obj) {
 if (document.getElementById) {
  var abra = document.getElementById(zap).style;
  if (abra.display == "none") {
   abra.display = "block"; 
   person.display = "none";
   } else {
   abra.display = "none";
   person.display = "block";
  }
  return false;
  } else {
  return true;
 }
}

function showperson(zap,obj) {
 if (document.getElementById) {
  var abra = document.getElementById(zap).style;
  if (abra.display == "none") {
   abra.display = "block"; 
   company.display = "none";
   } else {
   abra.display = "none";
   company.display = "block";
  }
  return false;
  } else {
  return true;
 }
}


// JavaScript Document
function selected(zap,obj)
{

if (document.getElementById) {
  var abra = document.getElementById(zap).style;
  alert(abra)
if(abra=="one")showone();
else showother();

}
}
function showone()
{
one.style.display="none";
two.style.display="";

}
function showother()
{
one.style.display="";
two.style.display="none";
}


var curro = null;

function disdiv(o)
{
    if (curro != null)
        curro.style.display = "none";
    
    curro = o;
    curro.style.display = "";

}


