/*القديمة تعمل فقط على المتصفح إكسبلورار
function ShowHide(divToShow,divName) {
if (document.getElementById) {
	if (divToShow.checked == true) {
	document.getElementById(divName).style.display = "visible";
	}else{
	document.getElementById(divName).style.display = "hidden";
		}
	}
}
*/

function ShowHide(box, it) {
  var vis = (box.checked) ? "block" : "none";
  document.getElementById(it).style.display = vis;
}


//Create an array 
  var allPageTags = new Array(); 

  function doSomethingWithClasses(theClass) { 
//Populate the array with all the page tags 
    var allPageTags=document.getElementsByTagName("*"); 
//Cycle through the tags using a for loop 
    for (var i=0; i<allPageTags.length; i++) { 
//Pick out the tags with our class name 
      if (allPageTags[i].className==theClass) { 
//Manipulate this in whatever way you want 
        allPageTags[i].style.display='none'; 
      } 
    } 
  } 

function Show(ids,Class) { 
  doSomethingWithClasses(Class); 

  var obj = document.getElementById(ids); 
  if (obj.style.display != 'block') { obj.style.display = 'block'; } 
                               else { obj.style.display = 'none'; } 
} 