// JavaScript Document

function doLoc(loc)
{
	var loc = encodeURIComponent(document.forms.catsel.category.value);
	if (document.forms.catsel.category.value == "0"){
			//window.location	= "Please select a category";
	}
	else{
		//alert (loc);
	window.location	= loc;
	}

}

function dofadein(id)

{
new Effect.Appear(document.getElementById(id), { duration: 1.0 });
}
function dofadeout(id)

{
new Effect.Fade(document.getElementById(id), { duration: 1.0 });
}

 function toggle_off(id) {
       var e = document.getElementById(id);
          e.style.display = 'none';
    }
 function toggle_on(id) {
       var e = document.getElementById(id);
          e.style.display = 'block';
    }
	
	function doSearch()
{
		document.forms.jsearch.action = "manwalksintoajoke_jokeresults.asp";
					document.jsearch.method = "post";
					document.jsearch.submit();
}
	function doRandom()
{
		document.jsearch.action = "manwalksintoajoke_jokestart.asp";
					document.jsearch.method = "post";
					document.jsearch.submit();
}
	function doJOTDemail()
{
		document.forms.jotdh.action = "manwalksintoajoke_jokeoftheday.asp";
					document.jotdh.method = "post";
					document.jotdh.submit();
}