function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
   {
   if(mySel.form.target)myWin = parent[mySel.form.target];
   else myWin = window;
   if (! myWin) return true;
   myWin.location = myVal;
   }
return false;
}

function validate() {
	if(document.getElementById('username').value == "")
	{
		var missing = "Your Username";
	}
	if(document.getElementById('email').value == "")
	{
		var missing = "Your Email Address";
	}
	if(document.getElementById('subject').value == "")
	{
		var missing = "Your Subject";
	}
	if(document.getElementById('comments').value == "")
	{
		var missing = "Your Comments";
	}
	if(document.getElementById('name').value == "")
	{
		var missing = "Your Name";
	}
	if(missing)
	{
		alert("You have to fill in all the fields before sending your message.")
		return false;
	}
}

function slideSwitch(id) 
{
	if(id != 'moreSearch' & Element.getStyle('moreSearch', 'display') != 'none') 
	{
		new Effect.SlideUp('moreSearch', {duration:.3});
	}
	if(id != 'moreBrowse' & Element.getStyle('moreBrowse', 'display') != 'none') 
	{
		new Effect.SlideUp('moreBrowse', {duration:.3});
	}
	
	if(Element.getStyle(id, 'display') == 'none')
	{
		new Effect.SlideDown(id);
	}
	else
	{
		new Effect.SlideUp(id);
	}
	
}


