function shLayers() {
  var i,p,v,obj,args=shLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function findObj(n,d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function chkformx()
{
	var email = document.nl_sign_form.email.value;
	pattern = new RegExp( '^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\.]+)([\\.])([a-zA-Z]{2,4})$' );
	if ( !pattern.test(email) )
	{
		alert("Bitte geben Sie Ihre e-mail-Adresse ein!");
		document.nl_sign_form.email.focus();
		return false;
	}
	return true;
 	}
function send_datax( selection )
{
	if (chkformx())
	{
  		document.nl_sign_form.method = "post";
  		if ( selection == "sign_in_b" )
  		{
  			document.nl_sign_form.action = "/index.html?mt=p&cat=forms&myid=14";
  		}
		if ( selection == "sign_out_b" )
		{
			document.nl_sign_form.action = "/index.html?mt=p&cat=forms&myid=15";
		}
		document.nl_sign_form.submit();
	}
}
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
  return false;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
