// JavaScript Document
function IniformDiv(parentDiv,iDisplay,childDiv,iType) 
{ 
 //先判断父div是否显示 
 var pDiv_obj = document.getElementById(parentDiv); 
 if (iDisplay == 1) 
 { 
        pDiv_obj.style.visibility = "visible"; 
        pDiv_obj.style.display = "block";   
 } 
 if (iDisplay == 0) 
 { 
     pDiv_obj.style.visibility = "hidden"; 
        pDiv_obj.style.display = "none"; 
 } 
 //再判断子div是否显示 
    var Div_obj = document.getElementById(childDiv); 
    if(iType == 1) 
    { 
        Div_obj.style.visibility = "visible"; 
        Div_obj.style.display = "block"; 
    } 
     
    if(iType == 0) 
    { 
        Div_obj.style.visibility = "hidden"; 
        Div_obj.style.display = "none"; 
    } 
} 

 function showDiv(show_div) 
 { 
  show_div.style.visibility = "visible"; 
        show_div.style.display = "block";   
 } 

function IniformDiv_Search(el,iType) 
{ 
    var Div_obj = document.getElementById(el); 
     
    if(iType == 1) 
    { 
        Div_obj.style.visibility = "visible"; 
        Div_obj.style.display = "block"; 
    } 
     
    if(iType == 0) 
    { 
        Div_obj.style.visibility = "hidden"; 
        Div_obj.style.display = "none"; 
    } 
} 
function SwitchformDiv(el) 
{ 
    var Div_obj = document.getElementById(el); 
    
    if (Div_obj.style.visibility == "hidden") 
    { 
       Div_obj.style.visibility = "visible"; 
       Div_obj.style.display = "block"; 
       return 
    } 
     
    if (Div_obj.style.visibility == "visible") 
    { 
       Div_obj.style.visibility = "hidden"; 
       Div_obj.style.display = "none"; 
       return 
    } 
} 


