<!--
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

//([uid, Wert])
//KatPrePressArray = new Array([1,"Agentur"],[2,"Anzeigen"],[3,"Beratung"]);
KatPrePressArray = new Array([100,'Agentur'],[101,'Freelancer'],[102,'Redaktion'],[103,'Übersetzung'],[104,'Verlag']);
//KatPressArray = new Array([4,"Buchbinder"],[5,"Druckerei"],[6,"Litho"]);
KatPressArray = new Array([10000,'Buchbinder'],[10001,'Druckerei'],[10002,'Litho'],[10003,'Papierlieferant']);
//KatPostPressArray = new Array([7,"Adresslieferant"], [8,"Kommisionierung"], [9,"Lettershop"], [10,"Versandservice"]);
KatPostPressArray = new Array([20000,'Adressmanagment'],[20001,'Komissionierung'],[20002,'Lettershop'],[20003,'Versandservice']);
//([uid, uidKat, Wert])
//SubKatArray = new Array([1,1,"Bildagentur"],[2,1,"Contentagentur"],[3,1,"PR-Agentur"],[4,1,"Werbeagentur"],[5,3,"PR-Kommunikation"], [6,5,"Bogenoffset"], [7,5,"CTP"], [8,5,"Digital Druck"], [9,5,"Rollenoffset"]);
SubKatArray = new Array([1,100,'Anzeigenvermarktung'],[2,100,'Bildagentur'],[3,100,'Contentagentur'],[4,100,'Nachrichtenagentur'],[5,100,'PR-Agentur'],[6,100,'Werbeagentur'],[7,101,'Anzeigenaquise'],[8,101,'Beratung'],[9,101,'Fotografie'],[10,101,'Grafik Design'],[11,101,'Illustration'],[12,101,'Journalist'],[13,101,'Lektorat'],[14,101,'Produktioner'],[15,101,'Texter'],[16,102,'Branchenspezifisch'],[17,102,'Gesellschaft'],[18,102,'IT'],[19,102,'Kultur'],[20,102,'Nachrichten allg.'],[21,102,'Sport'],[22,102,'Wirtschaft'],[23,102,'Wissenschaft'],[10001,10001,'Actionprint'],[10002,10001,'Bogenoffset'],[10003,10001,'CTP'],[10004,10001,'Digitaldruck'],[10005,10001,'Rollenoffset'],[20000,20000,'Adresspflege'],[20001,20000,'Adressvermarktung'],[20002,20000,'Datenbankentwicklung'],[20003,20000,'Zielgruppenanalyse'],[20004,20002,'Direktbeschriftung'],[20005,20002,'Etiketten drucken'],[20006,20002,'Ink-Jet'],[20007,20002,'Laserprint']);
//LeistungArray = new Array([1,1,"Bildagentur1"],[2,1,"Bildagentur2"],[3,1,"Bildagentur3"],[4,1,"Bildagentur4"]);
LeistungArray = new Array([3,9,'Architektur'],[2,8,'Press Relations'],[1,8,'Corporate Communications'],[4,9,'Auto'],[5,9,'Food'],[6,9,'Industrie'],[7,9,'Journalistik'],[8,9,'Landschaft'],[9,9,'People'],[10,9,'Portrait'],[11,9,'Reise'],[12,9,'Sport'],[13,10,'Allgemein'],[14,10,'Art Direction'],[15,10,'Infografik'],[16,10,'Layout (DTP)'],[17,10,'Reinzeichnung'],[18,11,'Art'],[19,11,'Cartoon'],[20,11,'Technisch'],[21,11,'Landschaft'],[22,11,'Portrait/Akt'],[23,12,'Branchenspezifisch'],[24,12,'Gesellschaft'],[25,12,'IT'],[26,12,'Kultur'],[27,12,'PR'],[28,12,'Sport'],[29,12,'Wirtschaft'],[30,12,'Wissenschaft']);

// Für Änderungen im bereich
function Kat(){
	if(document.forms[formName].bereich[document.forms[formName].bereich.selectedIndex].value != "0"){
		document.forms[formName].kat[0].text = "--Bitte w\u00E4hlen--";
		document.forms[formName].kat[0].value = "0";
		counter=0;
		// Setzten der Werte
		if(document.forms[formName].bereich[document.forms[formName].bereich.selectedIndex].value == "PrePress"){
			document.forms[formName].kat.length = KatPrePressArray.length+1;
			for(i=0; i < KatPrePressArray.length; i++){
				counter++;
				document.forms[formName].kat[counter].text = KatPrePressArray[i][1];
				document.forms[formName].kat[counter].value = KatPrePressArray[i][0];
			}
		}
		if(document.forms[formName].bereich[document.forms[formName].bereich.selectedIndex].value == "Press"){
			document.forms[formName].kat.length = KatPressArray.length+1;
			for(i=0; i < KatPressArray.length; i++){
				counter++;
				document.forms[formName].kat[counter].text = KatPressArray[i][1];
				document.forms[formName].kat[counter].value = KatPressArray[i][0];
			}
		}
		if(document.forms[formName].bereich[document.forms[formName].bereich.selectedIndex].value == "PostPress"){
			document.forms[formName].kat.length = KatPostPressArray.length+1;
			for(i=0; i < KatPostPressArray.length; i++){
				counter++;
				document.forms[formName].kat[counter].text = KatPostPressArray[i][1];
				document.forms[formName].kat[counter].value = KatPostPressArray[i][0];
			}
		}
                document.forms[formName].kat[0].selected = true;
                // Die anderen Kategorien auf Start setzen
                document.forms[formName].subkat.length = 1;
                document.forms[formName].subkat[0].text = "--Keine Auswahl--";
                document.forms[formName].subkat[0].value = "0";

                document.forms[formName].leistung.length = 1;
                document.forms[formName].leistung[0].text = "--Keine Auswahl--";
                document.forms[formName].leistung[0].value = "0";

        } else {
                document.forms[formName].kat.length = 1;
                document.forms[formName].kat[0].text = "--Keine Auswahl--";
                document.forms[formName].kat[0].value = "0";

				// Die anderen Kategorien auf Start setzen
                document.forms[formName].subkat.length = 1;
                document.forms[formName].subkat[0].text = "--Keine Auswahl--";
                document.forms[formName].subkat[0].value = "0";

                document.forms[formName].leistung.length = 1;
                document.forms[formName].leistung[0].text = "--Keine Auswahl--";
                document.forms[formName].leistung[0].value = "0";
	}
}

// Für Änderunge in kat
function SubKat(){
       	if(document.forms[formName].kat[document.forms[formName].kat.selectedIndex].value != "0"){
                // Suchen der SubKats und Setzten der Werte
                uidKat = document.forms[formName].kat[document.forms[formName].kat.selectedIndex].value;
                document.forms[formName].subkat.length = SubKatArray.length+1;
                counter = 0;
                for(i=0; i < SubKatArray.length; i++){
                        // Kontrolle ob der Wert gemeint ist
                        if(SubKatArray[i][1] == uidKat){
                                counter++;
                                document.forms[formName].subkat[counter].text = SubKatArray[i][2];
                                document.forms[formName].subkat[counter].value = SubKatArray[i][0];
                        }
                }
                // Kontrolle ob es SubKats gab
                if(counter > 0){
                        document.forms[formName].subkat[0].text = "--Bitte w\u00E4hlen--";
                        document.forms[formName].subkat[0].value = "0";
                        document.forms[formName].subkat.length = counter+1;

						document.forms[formName].leistung.length = 1;
		                document.forms[formName].leistung[0].text = "--Keine Auswahl--";
		                document.forms[formName].leistung[0].value = "0";

                } else {
                        document.forms[formName].subkat.length = 1;
                        document.forms[formName].subkat[0].text = "--Keine Auswahl--";
                        document.forms[formName].subkat[0].value = "0";

						 document.forms[formName].leistung.length = 1;
		                document.forms[formName].leistung[0].text = "--Keine Auswahl--";
		                document.forms[formName].leistung[0].value = "0";
                }
                document.forms[formName].subkat[0].selected = true;
        } else {
                document.forms[formName].subkat.length = 1;
                document.forms[formName].subkat[0].text = "--Keine Auswahl--";
                document.forms[formName].subkat[0].value = "0";

				 document.forms[formName].leistung.length = 1;
                document.forms[formName].leistung[0].text = "--Keine Auswahl--";
                document.forms[formName].leistung[0].value = "0";
        }
}


// Für Änderungen in subkat oder kat
function Leistung(){
	if(document.forms[formName].subkat[document.forms[formName].subkat.selectedIndex].value != "0"){
		// Suchen der Leistungne und Setzten der Werte
		uidSubKat = document.forms[formName].subkat[document.forms[formName].subkat.selectedIndex].value;
		document.forms[formName].leistung.length = LeistungArray.length+1;
		counter = 0;
		for(i=0; i < LeistungArray.length; i++){
			// Kontrolle ob der Wert gemeint ist
			if(LeistungArray[i][1] == uidSubKat){
				counter++;
				document.forms[formName].leistung[counter].text = LeistungArray[i][2];
				document.forms[formName].leistung[counter].value = LeistungArray[i][0];
			}
		}
		// Kontrolle ob es Leistungen gab
		if(counter > 0){
			document.forms[formName].leistung[0].text = "--Bitte w\u00E4hlen--";
			document.forms[formName].leistung[0].value = "0";
			document.forms[formName].leistung.length = counter+1;
		} else {
			document.forms[formName].leistung.length = 1;
			document.forms[formName].leistung[0].text = "--Keine Auswahl--";
			document.forms[formName].leistung[0].value = "0";
		}
		document.forms[formName].leistung[0].selected = true;
	} else {
		document.forms[formName].leistung.length = 1;
		document.forms[formName].leistung[0].text = "--Keine Auswahl--";
		document.forms[formName].leistung[0].value = "0";
	}
}

function allePLZ(){
	if(document.forms[formName].alle.checked== true){
		document.forms[formName].plz0.checked = true;
		document.forms[formName].plz1.checked = true;
		document.forms[formName].plz2.checked = true;
		document.forms[formName].plz3.checked = true;
		document.forms[formName].plz4.checked = true;
		document.forms[formName].plz5.checked = true;
		document.forms[formName].plz6.checked = true;
		document.forms[formName].plz7.checked = true;
		document.forms[formName].plz8.checked = true;
		document.forms[formName].plz9.checked = true;
	} else {
		document.forms[formName].plz0.checked = false;
		document.forms[formName].plz1.checked = false;
		document.forms[formName].plz2.checked = false;
		document.forms[formName].plz3.checked = false;
		document.forms[formName].plz4.checked = false;
		document.forms[formName].plz5.checked = false;
		document.forms[formName].plz6.checked = false;
		document.forms[formName].plz7.checked = false;
		document.forms[formName].plz8.checked = false;
		document.forms[formName].plz9.checked = false;
	}
	document.forms[formName].alle.blur();
}

function SuchenSubmit(){
	checkVar = true;
	focus_1="";
	Fehlermeldung="";

	// Bereich
	if(document.forms[0].elements["bereich"].value =="0"){
		focus_1="bereich";
        Fehlermeldung="Bitte geben Sie min. eine Projektphase an.";
		checkVar = false;
	}

	// PLZ
	if(document.forms[formName].plz0.checked == false && document.forms[formName].plz1.checked == false && document.forms[formName].plz2.checked == false && document.forms[formName].plz3.checked == false && document.forms[formName].plz4.checked == false && document.forms[formName].plz5.checked == false && document.forms[formName].plz6.checked == false && document.forms[formName].plz7.checked == false && document.forms[formName].plz8.checked == false && document.forms[formName].plz9.checked == false){
		focus_1="plz0";
        Fehlermeldung="Bitte geben Sie min. eine PLZ an.";
		checkVar = false;
	}

	// Kontrolle ob alles richtig ist, wenn ja dann weiter sonst nochmal probieren
	if(checkVar == true){
		// alles in Ordnung schicken
        document.forms[formName].submit();
		// document.forms[0].submit();
	} else {
		document.forms[0].elements[focus_1].focus();
		alert(Fehlermeldung);
	}
}

//-->
