// dhtml.js 
// By Glen Tregoning
// The javascript responsible for the DHTML functioning of the apply_template.html page.
// This code allow for the changing of the contence of the page without having to send another
// request to the server, making the interface far more repsonsive for the user
// However there is a limitation that this function will only work for users with a modern browser

var ie = (document.all) ? true : false;


function toggle(id) {
	target = '';
	if (ie) {
		target = document.all(id);
	} else {
		target = document.getElementById(id);
	}
	if (target.style.display == "none"){
		target.style.display="";
	} else {
		target.style.display="none";
	}
}

function show_by_id(id) {
	target = ''
	if (ie) {
		target = document.all(id);
	} else {
		target = document.getElementById(id);
	}
	target.style.display="";
}

function hide_by_id(id) {
	target = ''
	if (ie) {
		target = document.all(id);
	} else {
		target = document.getElementById(id);
	}
	target.style.display="none";
}




