function in_array(the_needle, the_haystack) {
    for(i=0;i<the_haystack.length;i++) {
    	if(the_haystack[i] == the_needle) {
    		return true;
    	}
    }
    return false;
}
function ShowHide(tag, id) {
	var showHide = false;
	obj = document.getElementsByTagName(tag);
	if(obj[id]) {
		if (obj[id].style.display == "none" || obj[id].style.display == "")  {
			if (tag == 'table') {
				type = "table";
			}
			else {
				type = "block";
			}
			obj[id].style.display = type;

			showHide = true;
		}
		else {
			obj[id].style.display = "none";
		}
	}
	return showHide;
}
