function submitenter(myfield,e) {
  var keycode;
  if (window.event) keycode = window.event.keyCode;
  else if (e) keycode = e.which;
  else return true;

  if (keycode == 13) {
     //
     var username = myfield.form.site_login.value;
     var password = myfield.form.site_password.value;
	 if(username!='<?php echo $trans[login][$taal_id]; ?>' && username!='' && password!='<?php echo $trans[wachtwoord][$taal_id]; ?>' && password!='') {
	 	myfield.form.submit();
	 }
      return true;
  }
  else
     return true;
}

var win = null;
function NewWindow(mypage,myname,w,h){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no'
	win = window.open(mypage,myname,settings)
	if(win.window.focus) {
		win.window.focus();
	}
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		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", "");
				}
			}
		}
	}
}
//window.onload=startList;

function show_hide(object) {
    show = true;
    obj1 = document.getElementById("master").getElementsByTagName("div");
    obj2 = document.getElementById(object);
    if (obj2.style.display == '')
        show = false;
    for (i = 0; i < obj1.length; i++) {
        obj1[i].style.display = 'none';
     }
    if (show == true)
        obj2.style.display = '';
}

function changeLanguage(value) {
	alert(value);
}


function changePage(newLoc) {

  code = newLoc.options[newLoc.selectedIndex].value
	alert(code);
	alert("/"+code);
  //document.location.href = "/"+code;

 }
