function goURL(s) {       
	//var d = s.options[s.selectedIndex].value
    //window.top.location.href = d
    //s.selectedIndex=0
    window.top.location.href = s
}
function openEvent(id) {
		var el = document.getElementById(id);
		if(el) {
			el.setAttribute("class",'focus detail');
			el.setAttribute("className",'focus detail');
		}
}
function closeEvent(id) {
		var el = document.getElementById(id);
		if(el) {
			el.setAttribute("class",'hidden detail');
			el.setAttribute("className",'hidden detail');
		}
}
function showHide(obj) { //onclick either shows or hides the current dropout
	
	//hideAll();
	var showEl = document.getElementById(obj);
	//var showAr = document.getElementById("navMenu").getElementsByTagName("span");
	if(showEl.style.display != "block"){ 
		showEl.style.display = "block";
	} else {
		showEl.style.display = "none";
	}
}

function addInputSubmitEvent(form, input) {
    input.onkeydown = function(e) {
        e = e || window.event;
        if (e.keyCode == 13) {
            form.submit();
            return false;
        }
    };
}

window.onload = function() {
    var forms = document.getElementsByTagName('form');

    for (var i=0;i < forms.length;i++) {
        var inputs = forms[i].getElementsByTagName('input');

        for (var j=0;j < inputs.length;j++)
            addInputSubmitEvent(forms[i], inputs[j]);
    }
};
