<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function checkEmail(myForm)
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value))
	{
		return (true);
	}
	alert("Ungültige e-mail Adresse!");
	return (false);
}

function checkEmail1(myForm)
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.eemail.value))
	{
		return (true);
	}
	alert("Ungültige e-mail Adresse!");
	return (false);
}

function trim(inputString) 
{
	if (typeof inputString != "string") { return inputString; }
	var retValue = inputString;
	var ch = retValue.substring(0, 1);
	while (ch == " ") 
	{ 
		retValue = retValue.substring(1, retValue.length);
		ch = retValue.substring(0, 1);
	}
	ch = retValue.substring(retValue.length-1, retValue.length);
	while (ch == " ") 
	{
		retValue = retValue.substring(0, retValue.length-1);
		ch = retValue.substring(retValue.length-1, retValue.length);
	}
	while (retValue.indexOf("  ") != -1) 
	{ 
		retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
	}
	return retValue; 
}

function checkform1(mf)
{
	var cntLogoDesign = mf.needlogodesign.length;
	var logoStatus = 0;

	if(mf.domainname.value=="")
	{
		alert("Bitte ergänzen sie einen Website Name.");
		mf.domainname.focus();
		return false;
	}
	if(mf.organtype.value=="")
	{
		alert("Bitte wählen sie eine Organisationsform.");
		mf.organtype.focus();
		return false;
	}
	if(mf.havelogo.checked)
	{
		if(mf.uploadlogo.value=="")
		{
			alert("Bitte wählen sie ihre Logo Datei in einer der folgenden Bilddateien (bmp/jpg/gif/png).");
			mf.uploadlogo.focus();
			return false;
		}
	}
	for(i=0;i<cntLogoDesign;i++)
	{
		if(mf.needlogodesign[i].checked)
		{
			logoStatus = 1;
		}
	}
	if(logoStatus==0)
	{
		if(mf.havelogo.checked!=true)
		{
			alert("Bitte wählen sie ob sie ein Logo benötigen oder nicht.");
			return false;
		}
	}
	return true;
}


function checkLogo(ndlogo)
{
	if(ndlogo==true)
	{
		if(document.frmGeneralIdea.logoopt.value==1)
		{
			document.frmGeneralIdea.totalamount.value = parseFloat(document.frmGeneralIdea.totalamount.value) - parseFloat(document.frmGeneralIdea.logodesignprice.value);
			document.frmGeneralIdea.logoopt.value = 0;
		}
		document.frmGeneralIdea.uploadlogo.disabled=false;
		document.frmGeneralIdea.needlogodesign[0].checked=false;
		document.frmGeneralIdea.needlogodesign[1].checked=false;
	}
	else
	{
		document.frmGeneralIdea.uploadlogo.disabled=true;
	}
}

function checkLogoPrices(ndlogoprc, mnprice)
{
	document.frmGeneralIdea.havelogo.checked=false;
	document.frmGeneralIdea.uploadlogo.disabled=true;
	if(ndlogoprc==0)
	{
		var minprice = parseInt(mnprice);
		if(document.frmGeneralIdea.totalamount.value>minprice)
		{
			if(document.frmGeneralIdea.logoopt.value==1)
			{
				document.frmGeneralIdea.totalamount.value = parseFloat(document.frmGeneralIdea.totalamount.value) - parseFloat(document.frmGeneralIdea.logodesignprice.value);
				document.frmGeneralIdea.logoopt.value = 0;
			}
		}
	}
	else if(ndlogoprc==1)
	{
		if(document.frmGeneralIdea.logoopt.value==0)
		{
			document.frmGeneralIdea.totalamount.value = parseFloat(document.frmGeneralIdea.totalamount.value) + parseFloat(document.frmGeneralIdea.logodesignprice.value);
			document.frmGeneralIdea.logoopt.value = 1;
		}
	}
}

function checkform2(mf)
{
	var cntFlashIntro = mf.needflashintro.length;
	var flashStatus = 0;

	if(mf.bkgrndcolor1.value=="" && mf.bkgrndcolor2.value=="" && mf.bkgrndcolor3.value=="")
	{
		alert("Bitte wählen sie mindestens eine Hintergrundfarbe die ihre Website haben soll.");
		mf.bkgrndcolor1.focus();
		return false;
	}
	if(mf.frgrndcolor1.value=="" && mf.frgrndcolor2.value=="" && mf.frgrndcolor3.value=="")
	{
		alert("Bitte wählen sie mindestens eine Farbe für die Schriftart welche ihre Website haben soll.");
		mf.frgrndcolor1.focus();
		return false;
	}
	for(i=0;i<cntFlashIntro;i++)
	{
		if(mf.needflashintro[i].checked)
		{
			flashStatus = 1;
		}
	}
	if(flashStatus==0)
	{
		alert("Bitte wählen sie ob sie ein flash intro wünschen oder nicht.");
		return false;
	}
	if(!mf.wbstyle1.checked && !mf.wbstyle2.checked && !mf.wbstyle3.checked && !mf.wbstyle4.checked && !mf.wbstyle5.checked && !mf.wbstyle6.checked && !mf.wbstyle7.checked && !mf.wbstyle8.checked && !mf.wbstyle9.checked && !mf.wbstyle10.checked)
	{
		alert("Bitte wählen sie mindestens ein Adjektiv für die Beschreibung ihrer Website.");
		mf.wbstyle1.focus();
		return false;
	}
	var countWebStyle = 0;
	if(mf.wbstyle1.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle2.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle3.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle4.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle5.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle6.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle7.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle8.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle9.checked)
	{
		countWebStyle++;
	}
	if(mf.wbstyle10.checked)
	{
		countWebStyle++;
	}
	if(countWebStyle>3)
	{
		alert("Bitte beschränken sie ihre Auswahl auf maximal 3 Adjektive zur Beschreibung ihrer Website.");
		mf.wbstyle1.focus();
		return false;
	}
/*	if(!mf.chknav1.checked && !mf.chknav2.checked && !mf.chknav3.checked && !mf.chknav4.checked && !mf.chknav5.checked)
	{
		alert("Bitte wählen sie mindestens einen Menu Navigationspunkt.");
		mf.chknav1.focus();
		return false;
	}
*/
	return true;
}

function checkFlIntroPrices(ndflaintprc)
{
	if(ndflaintprc==0)
	{
		if(document.frmDetailedInfo.flashintupdsts.value==1)
		{
			document.frmDetailedInfo.totalamount.value = parseFloat(document.frmDetailedInfo.totalamount.value) - parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.exactcost.value = parseFloat(document.frmDetailedInfo.exactcost.value) - parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.flashintupdsts.value = 0;
			document.frmDetailedInfo.tmpcheckstyle.value = 0;
			document.frmDetailedInfo.wbstyle4.checked=false;
		}
	}
	else if(ndflaintprc==1)
	{
		if(document.frmDetailedInfo.flashintupdsts.value==0)
		{
			document.frmDetailedInfo.totalamount.value = parseFloat(document.frmDetailedInfo.totalamount.value) + parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.exactcost.value = parseFloat(document.frmDetailedInfo.exactcost.value) + parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.flashintupdsts.value = 1;
			document.frmDetailedInfo.tmpcheckstyle.value=1;
			document.frmDetailedInfo.wbstyle4.checked=true;
		}
	}
}

function checkUpdFlIntroPrices(ndflaintprc)
{
	if(ndflaintprc==0)
	{
		if(document.frmDetailedInfo.flashintupdsts.value==1)
		{
			document.frmDetailedInfo.totalamount.value = parseFloat(document.frmDetailedInfo.totalamount.value) - parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.exactcost.value = parseFloat(document.frmDetailedInfo.exactcost.value) - parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.flashintupdsts.value = 0;
		}
	}
	else if(ndflaintprc==1)
	{
		if(document.frmDetailedInfo.flashintupdsts.value==0)
		{
			document.frmDetailedInfo.totalamount.value = parseFloat(document.frmDetailedInfo.totalamount.value) + parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.exactcost.value = parseFloat(document.frmDetailedInfo.exactcost.value) + parseFloat(document.frmDetailedInfo.flashintroprice.value);
			document.frmDetailedInfo.flashintupdsts.value = 1;
		}
	}
}

function checkFlIntroPrices1(ndflintsts, mctrl)
{
	if(ndflintsts==true)
	{
		document.frmDetailedInfo.tmpcheckstyle.value=1;
		document.frmDetailedInfo.totalamount.value = parseFloat(document.frmDetailedInfo.totalamount.value) + parseFloat(document.frmDetailedInfo.flashintroprice.value);
		document.frmDetailedInfo.needflashintro[0].checked=true;
	}
	else
	{
		document.frmDetailedInfo.totalamount.value = parseFloat(document.frmDetailedInfo.totalamount.value) - parseFloat(document.frmDetailedInfo.flashintroprice.value);
		document.frmDetailedInfo.tmpcheckstyle.value=0;
		document.frmDetailedInfo.needflashintro[1].checked=true;
	}
}

function checkCorrectionPrices(ndflaintprc)
{
	if(ndflaintprc==0)
	{
		if(document.frmDataUpload.correctionupdsts.value==1)
		{
			document.frmDataUpload.totalamount.value = parseFloat(document.frmDataUpload.totalamount.value) - parseFloat(document.frmDataUpload.correctionprice.value);
			document.frmDataUpload.correctionupdsts.value = 0;
		}
	}
	else if(ndflaintprc==1)
	{
		if(document.frmDataUpload.correctionupdsts.value==0)
		{
			document.frmDataUpload.totalamount.value = parseFloat(document.frmDataUpload.totalamount.value) + parseFloat(document.frmDataUpload.correctionprice.value);
			document.frmDataUpload.correctionupdsts.value = 1;
		}
	}
}

function checkNavigation1(nvopt)
{
	if(nvopt==true)
	{
		document.frmDetailedInfo.txtnav1.disabled=false;
		document.frmDetailedInfo.txtnav11.disabled=false;
		document.frmDetailedInfo.txtnav12.disabled=false;
		document.frmDetailedInfo.txtnav13.disabled=false;
		document.frmDetailedInfo.txtnav14.disabled=false;
		document.frmDetailedInfo.txtnav15.disabled=false;
	}
	else
	{
		document.frmDetailedInfo.txtnav1.disabled=true;
		document.frmDetailedInfo.txtnav11.disabled=true;
		document.frmDetailedInfo.txtnav12.disabled=true;
		document.frmDetailedInfo.txtnav13.disabled=true;
		document.frmDetailedInfo.txtnav14.disabled=true;
		document.frmDetailedInfo.txtnav15.disabled=true;
	}
}

function checkNavigation2(nvopt)
{
	if(nvopt==true)
	{
		document.frmDetailedInfo.txtnav2.disabled=false;
		document.frmDetailedInfo.txtnav21.disabled=false;
		document.frmDetailedInfo.txtnav22.disabled=false;
		document.frmDetailedInfo.txtnav23.disabled=false;
		document.frmDetailedInfo.txtnav24.disabled=false;
		document.frmDetailedInfo.txtnav25.disabled=false;
	}
	else
	{
		document.frmDetailedInfo.txtnav2.disabled=true;
		document.frmDetailedInfo.txtnav21.disabled=true;
		document.frmDetailedInfo.txtnav22.disabled=true;
		document.frmDetailedInfo.txtnav23.disabled=true;
		document.frmDetailedInfo.txtnav24.disabled=true;
		document.frmDetailedInfo.txtnav25.disabled=true;
	}
}

function checkNavigation3(nvopt)
{
	if(nvopt==true)
	{
		document.frmDetailedInfo.txtnav3.disabled=false;
		document.frmDetailedInfo.txtnav31.disabled=false;
		document.frmDetailedInfo.txtnav32.disabled=false;
		document.frmDetailedInfo.txtnav33.disabled=false;
		document.frmDetailedInfo.txtnav34.disabled=false;
		document.frmDetailedInfo.txtnav35.disabled=false;
	}
	else
	{
		document.frmDetailedInfo.txtnav3.disabled=true;
		document.frmDetailedInfo.txtnav31.disabled=true;
		document.frmDetailedInfo.txtnav32.disabled=true;
		document.frmDetailedInfo.txtnav33.disabled=true;
		document.frmDetailedInfo.txtnav34.disabled=true;
		document.frmDetailedInfo.txtnav35.disabled=true;
	}
}

function checkNavigation4(nvopt)
{
	if(nvopt==true)
	{
		document.frmDetailedInfo.txtnav4.disabled=false;
		document.frmDetailedInfo.txtnav41.disabled=false;
		document.frmDetailedInfo.txtnav42.disabled=false;
		document.frmDetailedInfo.txtnav43.disabled=false;
		document.frmDetailedInfo.txtnav44.disabled=false;
		document.frmDetailedInfo.txtnav45.disabled=false;
	}
	else
	{
		document.frmDetailedInfo.txtnav4.disabled=true;
		document.frmDetailedInfo.txtnav41.disabled=true;
		document.frmDetailedInfo.txtnav42.disabled=true;
		document.frmDetailedInfo.txtnav43.disabled=true;
		document.frmDetailedInfo.txtnav44.disabled=true;
		document.frmDetailedInfo.txtnav45.disabled=true;
	}
}

function checkNavigation5(nvopt)
{
	if(nvopt==true)
	{
		document.frmDetailedInfo.txtnav5.disabled=false;
		document.frmDetailedInfo.txtnav51.disabled=false;
		document.frmDetailedInfo.txtnav52.disabled=false;
		document.frmDetailedInfo.txtnav53.disabled=false;
		document.frmDetailedInfo.txtnav54.disabled=false;
		document.frmDetailedInfo.txtnav55.disabled=false;
	}
	else
	{
		document.frmDetailedInfo.txtnav5.disabled=true;
		document.frmDetailedInfo.txtnav51.disabled=true;
		document.frmDetailedInfo.txtnav52.disabled=true;
		document.frmDetailedInfo.txtnav53.disabled=true;
		document.frmDetailedInfo.txtnav54.disabled=true;
		document.frmDetailedInfo.txtnav55.disabled=true;
	}
}

function checkform3(mf)
{
	var cntCorrection = mf.needcorrection.length;
	var correctionStatus = 0;
	var gettxtarcnt = mf.customernotes.value;

	if(mf.muploadfile1.value=="" && mf.muploadfile2.value=="" && mf.muploadfile3.value=="" && mf.muploadfile4.value=="" && mf.muploadfile5.value=="")
	{
		alert("Bitte laden sie mindestens eine Inhaltsdatei für die Hauptnavigation hoch.");
		mf.muploadfile1.focus();
		return false;
	}
	if(mf.suploadfile1.value=="" && mf.suploadfile2.value=="" && mf.suploadfile3.value=="" && mf.suploadfile4.value=="" && mf.suploadfile5.value=="")
	{
		alert("Bitte laden sie mindestens eine Inhaltsdatei für die Unternavigation hoch.");
		mf.suploadfile1.focus();
		return false;
	}

	if(gettxtarcnt.length>500)
	{
		alert("Unser Textfeld ist auf 500 Zeichen beschränkt. Bitte kürzen sie Ihre Mitteilung.");
		mf.customernotes.focus();
		return false;
	}

	for(i=0;i<cntCorrection;i++)
	{
		if(mf.needcorrection[i].checked)
		{
			correctionStatus = 1;
		}
	}
	if(correctionStatus==0)
	{
		alert("Bitte wählen sie ob sie den Lektorat Service in Anspruch nehmen möchten oder nicht.");
		return false;
	}
	return true;
}

function checkform4(mf)
{
	if(mf.existuser[0].checked==true)
	{
		if(trim(mf.eemail.value)=="")
		{ 
			alert("Bitte ergänzen sie ihre e-mail Adresse.");
			mf.eemail.focus();
			return false;
		}
		if(checkEmail1(mf)==false)
		{
			mf.eemail.focus();
			return false; 
		}
		if(mf.userpass.value=="")
		{
			alert("Bitte ergänzen sie ihr Passwort.");
			mf.userpass.focus();
			return false;
		}
	}
	else
	{
		if(mf.firstname.value=="")
		{
			alert("Bitte ergänzen sie ihren Vornamen.");
			mf.firstname.focus();
			return false;
		}
		if(mf.lastname.value=="")
		{
			alert("Bitte ergänzen sie ihren Nachnamen.");
			mf.lastname.focus();
			return false;
		}
		if(mf.address.value=="")
		{
			alert("Bitte ergänzen sie ihre Anschrift.");
			mf.address.focus();
			return false;
		}
		if(mf.city.value=="")
		{
			alert("Bitte ergänzen sie ihren Wohnort");
			mf.city.focus();
			return false;
		}
		if(mf.zipcode.value=="")
		{
			alert("Bitte ergänzen sie die Postleitzahl");
			mf.zipcode.focus();
			return false;
		}
		if(trim(mf.email.value)=="")
		{ 
			alert("Bitte ergänzen sie ihre e-mail Adresse.");
			mf.email.focus();
			return false;
		}
		if(checkEmail(mf)==false)
		{
			mf.email.focus();
			return false; 
		}
		if(mf.phone.value=="")
		{
			alert("Bitte ergänzen sie ihre Telefonnummer.");
			mf.phone.focus();
			return false;
		}
		var valid= "+-()1234567890 ";
		if (mf.phone.value !="")
		{
			var string = mf.phone.value
			var length = string.length;
			for(var i=0;i<=length;i++)
			{
				var substring = string.substr(i,1);
				if(valid.indexOf(substring)== -1)
				  {
					alert("Ungültige Telefonnummer.");
					mf.phone.select()
					return(false)
				  }
			}
		}
	}
	var cntPay = mf.paymethod.length;
	var payStatus = 0;

	for(i=0;i<cntPay;i++)
	{
		if(mf.paymethod[i].checked)
		{
			payStatus = 1;
		}
	}
	if(payStatus==0)
	{
		alert("Bitte wählen sie eine Zahlungsmethode.");
		return false;
	}
	return true;
}

function checkform5(mf)
{
	if(mf.terms.checked==false)
	{
		alert("Bitte akzeptieren Sie unsere allgemeinen Geschäftsbedingungen um mit der\nBestellung fort zu fahren.");
		mf.terms.focus();
		return false;
	}
	return true;
}

function updcheckform1(mf)
{
	var cntLogoDesign = mf.needlogodesign.length;
	var logoStatus = 0;

	if(mf.domainname.value=="")
	{
		alert("Bitte ergänzen sie einen Website Name.");
		mf.domainname.focus();
		return false;
	}
	for(i=0;i<cntLogoDesign;i++)
	{
		if(mf.needlogodesign[i].checked)
		{
			logoStatus = 1;
		}
	}
	if(logoStatus==0)
	{
		alert("Bitte wählen sie ob sie ein Logo benötigen oder nicht.");
		return false;
	}
	return true;
}

function checkUpdLogoPrices(ndlogoprc)
{
	if(ndlogoprc==0)
	{
		if(document.frmUpdGeneralIdea.logoopt.value==1)
		{
			document.frmUpdGeneralIdea.totalamount.value = parseFloat(document.frmUpdGeneralIdea.totalamount.value) - parseFloat(document.frmUpdGeneralIdea.logodesignprice.value);
			document.frmUpdGeneralIdea.logoopt.value = 0;
		}
	}
	else if(ndlogoprc==1)
	{
		if(document.frmUpdGeneralIdea.logoopt.value==0)
		{
			document.frmUpdGeneralIdea.totalamount.value = parseFloat(document.frmUpdGeneralIdea.totalamount.value) + parseFloat(document.frmUpdGeneralIdea.logodesignprice.value);
			document.frmUpdGeneralIdea.logoopt.value = 1;
		}
	}
}

function updcheckform2(mf)
{
	var cntFlashIntro = mf.needflashintro.length;
	var flashStatus = 0;

	if(mf.bkgrndcolor1.value=="" && mf.bkgrndcolor2.value=="" && mf.bkgrndcolor3.value=="")
	{
		alert("Bitte wählen sie mindestens eine Hintergrundfarbe die ihre Website haben soll.");
		mf.bkgrndcolor1.focus();
		return false;
	}
	if(mf.frgrndcolor1.value=="" && mf.frgrndcolor2.value=="" && mf.frgrndcolor3.value=="")
	{
		alert("Bitte wählen sie mindestens eine Farbe für die Schriftart welche ihre Website haben soll.");
		mf.frgrndcolor1.focus();
		return false;
	}
	for(i=0;i<cntFlashIntro;i++)
	{
		if(mf.needflashintro[i].checked)
		{
			flashStatus = 1;
		}
	}
	if(flashStatus==0)
	{
		alert("Bitte wählen sie ob sie ein flash intro wünschen oder nicht.");
		return false;
	}
	return true;
}

function updcheckform3(mf)
{
	var cntCorrection = mf.needcorrection.length;
	var correctionStatus = 0;
	var gettxtarcnt = mf.customernotes.value;

//	if(mf.muploadfile1.value=="" && mf.muploadfile2.value=="" && mf.muploadfile3.value=="" && mf.muploadfile4.value=="" && mf.muploadfile5.value=="")
//	{
//		alert("Bitte laden sie mindestens eine Inhaltsdatei für die Hauptnavigation hoch.");
//		mf.muploadfile1.focus();
//		return false;
//	}
//	if(mf.suploadfile1.value=="" && mf.suploadfile2.value=="" && mf.suploadfile3.value=="" && mf.suploadfile4.value=="" && mf.suploadfile5.value=="")
//	{
//		alert("Bitte laden sie mindestens eine Inhaltsdatei für die Unternavigation hoch.");
//		mf.suploadfile1.focus();
//		return false;
//	}

	if(gettxtarcnt.length>500)
	{
		alert("Unser Textfeld ist auf 500 Zeichen beschränkt. Bitte kürzen sie Ihre Mitteilung.");
		mf.customernotes.focus();
		return false;
	}

	for(i=0;i<cntCorrection;i++)
	{
		if(mf.needcorrection[i].checked)
		{
			correctionStatus = 1;
		}
	}
	if(correctionStatus==0)
	{
		alert("Bitte wählen sie ob sie den Lektorat Service in Anspruch nehmen möchten oder nicht.");
		return false;
	}
	return true;
}

function updcheckform4(mf)
{
	if(mf.firstname.value=="")
	{
		alert("Bitte ergänzen sie ihren Vornamen.");
		mf.firstname.focus();
		return false;
	}
	if(mf.lastname.value=="")
	{
		alert("Bitte ergänzen sie ihren Nachnamen.");
		mf.lastname.focus();
		return false;
	}
	if(mf.address.value=="")
	{
		alert("Bitte ergänzen sie ihre Anschrift.");
		mf.address.focus();
		return false;
	}
	if(mf.city.value=="")
	{
		alert("Bitte ergänzen sie ihren Wohnort");
		mf.city.focus();
		return false;
	}
	if(mf.zipcode.value=="")
	{
		alert("Bitte ergänzen sie die Postleitzahl");
		mf.zipcode.focus();
		return false;
	}
	if(trim(mf.email.value)=="")
	{ 
		alert("Bitte ergänzen sie ihre e-mail Adresse.");
		mf.email.focus();
		return false;
	}
	if(checkEmail(mf)==false)
	{
		mf.email.focus();
		return false; 
	}
	if(mf.phone.value=="")
	{
		alert("Bitte ergänzen sie ihre Telefonnummer.");
		mf.phone.focus();
		return false;
	}
	var valid= "+-()1234567890 ";
	if (mf.phone.value !="")
	{
		var string = mf.phone.value
		var length = string.length;
		for(var i=0;i<=length;i++)
		{
			var substring = string.substr(i,1);
			if(valid.indexOf(substring)== -1)
			  {
				alert("Ungültige Telefonnummer.");
				mf.phone.select()
				return(false)
			  }
		}
	}
	var cntPay = mf.paymethod.length;
	var payStatus = 0;

	for(i=0;i<cntPay;i++)
	{
		if(mf.paymethod[i].checked)
		{
			payStatus = 1;
		}
	}
	if(payStatus==0)
	{
		alert("Bitte wählen sie eine Zahlungsmethode.");
		return false;
	}
	return true;
}

function checkExistUserOpt(eusts)
{
	if(eusts==1)
	{
		document.frmCustomerDetails.eemail.disabled=false;
		document.frmCustomerDetails.userpass.disabled=false;

		document.frmCustomerDetails.firstname.disabled=true;
		document.frmCustomerDetails.lastname.disabled=true;
		document.frmCustomerDetails.address.disabled=true;
		document.frmCustomerDetails.city.disabled=true;
		document.frmCustomerDetails.zipcode.disabled=true;
		document.frmCustomerDetails.phone.disabled=true;
		document.frmCustomerDetails.email.disabled=true;
		document.frmCustomerDetails.contactmethod[0].disabled=true;
		document.frmCustomerDetails.contactmethod[1].disabled=true;
		document.frmCustomerDetails.compname.disabled=true;
	}
	else if(eusts==2)
	{
		document.frmCustomerDetails.eemail.disabled=true;
		document.frmCustomerDetails.userpass.disabled=true;

		document.frmCustomerDetails.firstname.disabled=false;
		document.frmCustomerDetails.lastname.disabled=false;
		document.frmCustomerDetails.address.disabled=false;
		document.frmCustomerDetails.city.disabled=false;
		document.frmCustomerDetails.zipcode.disabled=false;
		document.frmCustomerDetails.email.disabled=false;
		document.frmCustomerDetails.phone.disabled=false;
		document.frmCustomerDetails.contactmethod[0].disabled=false;
		document.frmCustomerDetails.contactmethod[1].disabled=false;
		document.frmCustomerDetails.compname.disabled=false;
	}
}

function checkLogin(mf)
{
	if(mf.userid.value=="")
	{
		alert("Bitte benützen sie ihre e-mail Adresse als Benutzername.");
		mf.userid.focus();
		return false;
	}
	if(mf.userpass.value=="")
	{
		alert("Bitte ergänzen sie ihr Passwort.");
		mf.userpass.focus();
		return false;
	}
	return true;
}

function checkTechInfo(mf)
{
	if(mf.firstname.value=="")
	{
		alert("Bitte ergänzen sie ihren Vornamen.");
		mf.firstname.focus();
		return false;
	}
	if(mf.lastname.value=="")
	{
		alert("Bitte ergänzen sie ihren Nachnamen.");
		mf.lastname.focus();
		return false;
	}
	if(checkEmail(mf)==false)
	{
		mf.email.focus();
		return false; 
	}
	if(mf.phone.value=="")
	{
		alert("Bitte ergänzen sie ihre Telefonnummer.");
		mf.phone.focus();
		return false;
	}
	var valid= "+-()1234567890 ";
	if (mf.phone.value !="")
	{
		var string = mf.phone.value
		var length = string.length;
		for(var i=0;i<=length;i++)
		{
			var substring = string.substr(i,1);
			if(valid.indexOf(substring)== -1)
			  {
				alert("Ungültige Telefonnummer.");
				mf.phone.select()
				return(false)
			  }
		}
	}
	if(mf.subject.value=="")
	{
		alert("Bitte ergänzen sie ihre Mitteilung mit einem Betreff.");
		mf.subject.focus();
		return false;
	}
	if(mf.comments.value=="")
	{
		alert("Bitte beschreiben sie ihr technisches Anliegen.");
		mf.comments.focus();
		return false;
	}
	return true;
}

function openForgotPwd()
{
	mywindow = window.open ("forgotpass.php", "mywindow","width=400, height=250");
} 

	function openColorWindow(idx)
	{
		var targetURL = "color_picker.php?id="+idx;
		myColorWindow = window.open (targetURL, "myColorWindow","width=500, height=320, status=yes");
	} 

	function checkDomainAvailability(flname)
	{
		if(document.frmGeneralIdea.domainname.value=="")
		{
			alert("Bitte geben Sie eine Internet Adresse ein und drücken Sie anschliessend den \nKnopf Verfügbarkeit.");
			document.frmGeneralIdea.domainname.focus();
			return;
		}
		var targetURL;
		targetURL = flname+"?dom="+document.frmGeneralIdea.domainname.value+"&dxt="+document.frmGeneralIdea.domainext.value;
		myDomainWin = window.open(targetURL, "myDomainWin","width=470, height=350, status=yes, scrollbars=yes");
	}

	function checkUpdDomainAvailability(flname)
	{
		if(document.frmUpdGeneralIdea.domainname.value=="")
		{
			alert("Bitte geben Sie eine Internet Adresse ein und drücken Sie anschliessend den \nKnopf Verfügbarkeit.");
			document.frmUpdGeneralIdea.domainname.focus();
			return;
		}
		var targetURL;
		targetURL = flname+"?dom="+document.frmUpdGeneralIdea.domainname.value+"&dxt="+document.frmUpdGeneralIdea.domainext.value;
		myDomainWin = window.open(targetURL, "myDomainWin","width=470, height=350, status=yes, scrollbars=yes");
	}

	function checkColorBox()
	{
		if(document.frmColorPicker.currSelColor.value=="")
		{
			alert("Bitte eine Farbe wählen.");
		}
		else
		{
			window.close();
		}
	}

	function setParentColor(clctrl, colorid, colorvalue, fntcolor)
	{
		if(clctrl==11)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor1.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor1.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.bkgrndcolor1.style.color = fntcolor;
		}
		else if(clctrl==12)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor2.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor2.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.bkgrndcolor2.style.color = fntcolor;
		}
		else if(clctrl==13)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor3.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor3.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.bkgrndcolor3.style.color = fntcolor;
		}
		else if(clctrl==21)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor1.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor1.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.frgrndcolor1.style.color = fntcolor;
		}
		else if(clctrl==22)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor2.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor2.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.frgrndcolor2.style.color = fntcolor;
		}
		else if(clctrl==23)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor3.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor3.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.frgrndcolor3.style.color = fntcolor;
		}
	}

	function checkUserPwd(mf)
	{
		if(mf.firstname.value=="")
		{
			alert("Bitte ergänzen sie ihren Vornamen.");
			mf.firstname.focus();
			return false;
		}
		if(mf.lastname.value=="")
		{
			alert("Bitte ergänzen sie ihren Nachnamen.");
			mf.lastname.focus();
			return false;
		}
		if(trim(mf.email.value)=="")
		{ 
			alert("Bitte ergänzen sie ihre e-mail Adresse.");
			mf.email.focus();
			return false;
		}
		if(checkEmail(mf)==false)
		{
			mf.email.focus();
			return false; 
		}
		return true;
	}

	function openFlashIntroDetails()
	{
		mywindow = window.open ("flash_intro.php", "mywindow1","width=290, height=145");
	} 

	function openDetails(url, wdth, hght)
	{
		mywindow2 = window.open (url, "mywindow2","width="+wdth+", height="+hght+", scrollbars=yes");
	} 

	function checkUpdDomainPrice(domname, domext, domprice)
	{
		if((domname!=document.frmUpdGeneralIdea.olddomainname.value) || (domext!=document.frmUpdGeneralIdea.olddomainext.value))
		{
			if(document.frmUpdGeneralIdea.chgdomainstatus.value==0)
			{
				document.frmUpdGeneralIdea.totalamount.value = parseFloat(document.frmUpdGeneralIdea.totalamount.value) + parseFloat(domprice);
				document.frmUpdGeneralIdea.chgdomainstatus.value=1;
			}
		}
		else if((domname==document.frmUpdGeneralIdea.olddomainname.value) && (domext==document.frmUpdGeneralIdea.olddomainext.value))
		{
			if(document.frmUpdGeneralIdea.chgdomainstatus.value==1)
			{
				document.frmUpdGeneralIdea.totalamount.value = parseFloat(document.frmUpdGeneralIdea.totalamount.value) - parseFloat(domprice);
				document.frmUpdGeneralIdea.chgdomainstatus.value=0;
			}
		}
	}

	function checkBkFrColorPrices()
	{
		if((window.opener.document.frmDetailedInfo.bkgrndcolor1.value!=window.opener.document.frmDetailedInfo.oldbkgrndcolor1.value) || (window.opener.document.frmDetailedInfo.bkgrndcolor2.value!=window.opener.document.frmDetailedInfo.oldbkgrndcolor2.value) || (window.opener.document.frmDetailedInfo.bkgrndcolor3.value!=window.opener.document.frmDetailedInfo.oldbkgrndcolor3.value) || (window.opener.document.frmDetailedInfo.frgrndcolor1.value!=window.opener.document.frmDetailedInfo.oldfrgrndcolor1.value) || (window.opener.document.frmDetailedInfo.frgrndcolor2.value!=window.opener.document.frmDetailedInfo.oldfrgrndcolor2.value) || (window.opener.document.frmDetailedInfo.frgrndcolor3.value!=window.opener.document.frmDetailedInfo.oldfrgrndcolor3.value))
		{
			if(window.opener.document.frmDetailedInfo.colorstatus.value==0)
			{
				window.opener.document.frmDetailedInfo.totalamount.value = parseFloat(window.opener.document.frmDetailedInfo.totalamount.value) + parseFloat(window.opener.document.frmDetailedInfo.chgcolorprice.value);
				window.opener.document.frmDetailedInfo.exactcost.value = parseFloat(window.opener.document.frmDetailedInfo.exactcost.value) + parseFloat(window.opener.document.frmDetailedInfo.chgcolorprice.value);
				window.opener.document.frmDetailedInfo.colorstatus.value=1;
			}
		}
		else if((window.opener.document.frmDetailedInfo.bkgrndcolor1.value==window.opener.document.frmDetailedInfo.oldbkgrndcolor1.value) && (window.opener.document.frmDetailedInfo.bkgrndcolor2.value==window.opener.document.frmDetailedInfo.oldbkgrndcolor2.value) && (window.opener.document.frmDetailedInfo.bkgrndcolor3.value==window.opener.document.frmDetailedInfo.oldbkgrndcolor3.value) && (window.opener.document.frmDetailedInfo.frgrndcolor1.value==window.opener.document.frmDetailedInfo.oldfrgrndcolor1.value) && (window.opener.document.frmDetailedInfo.frgrndcolor2.value==window.opener.document.frmDetailedInfo.oldfrgrndcolor2.value) && (window.opener.document.frmDetailedInfo.frgrndcolor3.value==window.opener.document.frmDetailedInfo.oldfrgrndcolor3.value))
		{
			if(window.opener.document.frmDetailedInfo.colorstatus.value==1)
			{
				window.opener.document.frmDetailedInfo.totalamount.value = parseFloat(window.opener.document.frmDetailedInfo.totalamount.value) - parseFloat(window.opener.document.frmDetailedInfo.chgcolorprice.value);
				window.opener.document.frmDetailedInfo.exactcost.value = parseFloat(window.opener.document.frmDetailedInfo.exactcost.value) - parseFloat(window.opener.document.frmDetailedInfo.chgcolorprice.value);
				window.opener.document.frmDetailedInfo.colorstatus.value=0;
			}
		}
	}

	function checkUpdNavigation1(nvopt)
	{
		if(nvopt==true)
		{
			document.frmDetailedInfo.txtnav1.disabled=false;
			document.frmDetailedInfo.txtnav11.disabled=false;
			document.frmDetailedInfo.txtnav12.disabled=false;
			document.frmDetailedInfo.txtnav13.disabled=false;
			document.frmDetailedInfo.txtnav14.disabled=false;
			document.frmDetailedInfo.txtnav15.disabled=false;
		}
		else
		{
			document.frmDetailedInfo.txtnav1.disabled=true;
			document.frmDetailedInfo.txtnav11.disabled=true;
			document.frmDetailedInfo.txtnav12.disabled=true;
			document.frmDetailedInfo.txtnav13.disabled=true;
			document.frmDetailedInfo.txtnav14.disabled=true;
			document.frmDetailedInfo.txtnav15.disabled=true;
		}
	}

	function checkUpdNavigation2(nvopt)
	{
		if(nvopt==true)
		{
			document.frmDetailedInfo.txtnav2.disabled=false;
			document.frmDetailedInfo.txtnav21.disabled=false;
			document.frmDetailedInfo.txtnav22.disabled=false;
			document.frmDetailedInfo.txtnav23.disabled=false;
			document.frmDetailedInfo.txtnav24.disabled=false;
			document.frmDetailedInfo.txtnav25.disabled=false;
		}
		else
		{
			document.frmDetailedInfo.txtnav2.disabled=true;
			document.frmDetailedInfo.txtnav21.disabled=true;
			document.frmDetailedInfo.txtnav22.disabled=true;
			document.frmDetailedInfo.txtnav23.disabled=true;
			document.frmDetailedInfo.txtnav24.disabled=true;
			document.frmDetailedInfo.txtnav25.disabled=true;
		}
	}

	function checkUpdNavigation3(nvopt)
	{
		if(nvopt==true)
		{
			document.frmDetailedInfo.txtnav3.disabled=false;
			document.frmDetailedInfo.txtnav31.disabled=false;
			document.frmDetailedInfo.txtnav32.disabled=false;
			document.frmDetailedInfo.txtnav33.disabled=false;
			document.frmDetailedInfo.txtnav34.disabled=false;
			document.frmDetailedInfo.txtnav35.disabled=false;
		}
		else
		{
			document.frmDetailedInfo.txtnav3.disabled=true;
			document.frmDetailedInfo.txtnav31.disabled=true;
			document.frmDetailedInfo.txtnav32.disabled=true;
			document.frmDetailedInfo.txtnav33.disabled=true;
			document.frmDetailedInfo.txtnav34.disabled=true;
			document.frmDetailedInfo.txtnav35.disabled=true;
		}
	}

	function checkUpdNavigation4(nvopt)
	{
		if(nvopt==true)
		{
			document.frmDetailedInfo.txtnav4.disabled=false;
			document.frmDetailedInfo.txtnav41.disabled=false;
			document.frmDetailedInfo.txtnav42.disabled=false;
			document.frmDetailedInfo.txtnav43.disabled=false;
			document.frmDetailedInfo.txtnav44.disabled=false;
			document.frmDetailedInfo.txtnav45.disabled=false;
		}
		else
		{
			document.frmDetailedInfo.txtnav4.disabled=true;
			document.frmDetailedInfo.txtnav41.disabled=true;
			document.frmDetailedInfo.txtnav42.disabled=true;
			document.frmDetailedInfo.txtnav43.disabled=true;
			document.frmDetailedInfo.txtnav44.disabled=true;
			document.frmDetailedInfo.txtnav45.disabled=true;
		}
	}

	function checkUpdNavigation5(nvopt)
	{
		if(nvopt==true)
		{
			document.frmDetailedInfo.txtnav5.disabled=false;
			document.frmDetailedInfo.txtnav51.disabled=false;
			document.frmDetailedInfo.txtnav52.disabled=false;
			document.frmDetailedInfo.txtnav53.disabled=false;
			document.frmDetailedInfo.txtnav54.disabled=false;
			document.frmDetailedInfo.txtnav55.disabled=false;
		}
		else
		{
			document.frmDetailedInfo.txtnav5.disabled=true;
			document.frmDetailedInfo.txtnav51.disabled=true;
			document.frmDetailedInfo.txtnav52.disabled=true;
			document.frmDetailedInfo.txtnav53.disabled=true;
			document.frmDetailedInfo.txtnav54.disabled=true;
			document.frmDetailedInfo.txtnav55.disabled=true;
		}
	}

	function openUpdColorWindow(idx)
	{
		var targetURL = "upd_color_picker.php?id="+idx;
		myColorWindow = window.open (targetURL, "myColorWindow","width=500, height=320, status=yes");
	} 

	function checkDomainAvailability(flname)
	{
		if(document.frmGeneralIdea.domainname.value=="")
		{
			alert("Bitte geben Sie eine Internet Adresse ein und drücken Sie anschliessend den \nKnopf Verfügbarkeit.");
			document.frmGeneralIdea.domainname.focus();
			return;
		}
		var targetURL;
		targetURL = flname+"?dom="+document.frmGeneralIdea.domainname.value+"&dxt="+document.frmGeneralIdea.domainext.value;
		myDomainWin = window.open(targetURL, "myDomainWin","width=470, height=350, status=yes, scrollbars=yes");
	}

	function setUpdParentColor(clctrl, colorid, colorvalue, fntcolor)
	{
		var tarStatus;
		tarStatus = 0;
		if(clctrl==11)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor1.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor1.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.bkgrndcolor1.style.color = fntcolor;
			tarStatus = 1;
		}
		else if(clctrl==12)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor2.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor2.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.bkgrndcolor2.style.color = fntcolor;
			tarStatus = 1;
		}
		else if(clctrl==13)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor3.value = colorid;
			window.opener.document.frmDetailedInfo.bkgrndcolor3.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.bkgrndcolor3.style.color = fntcolor;
			tarStatus = 1;
		}
		else if(clctrl==21)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor1.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor1.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.frgrndcolor1.style.color = fntcolor;
			tarStatus = 1;
		}
		else if(clctrl==22)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor2.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor2.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.frgrndcolor2.style.color = fntcolor;
			tarStatus = 1;
		}
		else if(clctrl==23)
		{
			document.frmColorPicker.currSelColor.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor3.value = colorid;
			window.opener.document.frmDetailedInfo.frgrndcolor3.style.backgroundColor = colorvalue;
			window.opener.document.frmDetailedInfo.frgrndcolor3.style.color = fntcolor;
			tarStatus = 1;
		}
		if(tarStatus>0)
		{
			checkBkFrColorPrices();
		}
	}
	function checkFileUploadPrice()
	{
		if(document.frmDataUpload.muploadfile1.value!="" || document.frmDataUpload.muploadfile2.value!="" || document.frmDataUpload.muploadfile3.value!="" || document.frmDataUpload.muploadfile4.value!="" || document.frmDataUpload.suploadfile1.value!="" || document.frmDataUpload.suploadfile2.value!="" || document.frmDataUpload.suploadfile3.value!="" || document.frmDataUpload.suploadfile4.value!="")
		{
			if(document.frmDataUpload.chguploadstatus.value==0)
			{
				document.frmDataUpload.totalamount.value = parseFloat(document.frmDataUpload.totalamount.value) + parseFloat(document.frmDataUpload.updatauploadprice.value);
				document.frmDataUpload.chguploadstatus.value=1;
			}
		}
		else if(document.frmDataUpload.muploadfile1.value=="" && document.frmDataUpload.muploadfile2.value=="" && document.frmDataUpload.muploadfile3.value=="" && document.frmDataUpload.muploadfile4.value=="" && document.frmDataUpload.suploadfile1.value=="" && document.frmDataUpload.suploadfile2.value=="" && document.frmDataUpload.suploadfile3.value=="" && document.frmDataUpload.suploadfile4.value=="")
		{
			if(document.frmDataUpload.chguploadstatus.value==1)
			{
				document.frmDataUpload.totalamount.value = parseFloat(document.frmDataUpload.totalamount.value) - parseFloat(document.frmDataUpload.updatauploadprice.value);
				document.frmDataUpload.chguploadstatus.value=0;
			}
		}
	}

	function checkNewsLetter(mf)
	{
		if(trim(mf.email.value)=="")
		{ 
			alert("Bitte ergänzen sie ihre e-mail Adresse.");
			mf.email.focus();
			return false;
		}
		if(checkEmail(mf)==false)
		{
			mf.email.focus();
			return false; 
		}
		return true;
	}

	function setTestomonialValue(btnval, totval)
	{
		var tstr;
		var tval;
		tval = document.getElementById("testimonial_id").value;
		if(btnval==1)
		{
			if(tval==1)
			{
				return;
			}
			else if(tval>1)
			{
				tval--;
				document.getElementById("testimonial_id").value = tval;
			}
		}
		else if(btnval==2)
		{
			if(tval==totval)
			{
				return;
			}
			else if(tval>0 && tval<totval)
			{
				tval++;
				document.getElementById("testimonial_id").value = tval;
			}
		}
		for(i=1;i<=totval;i++)
		{
			if(i==tval)
			{
				tstr = "clntstmnl"+i;
				document.getElementById(tstr).style.display="block";
			}
			else
			{
				tstr = "clntstmnl"+i;
				document.getElementById(tstr).style.display="none";
			}
		}
	}

	function checkWebCheck(mf)
	{
		if(mf.compname.value=="")
		{
			alert("Bitte ergänzen sie ihren Firma");
			mf.compname.focus();
			return false;
		}
		if(trim(mf.email.value)=="")
		{ 
			alert("Bitte ergänzen sie ihre e-mail Adresse.");
			mf.email.focus();
			return false;
		}
		if(checkEmail(mf)==false)
		{
			mf.email.focus();
			return false; 
		}
		if(mf.weburl.value=="")
		{
			alert("Bitte ergänzen sie ihren Webadresse");
			mf.weburl.focus();
			return false;
		}
		return true;
	}
//-->
