// Thanks to Quirksmode.org for this function
function visi(nr)
{
	if (document.layers)
	{
		var v = document.layers[nr].visibility;
		vista = (v == "hide" || v == "") ? "show" : "hide"
		document.layers[nr].visibility = vista;
	}
	else if (document.all)
	{
		var v = document.all[nr].style.visibility;
		vista = (v == "hidden" || v == "") ? "visible"	: "hidden";
		document.all[nr].style.visibility = vista;
	}
	else if (document.getElementById)
	{
		var v = document.getElementById(nr).style.visibility;
		vista = (v == "hidden" || v == "") ? "visible" : "hidden";
		document.getElementById(nr).style.visibility = vista;

	}
}

function doRate(f)
{
	if (f.form.rating.value < 1 || f.form.rating.value > 5 || f.form.rating.value == "-")
		alert("Please select a rating between 1-5.");
	else
	{
		alert("Thank you for rating this link. Your rating will be reflected after the next update.");
		f.form.submit();
	}
}
