/**
 * @author kchorosinski
 */

	function go_on_enter(e)
	{
		var keycode;
		if (window.event) keycode = window.event.keyCode;
		else if (e) keycode = e.which;
		else return true; // egal, ob true oder false

		if (keycode == 13)
		   return go();
		else
			return true;
	}

	function go()
	{
	 if (document.an.P_V_LOGINNAME.value=='')
	 {
	   alert ('Bitte geben Sie ihren LOGIN-Namen ein');
	   document.an.P_V_LOGINNAME.focus();
	   return (false);
	  }
	 if (document.an.P_V_PSW.value=='')
	 {
	   alert ('Bitte geben Sie ihr Passwort ein');
	   document.an.P_V_PSW.focus();
	   return (false);
	  }
	 document.an.submit();
	 return (false);
	}
	
	function pbarcodego()
	{
	 if (document.anbarcode.pbarcode.value=='')
	 {
	   alert ('Bitte geben Sie ihren TNT Innight Barcode ein');
	   document.anbarcode.pbarcode.focus();
	   return (false);
	  }
	  document.anbarcode.submit();
	  return (false);
	}
