function go() {
	box = document.forms[0].plot;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

//Magic form with fadings bits
formitems = Object();
buffer = null;

function setFade(element)
{
	if(buffer != null)
		buffer == null;
		
	if(formitems[element.name] == null)
	{
		formitems[element.name] = new Effect.Highlight(element, {startcolor:'#ffffff', endcolor:'#2918c6', restorecolor:'#2918c6', duration: 1.0});
		element.style.color = '#fff';
	}
}

function removeFade(element)
{
	if(formitems[element.name] != null)
	{
		buffer = new Effect.Highlight(element, {startcolor:'#2918c6', endcolor:'#ffffff', restorecolor:'#ffffff', duration: 0.5});
		formitems[element.name] = null;
		element.style.color = '#000';
	}
}

//Change Text
function sending(doit) {
	doit.value='Sending..';
}

//Validation
validation_list = Array();
validation_list = {Name : new JJ_ValidateElement(false, 'Please enter your name.'),
				   Company : new JJ_ValidateElement(false, 'Please enter your company.'),
				   Phone : new JJ_ValidateElement(false, 'Please enter your phone number.'),
				   Email : new JJ_ValidateElement(/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i, 'You have entered an invalid email address.'),
				   Comment : new JJ_ValidateElement(false, 'Please enter a comment.')};
validator = new JJ_Validate();


startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dropmenu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
