All pastes #136826 Raw Edit

Mine

public javascript v1 · immutable
#136826 ·published 2006-08-17 22:53 UTC
rendered paste body
<script type="text/javascript">	function showRow(id)	{	    id.style.display = "table-row";	}	function showBlock(id)	{	    id.style.display = "block";	}	function hideBlock(id)	{	    id.style.display = "none";	}	function getID(id)	{	    return document.getElementById(id);	}	function toggleInfo(id)	{		if (getID(id).style.display == 'none') 		{ 			showBlock(getID(id)); 		}		else 		{ 			hideBlock(getID(id)); 		}	}	function toggleShow(element)	{		switch (element.value)		{			case "randomly":				hideBlock(getID("offer_advance"));				hideBlock(getID("orderly_advance"));				break;			case: "orderly":				alert("orderly")				hideBlock(getID("offer_advance"));				showBlock(getID("orderly_advance"));				break;			case: "singly":				showBlock(getID("offer_advance"));				hideBlock(getID("orderly_advance"));				break;			default:				alert("bad value");				break;		}	}</script>