// JavaScript Document

function ShowHide(element) {
	if (document.getElementById(element).style.display == 'none')
	  document.getElementById(element).style.display = 'block';
	else 
	  document.getElementById(element).style.display = 'none';
} //end function

function Show(element) {
	  document.getElementById(element).style.display = 'block';
} //end function

function Hide(element) {
	  document.getElementById(element).style.display = 'none';
} //end function

var txtShow = "+ Click to Show ";
var txtHide = "- Click to Hide ";

function updateLink(id) {
	var txt = document.getElementById(id).innerHTML;
	var txtAction = txt.substr(0, 16);
	var txtItem = txt.substr(16);
	
	if (txtAction == txtShow || txtAction == txtHide) {
		//do nothing
	} else {
		txtShow = "+ ";
		txtHide = "- ";
		txtAction = txt.substr(0, 2);
		txtItem = txt.substr(2);	
	}
	
	if (txtAction == txtShow) {
		document.getElementById(id).innerHTML = txtHide + txtItem;
			
	} else {
		document.getElementById(id).innerHTML = txtShow + txtItem;
		
	} 
	
} //end function