function noError()
{
  return true;
}

window.onerror = noError;


function checkInput(wert,was)
{
    nix=0;

    if (wert=="")
    {
    	alert ('Bitte geben Sie eine g&uuml;ltige E-Mailadresse an!');
  	nix=1;
    	return false;
    } else if (was=="@" && nix!=1) if (wert.indexOf('@')==-1 || wert.indexOf('.')==-1) {
    	alert ('Bitte geben Sie eine g&uuml;ltige E-Mailadresse an!');
    	return false;
    } else return true;

}



function checkPWD(pw1,pw2)
{
	if(pw1!=pw2)
	{
		alert("Die Passw&ouml;rter stimmen nicht &uuml;berein.");
		return false;
	}
	else
	{
		return true;
	}
}


function proofKONTAKT() {
		if(document.wmk.text.value) return true;
		else {
			alert("Senden Sie bitte eine\nNachricht!");
			return false;
		}
}

function layoutvorschau() {
		
		if(document.css.form_art[0].checked) $form="n";
		if(document.css.form_art[1].checked) $form="d";
		
		if(document.css.bg_pic_style[0].checked) $hintergrund="n";
		if(document.css.bg_pic_style[1].checked) $hintergrund="r";
		if(document.css.bg_pic_style[2].checked) $hintergrund="x";
		if(document.css.bg_pic_style[3].checked) $hintergrund="y";
		
		if(document.css.bg_pic_fix.checked==true) $fixed="1";
		else $fixed="0";
		
		$ueberschrift_stil="";
		if(document.css.u_stil_fett.checked==true) $ueberschrift_stil=$ueberschrift_stil+"f";
		if(document.css.u_stil_unter.checked==true) $ueberschrift_stil=$ueberschrift_stil+"u";
		if(document.css.u_stil_kurs.checked==true) $ueberschrift_stil=$ueberschrift_stil+"k";
		
		$text_stil="";
		if(document.css.f_stil_fett.checked==true) $text_stil=$text_stil+"f";
		if(document.css.f_stil_unter.checked==true) $text_stil=$text_stil+"u";
		if(document.css.f_stil_kurs.checked==true) $text_stil=$text_stil+"k";
		
		$link_stil="";
		if(document.css.l_stil_fett.checked==true) $link_stil=$link_stil+"f";
		if(document.css.l_stil_unter.checked==true) $link_stil=$link_stil+"u";
		if(document.css.l_stil_kurs.checked==true) $link_stil=$link_stil+"k";
		
		$rollover_stil="";
		if(document.css.o_stil_fett.checked==true) $rollover_stil=$rollover_stil+"f";
		if(document.css.o_stil_unter.checked==true) $rollover_stil=$rollover_stil+"u";
		if(document.css.o_stil_kurs.checked==true) $rollover_stil=$rollover_stil+"k";
		
		
		
		
		vorschau.location.href='vorschau.php?form_linie_farbe='+document.css.form_linie_farbe.value+'&form_art='+$form+'&bg_color='+document.css.bg_color.value+'&f_color='+document.css.f_color.value+'&f_art='+document.css.f_art.value+'&f_groesse='+document.css.f_groesse.value+'&bg_pic='+document.css.bg_pic.value+'&bg_pic_style='+$hintergrund+'&sb_selber='+document.css.sb_selber.value+'&sb_arrow='+document.css.sb_arrow.value+'&sb_base='+document.css.sb_base.value+'&sb_shadow='+document.css.sb_shadow.value+'&sb_darkshadow='+document.css.sb_darkshadow.value+'&sb_face='+document.css.sb_face.value+'&sb_highlight='+document.css.sb_highlight.value+'&sb_track='+document.css.sb_track.value+'&trenn_farbe='+document.css.trenn_farbe.value+'&f_stil='+$text_stil+'&bg_pic_fix='+$fixed+'&l_groesse='+document.css.l_groesse.value+'&l_color='+document.css.l_color.value+'&o_color='+document.css.o_color.value+'&o_art='+document.css.o_art.value+'&o_groesse='+document.css.o_groesse.value+'&o_stil='+$rollover_stil+'&unterlegt_col='+document.css.unterlegt_col.value+'&u_color='+document.css.u_color.value+'&u_art='+document.css.u_art.value+'&u_groesse='+document.css.u_groesse.value+'&u_stil='+$ueberschrift_stil+'&form_schrift_farbe='+document.css.form_schrift_farbe.value+'&form_feld_farbe='+document.css.form_feld_farbe.value+'&l_art='+document.css.l_art.value+'&l_stil='+$link_stil;
		
		
}
// ----------------------------------------------------------------------------------------------------
// FENSTER
// ----------------------------------------------------------------------------------------------------

	function openUploader(ORDNER,EXTENSION) {
		window.open('upload.php?ORDNER='+ORDNER+'&EXTENSION='+EXTENSION,'webmodsuploader','width=285,height=160,no');
	}

	function winOPEN(ziel,name,breite,hoehe)
	{
		thiswin=window.open(ziel,name,"width="+breite+",height="+hoehe+",status=no,toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=yes");
		thiswin.focus();
	}

	function popUP(ziel,name,breite,hoehe,focusAlways)
	{
		thiswin=window.open("http://www.webmods.de/popup.php?WID="+name+"&show="+ziel,"WW"+name,"width="+breite+",height="+hoehe+",status=no,toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=no");
		if(focusAlways) thiswin.focus();
	}

	function popUNDER(ziel,name,breite,hoehe)
	{
		thiswin=window.open("http://www.webmods.de/popup.php?WID="+name+"&show="+ziel,"WW"+name,"width="+breite+",height="+hoehe+",status=no,toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=no");
		parent.opener.focus();
	}

