// JavaScript Document


function switchclass(id){
   if(document.getElementById(id)){    //check the element exists and can be accessed
       
	   var ele = document.getElementById(id);    //get hold of the element

           ele.className="active";  

   }
}
