// JavaScript Document
function changetab(x,n){							//x=tab to be shown & y=no of tabs
var y = document.getElementById('tab'+ x );			//specified tab div
var z = document.getElementById('tabcontent'+ x);  //specified tabcontent div
for (var i=1; i < n+1; i=i+1){						//closing all the tabs first
document.getElementById('tab'+ i).className = "tab"+i+"heading0"; //closing all the tabheadings
document.getElementById('tabcontent'+ i).style.display="none"; //hiding all the tabs
}
y.className = "tab"+x+"heading1"; // opening the specified tabheading
z.style.display="block"; //showing the specified tab
}
