    
var staedte = [
    	/*leer*/    ['&nbsp;'],
    	/*berlin*/  [
					 'ADAGIO',
					 'B&auml;rensaal',
					 //'Ballhaus Pankow',
					 'Capitol Yard Golf Lounge',
					 'Charlottenburg Palace',
					 'Citadel Spandau',
					 'Culture Forum',
					 'DBB Forum',
					 'E4 Berlin',
					 'Energy Forum',
					 'Espressamente Illy',
					 'E-Werk',
					 'Farmhouse Steglitz',
					 'Friedrichswerder Church',
					 'German Technical Museum',
					 'Gothic Hall at Victoria Quartier',
					 'Hamburger Bahnhof',
					 'Kalkscheune',
					 'Karlsson',
					 'Meilenwerk',
					 'Meistersaal',
					 'M&uuml;nzpalais',
					 'New National Gallery',
					 'Old National Gallery',
					 'Orwell Showroom',
					 'Palazzo Farnese',
					 'Puro Sky Lounge Berlin',
					 'Radialsystem',
					 'Stilwerk Forum',
					 'Studios Eventisland',
					 'The British Embassy',
					 'U3 Train Station and Tunnel',
					 'Umweltforum',
					 'Villa Harteneck',
					 'Vitrapoint in the Granary',
					 'Vonderbank Artgallery'
					],
		/*hamburg*/ [
					 //'Alter Hamburger Jachtclub',
					 'Fleet 3',
					 'Fotostudio Briese',
					 'Gosslerhaus',
					 //'Hamburger B&ouml;rse',
					 'Hamburg Cruiser Center',
					 //'Hanse Gate',
					 'Jagdschloss Bellin',
					 'Kaffeer&ouml;sterei',
					 'Kaispeicher D',
					 'Kehrwieder Theater',
					 'Kulturkirche Altona',
					 'Nicolaisen',
					 'Play Rent',
					 //'Reelocation',
					 'Terminal Tango',
					 'Villa E 56',
					 'Villa Wilmans Park',
					 'Zum Alten Rathaus'
					],
		 /*koeln*/  [
					 'bauwerk',
					 'Kastanienhof',
					 'K&ouml;ln Sky',
					 //'MS Stadt K&ouml;ln',
					 'Pure-liner 1',
					 'Sachsenturm',
					 'Schloss Bedburg',
					 'Kranhalle Walzwerk'
					],
		  /*mainz*/ [
					 'Celebrating of the River Rhine',
					 'Eberbach Monastery',
					 'Frankfurter Hof',
					 'Gutenbergsaal within Rheingoldhalle',
					 'Historische Lokhalle',
					 'Hofgut von H&uuml;nersdorff',
					 'Hunolstein Moated Castle',
					 'Imperial',
					 'Jagdschloss Platte',
					 'Kongresssaal within Rheingoldhalle',
					 //'Kurf&uuml;rstliches Schloss',
					 'Lufthansa Flight Centre',
					 'Museum Giersch',
					 'Roman Maritime Museum',
					 'Sektkellerei Kupferberg',
					 'Union Hall',
					 'Westhafen Pier 1',
					 'Winery Balthasar Ress',
					 'Winery Baron Knyphausen',
					 'Winery K&uuml;hling-Gillot'
					]
        	  ];
	
    function setlocation(stadt,id) {
      code	= '';
      
      code+='<select name="oder_wunschlocation" onchange="document.form.oder_wloc.value=this.value">\n';
      code+='<option style="font-weight:bold" value="" selected>' + stadt + '</option>\n';
        for(elements in staedte[id]) {
	  code+='<option value="' + staedte[id][elements] + '">&nbsp;&nbsp;&nbsp;&nbsp;' + staedte[id][elements] + '</option>\n';	
	}
      code+='</select>\n';

      document.getElementById('wunschloc').innerHTML=code;
      document.form.oder_wloc.value="";
    }
    
    
/////// Pflichtfelderüberprüfung
    var check	  = true; 	// doppelklick bei absenden verhindern
    var errortext = "Please check your mandatory fields!";
    function sendmail() {
      erg = true;
      
      if(!document.form.telefon.value || !document.form.name.value || !document.form.email.value || !document.form.veranst_ort.value || (!document.form.anrede[0].checked && !document.form.anrede[1].checked && !document.form.anrede[2].checked)) {
	erg = false;
      }
      else if(document.form.email.value!="") {
	var str = document.form.email.value;
	pos_at = str.indexOf('@');
	pos_at_ende = str.lastIndexOf('@');
	pos_dot = str.lastIndexOf('.');
	pos_space = str.indexOf(' ');
	pos_length = str.length;
	domain = str.substring(pos_at+1,pos_dot);
	
	if (pos_at != pos_at_ende) 	{erg = false}
	if (domain.length < 2 )  	{erg = false}
	if (pos_at < 1 )  		{erg = false}
	if (pos_dot < pos_at) 	 	{erg = false}
	if (pos_length - pos_dot <= 2)	{erg = false}
        if (pos_length - pos_dot > 5) 	{erg = false}
	if (pos_space != -1) 	 	{erg = false}
      }
      
      
      if(!erg) {
        document.getElementById('senderror').innerHTML=errortext;
      }
      else {
        if(check) {
          document.getElementById('senderror').innerHTML="&nbsp;";
          document.form.submit();
	  check = false;
        }
      }
    }

    function clearform() {
      document.form.reset();
      setlocation('&nbsp;',0);
      document.getElementById('senderror').innerHTML="&nbsp;";
    }

    function insert() {
      document.write('<input type="hidden" name="access" value="nichtsfuerspammer">');
    }