
	  var GB_ROOT_DIR = "/tpl/skins/de/default/greybox/";

           function mtl(a,b,c){
                 var jsma ='mai';
                 var jslto='lto:';
                 var mtlf= jsma+jslto+c+b+a;
                 document.location.href=eval('"'+mtlf+'"');
           }

           function ismaxlength(obj){
                  var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
                  if (obj.getAttribute && obj.value.length>mlength)
                  obj.value=obj.value.substring(0,mlength)
           }

	  GB_am3Show = function(caption, url, height, width, callback_fn) {
	             var options = {
	                 caption: caption,
	                 height: height || 500,
	                 width: width || 500,
	                 fullscreen: false,
	                 show_loading: true,
	                 callback_fn: callback_fn
	             }
	             var win = new GB_Window(options);
	             return win.show(url);
	  }

         function entsub(event,entsubform) {

	         if (event.keyCode) {
   	         	iAscii = event.keyCode;
                  }
	         else if (event.which) {
  	         	iAscii = oEvent.which;
                  }
	         else {
	         	return false;
                  }

           if (iAscii && iAscii == 13) {
             entsubform.submit();
           }
           else {
             return true;
           }
         }
         
	  function confirmdelad(cid) {
	    if (confirm("Wollen Sie dieses Gesuch wirklich löschen?")) {
	      document.location.href = "/index.php?cID=-100&delete="+cid;
	    }
	  }
         	  
	  function confirmdelad2(cid) {
	    if (confirm("Wollen Sie dieses Gesuch wirklich löschen?")) {
	      document.location.href = cid;
	    }
	  }
         