
// //////////////////////////////////////////////////////////////////////////////////////////
function toggle_visibility(id) 
// //////////////////////////////////////////////////////////////////////////////////////////
{
	var e = document.getElementById(id);
	e.style.display = (e.style.display == 'block') ? 'none' : 'block';
}

// //////////////////////////////////////////////////////////////////////////////////////////
function in_array(needle, haystack, strict) {
// //////////////////////////////////////////////////////////////////////////////////////////
 
	var found = false, key, strict = !!strict;
	
	for (key in haystack) 
	{
		if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) 
		{
			found = true;
			break;
		}
	}
	
	return found;
}


