	var NS = (document.layers) ? 1 : 0;
	var IE = (document.all)    ? 1 : 0;
	var submitted=0;

	function CheckKey(e) {
	   if (NS) {
		thekey = e.which;
		m=e.modifiers;
	   } else {
		 thekey=window.event.keyCode;
		 m=window.event.shiftKey;
	   }
		if(!(!m && (thekey==13 || thekey==8 || thekey==37 || thekey==39 || thekey==46 || (thekey>=48 && thekey<=57) || (thekey>=96 && thekey<=105)))) {
			if (NS) e.which=0;
		    else {
			window.event.keyCode=0;
			window.event.returnValue = false;
		    }
		    return false;
		} else {
			return true;
		}
	}

	function focusinputfield(fieldname){
		document.getElementById(fieldname).focus();
		document.getElementById(fieldname).select();
	  }

function langlink()
	{
		location=document.langform.lang.options[document.langform.lang.selectedIndex].value;
	}
function flaglink()
	{
		location=document.flagform.flag.options[document.flagform.flag.selectedIndex].value;
	}

