function showhide(divon, divoff1, divoff2, status){
	var i;
	var block = document.getElementById(divon).style.display;
	var blockoff1 = document.getElementById(divoff1).style.display;
	var blockoff2 = document.getElementById(divoff2).style.display;
	var checkBoxArray = new Array();
		checkBoxArray[0] = "addEvents_addevent";
		checkBoxArray[1] = "addInformation_addinfo";
		checkBoxArray[2] = "addAttraction_addbusiness";
	
	
	if(status == true) {
	if (blockoff1 == "block" || blockoff2 == "block") {
		document.getElementById(divoff1).style.display = "none";	
		document.getElementById(divoff2).style.display = "none";	
	};

		document.getElementById(divon).style.display = "block";	
		
	}else{
		
		for (i = 0; i < checkBoxArray.length; i++) {
			var parseRef = checkBoxArray[i].split("_", 2);
			document.getElementById(parseRef[1]).style.display = "none";
		};
		
		for (i = 0; i < checkBoxArray.length; i++) {
			var parseRef = checkBoxArray[i].split("_", 2);
			if(document.getElementById(checkBoxArray[i]).checked == true) {
				document.getElementById(parseRef[1]).style.display = "block";
				return false;
			};
		};
		
	};
};


function simpleSwitch(on,off) {
	document.getElementById(on).style.display = "block";
	document.getElementById(off).style.display = "none";
};