function acdnShow(name, id) {	var acdnBtms = document.getElementsByName(name);		for (var i=0; i<acdnBtms.length; i++) {		if (acdnBtms[i].id != id)			acdnBtms[i].style.display = 'none';	}	if (document.getElementById(id).style.display == 'block') {		document.getElementById(id).style.display = 'none';	}	else {		document.getElementById(id).style.display = 'block';	}}function confirmDelete(){var agree=confirm("Are you sure you wish to delete this policy?");if (agree)	return true;else	return false;}/* This script and many more are available free online atThe JavaScript Source!! http://javascript.internet.comCreated by: Marko Samastur :: http://markos.gaivo.net/blog/ */function mangle() {	if (!document.getElementsByTagName && !document.createElement &&		!document.createTextNode) return;	var nodes = document.getElementsByTagName("span");	for(var i=nodes.length-1;i>=0;i--) {		if (nodes[i].className=="change") {		var at = /at/;		var dot = /dot/g;		var title = nodes[i].firstChild.nodeValue.split(",")[0];		var addr = nodes[i].firstChild.nodeValue.split(",")[1];		var address = addr.split(" ").join("");		var node = document.createElement("a");		address = address.replace(at, "@");		address = address.replace(dot, ".");		node.setAttribute("href", "mailto:"+address);		node.setAttribute("style", "color: blue; font-weight: bold; text-decoration: underline;");		try		{			node.style.setAttribute('cssText', "color: blue; font-weight: bold; text-decoration: underline;");		}		catch(err)		{		//Handle errors here		}	  		node.appendChild(document.createTextNode(title));		var parent = nodes[i].parentNode;		for(var j=0;j<parent.childNodes.length;j++)	        if (parent.childNodes[j] == nodes[i]) {		          if (!parent.replaceChild) return;		          parent.replaceChild(node, parent.childNodes[j]);		          break;	        }    }  }}function MyOnLoad() {	if (document.location.pathname.indexOf("bytopics.php") == -1) { 		if ($.query.toString().indexOf('catExpand') != -1) {			document.location.search = $.query.REMOVE("catExpand");		}			}		mangle();		$('#PrintPage').dialog(		{width: 250,		height: 350,		resizable: false		});		$('#PrintPage').dialog('close');		}function toggleCat(link, togName) {	sel = '[name=' + togName + ']';	if (link.innerHTML == '[hide]') 		link.innerHTML = '[show]';	else		link.innerHTML = '[hide]';	$(sel).toggle();	return false;}function toggleTopic(link, togName) {	if ($("#" + togName)[0].style.display == 'none')		document.location.search = $.query.SET('catExpand', togName);	else		document.location.search = $.query.REMOVE('catExpand');	//return false;}function addToClip(cb, policyID, natstand) {			var payload = { policyID: policyID };		if (natstand !== undefined) {		payload.natstand = "true";	}			if (cb.checked) {		payload.action = "add";		$.post("http://www.nasbe.org/healthy_schools/hs/addToClip.php", payload, function(data) { if (data.msg != 'OK') alert(data.msg); }, "json");	}	else {		payload.action = "remove";		$.post("http://www.nasbe.org/healthy_schools/hs/addToClip.php", payload, function(data) { if (data.msg != 'OK') alert(data.msg); }, "json");	}		// if (isClipBoard) {				// window.location.reload();	// }}
