function toggle(a){
	// hide existing block //
	var oldid=document.getElementById('oldid').value
	if(oldid != ''){
		document.getElementById(oldid).style.display='none';
	}
	// show id block //
	document.getElementById('oldid').value=a;
	document.getElementById(a).style.display='block';
}

// REQUIRES that "<input type=hidden id=oldid value=''>" exist on calling page
