function tabControl(divID){

	var oDiv1 = document.getElementById("div1");
	var oDiv2 = document.getElementById("div2");
	var oDiv3 = document.getElementById("div3");
	
	switch(divID){
		case "div1":		
			oDiv1.style.display=''; 
			oDiv2.style.display='none'; 
			oDiv3.style.display='none'; 
			break;
		case "div2":	
			oDiv1.style.display='none'; 			
			oDiv2.style.display=''; 	
			oDiv3.style.display='none'; 
			break;
		case "div3":	
			oDiv1.style.display='none'; 			
			oDiv2.style.display='none'; 	
			oDiv3.style.display=''; 
			break;
			
	}	//end switch

}	//end of function

function setTabControl(){

	//extract the first parameter from URL
	var iID = location.search.substring(1);
	//located the = sign
	var iPosition = iID.indexOf("=");
	//extract the divID number
	var iDivID = iID.substring(iPosition+1);
	//append the divID number to the string "div"
	var divID = "div" + iDivID;
	//call the tabControl function passing the divID to display	
	tabControl(divID);

}	//end of function