<!-- Begin
	var parpopup = 0;
	function ParPopUp( argument ) {
		if ( parpopup != 0 ) {
			parpopup.close();
		}       
		//
		// get rif of hashes (caused by references within a page)
		//
		var url;
		url = document.URL.replace(/#.*/,"");

		var RealProg = "/main/programs/public/doParPopUp.pl" + "?caller=" + url + "&" + argument;
		ppwin = window.open(
			RealProg,'550x350',
			'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,\
			width=550,height=350,left=80,top=80'
		);      
	}    
	var parpopup = 0;
	function ParPopUp600( argument ) {
		if ( parpopup != 0 ) {
			parpopup.close();
		}       
		//
		// get rif of hashes (caused by references within a page)
		//
		var url;
		url = document.URL.replace(/#.*/,"");

		var RealProg = "/main/programs/public/doParPopUp600.pl" + "?caller=" + url + "&" + argument;
		ppwin = window.open(
			RealProg,'640x600',
			'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,\
			width=640,height=600,left=80,top=80'
		);      
	}    
	var parpopup = 0;
	function ParPopUp700( argument ) {
		if ( parpopup != 0 ) {
			parpopup.close();
		}       
		//
		// get rif of hashes (caused by references within a page)
		//
		var url;
		url = document.URL.replace(/#.*/,"");

		var RealProg = "/main/programs/public/doParPopUp700.pl" + "?caller=" + url + "&" + argument;
		ppwin = window.open(
			RealProg,'700x700',
			'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,\
			width=700,height=700,left=80,top=80'
		);      
	}    
	function helpwin( HelpFile ) {
		var RealHelp = "/ql3/programs/authorized/questionnaire/help.pl?file=" + HelpFile;
		window.open(
			RealHelp,'550x350',
			'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,\
			width=550,height=350,left=80,top=80'
		);      
	}
	function helpwinV02( HelpFile ) {
		var RealHelp = "/ql3/programs/authorized/questionnaire/helpV02.pl?file=" + HelpFile;
		window.open(
			RealHelp,'550x350',
			'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,\
			width=550,height=350,left=80,top=80'
		);      
	}
	function ShowImage( argument, another ) {
		if ( parpopup != 0 ) {
			parpopup.close();
		}       
		var RealProg = "/ql3/programs/authorized/preferences/images/image3.pl" + "?match=" + argument + "&image=" + another;
		ppwin = window.open(
			RealProg,'550x600',
			'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,\
			width=550,height=600,left=80,top=80'
		);      
	}    
	function tell_a_friend_season() {
		open (
			"/main/programs/public/tellafriend_season/?referer=" + document.URL, 
			"sendwindow","width=640,height=550,left=80,top=80"
		);
	}
        function send_article() {
                open (
                        "/sendarticle/index.pl?referer=" + document.URL, 
                        "sendwindow","width=640,height=550,left=80,top=80"
                );
        }
        function closeWin( argument ){
                opener.location.href= argument;
                self.close();   
        }
        function switchWin( argument ){
                opener.location.href= argument;
        }
        function changeWin( argument ){
                opener.location.href= argument;
        }
        function openVisitors() {
                window.open("/ql3/programs/authorized/preferences/visitors/show.pl", "visitors",
                "scrollbars=yes,resizable=yes,menubar=no,width=640,height=580,left=10,top=10");
        }
	function chkAGBForm() {
		if(document.Formular.agbs.checked == false)  {
			alert("Bitte bestätigen Sie unsere Allgemeinen Geschäftsbedingungen");
			return false;
		}
	}
	function chkAllBoxes() {
		for ( i=0, n=document.matching.includedCountries.length; i < n; i++ ) {
			document.matching.includedCountries[i].checked = true;
		}
	}
	function unchkAllBoxes() {
		for ( i=0, n=document.matching.includedCountries.length; i < n; i++ ) {
			document.matching.includedCountries[i].checked = false;
		}
	}
	function chkCountryForm() {
		var chk = 0;
		if ( document.matching.allCountries[1].checked == true ) {
			for ( i=0, n=document.matching.includedCountries.length; i < n; i++ ) {
				if ( document.matching.includedCountries[i].checked == true ) {
					chk++;
				}
			}
			if ( chk == 0 ) {
				alert("Bitte wählen Sie mindestens eine der Länderoptionen aus.");
				return false;
			}
		}
	}
	function chkallCountries() {
		if ( document.matching.allCountries[1].checked == false ) {
			document.matching.allCountries[1].checked = true;
		}
	}
	function chkAllBoxesAT() {
		for ( i=0, n=document.matching.includedStates_AT.length; i < n; i++ ) {
			document.matching.includedStates_AT[i].checked = true;
		}
	}
	function unchkAllBoxesAT() {
		for ( i=0, n=document.matching.includedStates_AT.length; i < n; i++ ) {
			document.matching.includedStates_AT[i].checked = false;
		}
	}
	function chkAllBoxesCH() {
		for ( i=0, n=document.matching.includedStates_CH.length; i < n; i++ ) {
			document.matching.includedStates_CH[i].checked = true;
		}
	}
	function unchkAllBoxesCH() {
		for ( i=0, n=document.matching.includedStates_CH.length; i < n; i++ ) {
			document.matching.includedStates_CH[i].checked = false;
		}
	}
	function chkAllBoxesDE() {
		for ( i=0, n=document.matching.includedStates_DE.length; i < n; i++ ) {
			document.matching.includedStates_DE[i].checked = true;
		}
	}
	function unchkAllBoxesDE() {
		for ( i=0, n=document.matching.includedStates_DE.length; i < n; i++ ) {
			document.matching.includedStates_DE[i].checked = false;
		}
	}
	function chkAllBoxesNL() {
		for ( i=0, n=document.matching.includedStates_NL.length; i < n; i++ ) {
			document.matching.includedStates_NL[i].checked = true;
		}
	}
	function unchkAllBoxesNL() {
		for ( i=0, n=document.matching.includedStates_NL.length; i < n; i++ ) {
			document.matching.includedStates_NL[i].checked = false;
		}
	}
	function chkAllBoxesIT() {
		for ( i=0, n=document.matching.includedStates_IT.length; i < n; i++ ) {
			document.matching.includedStates_IT[i].checked = true;
		}
	}
	function unchkAllBoxesIT() {
		for ( i=0, n=document.matching.includedStates_IT.length; i < n; i++ ) {
			document.matching.includedStates_IT[i].checked = false;
		}
	}
	function chkAllBoxesBE() {
		for ( i=0, n=document.matching.includedStates_BE.length; i < n; i++ ) {
			document.matching.includedStates_BE[i].checked = true;
		}
	}
	function unchkAllBoxesBE() {
		for ( i=0, n=document.matching.includedStates_BE.length; i < n; i++ ) {
			document.matching.includedStates_BE[i].checked = false;
		}
	}
	function chkAllBoxesES() {
		for ( i=0, n=document.matching.includedStates_ES.length; i < n; i++ ) {
			document.matching.includedStates_ES[i].checked = true;
		}
	}
	function unchkAllBoxesES() {
		for ( i=0, n=document.matching.includedStates_ES.length; i < n; i++ ) {
			document.matching.includedStates_ES[i].checked = false;
		}
	}
	function chkAllBoxesGB() {
		for ( i=0, n=document.matching.includedStates_GB.length; i < n; i++ ) {
			document.matching.includedStates_GB[i].checked = true;
		}
	}
	function unchkAllBoxesGB() {
		for ( i=0, n=document.matching.includedStates_GB.length; i < n; i++ ) {
			document.matching.includedStates_GB[i].checked = false;
		}
	}
	function chkAllBoxesFR() {
		for ( i=0, n=document.matching.includedStates_FR.length; i < n; i++ ) {
			document.matching.includedStates_FR[i].checked = true;
		}
	}
	function unchkAllBoxesFR() {
		for ( i=0, n=document.matching.includedStates_FR.length; i < n; i++ ) {
			document.matching.includedStates_FR[i].checked = false;
		}
	}
	function chkAllBoxesSE() {
		for ( i=0, n=document.matching.includedStates_SE.length; i < n; i++ ) {
			document.matching.includedStates_SE[i].checked = true;
		}
	}
	function unchkAllBoxesSE() {
		for ( i=0, n=document.matching.includedStates_SE.length; i < n; i++ ) {
			document.matching.includedStates_SE[i].checked = false;
		}
	}
	function chkAllBoxesDK() {
		for ( i=0, n=document.matching.includedStates_DK.length; i < n; i++ ) {
			document.matching.includedStates_DK[i].checked = true;
		}
	}
	function unchkAllBoxesDK() {
		for ( i=0, n=document.matching.includedStates_DK.length; i < n; i++ ) {
			document.matching.includedStates_DK[i].checked = false;
		}
	}
	function chkAllBoxesNO() {
		for ( i=0, n=document.matching.includedStates_NO.length; i < n; i++ ) {
			document.matching.includedStates_NO[i].checked = true;
		}
	}
	function unchkAllBoxesNO() {
		for ( i=0, n=document.matching.includedStates_NO.length; i < n; i++ ) {
			document.matching.includedStates_NO[i].checked = false;
		}
	}
	function chkAllBoxesIE() {
		for ( i=0, n=document.matching.includedStates_IE.length; i < n; i++ ) {
			document.matching.includedStates_IE[i].checked = true;
		}
	}
	function unchkAllBoxesIE() {
		for ( i=0, n=document.matching.includedStates_IE.length; i < n; i++ ) {
			document.matching.includedStates_IE[i].checked = false;
		}
	}
	function checkCharsByNUM( num, maxchars ) {
		var anumber = "aboutme." + num;
		var aremain = "remain." + num;

		with (document.getElementById( anumber ))
		{
			textlength = value.length;
			if (textlength > maxchars) value = value.slice(0, maxchars-1);
			document.getElementById( aremain ).innerHTML = textlength;
			if (maxchars - textlength < 0) {
				alert("Hinweis: Ihnen stehen hier " + maxchars + " Zeichen zur Verfuegung.");
				//alert (value.length);
				checkCharsByNUM( num, maxchars );
			}
		}
	}
        function checkAnnotationChars() {
                var maxchars = 80; 
                with (document.getElementById('annotation'))
                {
                        textlength = value.length;
                        if (textlength > maxchars) value = value.slice(0, maxchars-1);
                        document.getElementById("remain").innerHTML = textlength;
                        if (maxchars - textlength < 0) {
                                alert("Hinweis: Als Notiz stehen Ihnen 80 Zeichen zur Verfügung.");
                                //alert (value.length);
                                checkAnnotationChars();
                        }
                }
        }
	function chkChoosePaymentMethod() {
		var chk = 0;
		for ( i=0, n=document.payments.preferred_method.length; i < n; i++ ) {
			if ( document.payments.preferred_method[i].checked == true ) {
				chk++;
			}
		}
		if ( chk == 0 ) {
			alert("Bitte wählen Sie eine Zahlungsmethode.");
			return false;
		}
	}
	function chkProductForm() {
		var chk = 0;
		for ( i=0, n=document.products.product_id.length; i < n; i++ ) {
			if ( document.products.product_id[i].checked == true ) {
				chk++;
			}
		}
		if ( chk == 0 ) {
			alert("Bitte markieren Sie Ihren Bestellwunsch, indem sie das Feld links neben dem Produktnamen anklicken.");
			return false;
		}
	}
	function chkOneProductForm() {
		if ( document.products.product_id.checked == false ) {
			alert("Bitte markieren Sie Ihren Bestellwunsch, indem sie das Feld links neben dem Produktnamen anklicken.");
			return false;
		}
	}
	function chkKennenlernenForm() {
		if(document.Formular.product_id.checked == false)  {
			alert("Bitte klicken Sie das Kästchen zur Bestellung der Anzeige an");
			return false;
		}
	}
	function chkFormEssex() {
		var count = 0;
		for ( i=0, n=document.Formular.essex.length; i < n; i++ ) {
			if(document.Formular.essex[i].checked == true)  {
				count++;
			}
		}
		if( count == 0 ) {
			alert("Bitte klicken Sie die Rubrik an, in der Ihre Anzeige erscheinen soll");
			return false;
		}
	}
	function CheckFld(Src, Trg) {
		if ( Src.value.length == 2 ) {
			document.all[Trg].focus();
		}
	}
        function CheckBox( id, i ) {
                if ( document.getElementsByName( id )[i].checked == false ) {
			document.getElementsByName( id )[i].checked = true;
                }
        }
	function CheckAlias() {
		var MyAlias;
		MyAlias = document.getElementById( 'AliasToCheck' ).value;

		var RealProg = "/ql3/programs/public/register/checkAlias.pl" + "?alias=" + MyAlias;
		ppwin = window.open(
			RealProg,'550x350',
			'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,\
			width=550,height=350,left=80,top=80'
		);      
	}
        function chkAliasForm() {
                with (document.getElementById('alias'))
                {
                        textlength = value.length;
                        if (textlength == 0 ) {
                                alert("Bitte füllen Sie für Änderungen die Pflichtfelder aus.");
				return false;
                        }
                }
        }
        function chkPasswordForm() {
		var mypassword1 = document.getElementById('password1').value;
		var mypassword2 = document.getElementById('password2').value;
		var mypassword3 = document.getElementById('password3').value;
                if (( mypassword1 == 0 ) || ( mypassword2 == 0 ) || ( mypassword3 == 0 )) {
			alert("Bitte füllen Sie für Änderungen die Pflichtfelder aus.");
			return false;
                }
        }
	function checkDescLength() {
		if (document.inputform.Ichbin.value.length>175) {
			var number = document.inputform.Ichbin.value.length;
			var toomuch = number - 175;
			alert("Der eingegebene Text ist zu lang (" + number + " Zeichen)!\nBitte kuerzen Sie Ihren Text um " + toomuch + " Zeichen." );
			return false;
		}
	}
	function ParPopUpClassic( argument ) {
		open (
			argument, 
			"sendwindow","width=700,height=700,left=0,top=0,scrollbars=yes"
		);
	}    
	function setKidsToZero() {
                if (( document.getElementById("kidsValue").value > 0 ) 
		|| ( document.getElementById("kidsHomeValue").value > 0 )) {
			document.getElementById("kidsHomeValue").value = 0;
			document.getElementById("kidsValue").value = 0;
			return true;
		}
	}
	function chkKids( id, i ) {
                if ( document.getElementsByName( id )[i].checked == false ) {
			document.getElementsByName( id )[i].checked = true;
                }
	}
	function checkAliasPwd () {
		var MyAlias = document.getElementById( 'AliasToCheck' ).value;
		var Password = document.getElementById( 'PasswordToCheck' ).value;
		if ( Password == MyAlias ) {
			alert("Der von Ihnen gewaehlte Benutzername und Ihr Passwort sind identisch. Bitte waehlen Sie zu Ihrer Sicherheit ein anderes Passwort.");
			return false;
		}
	}
	function showContactDirectTip() {
		var tarId = "directTipContainer"
		var refObj = document.getElementById("subject")
		for (i=0;i<refObj.length;i++) {
			if (tarObj = document.getElementById(tarId + i)) {
			    tarObj.style.display = "none"
			}
		}
		if (tarObj = document.getElementById(tarId + refObj.selectedIndex)) {
			tarObj.style.display = "block"
		}
	}
	function ParPopUpTuev( argument ) {
		open (
			argument, 
			"sendwindow","width=990,height=700,left=0,top=0,scrollbars=yes"
		);
	}
// End --> 
