window.onload = function() {
	
if (document.getElementsByTagName)
{
	var spans = document.getElementsByTagName("span");
	
	for (i=0; i< spans.length; i++)
	{
				if (/toggle/i.exec(spans[i].id))
				{
					var tog = spans[i];
					var toglink = tog.appendChild(document.createElement('a'));
					toglink.className = "showhide";
					toglink.href='#';
					toglink.appendChild(document.createTextNode('Show Description'));

					toglink.onclick = function() {
						if (this.childNodes[0].nodeValue == "Show Description")
						{
							this.childNodes[0].nodeValue = 'Hide Description';
							var target = this.parentNode.id.split("_");
							target = document.getElementById(target[0] + "desc");
							target.className += " show";
						}
						else
						{
							this.childNodes[0].nodeValue = 'Show Description';
							var target = this.parentNode.id.split("_");
							target = document.getElementById(target[0] + "desc");
							target.className= "suppdesc";
						}
						return false;
					}
					
				}
	}
	
	
	/*var radios = document.getElementsByTagName("input");
	
	for (j=0; j< radios.length; j++)
	{
		if (radios[j].getAttribute("type") == "radio")
		{
			radios[j].onclick= function() {

			var check = this.name.split("_");
			

			}
		}
		
	}
	*/
	
}

}






