function setFly(val) {
    
         document.getElementById("fly").innerHTML = val;
         document.newcourseform.course_flyer.value = val;
	
  }

function deleteFly(val) {
    
         document.getElementById("fly").innerHTML = "";
         document.newcourseform.course_flyer.value = "";
	
  }

function addNewContact(contact_id, contact_name) {
    
         var selContact = document.newcourseform.contact;
         var newContact = document.createElement("option");
         newContact.text = contact_name;
         newContact.value = contact_id;

         var anzListe = null;
   if (document.all)       
         anzListe = selContact.length;

         selContact.add(newContact, anzListe);

anzListe = selContact.length-1;
        selContact.selectedIndex = anzListe;
	
  }

function addNewLocation(location_id, location_name) {
    
         var sellocation = document.newcourseform.ort;
         var newlocation = document.createElement("option");
         newlocation.text = location_name;
         newlocation.value = location_id;

         var anzListe = null;
  if (document.all)
         anzListe = sellocation.length;
         
        sellocation.add(newlocation, anzListe);

        anzListe = sellocation.length-1;
        sellocation.selectedIndex = anzListe;
	
  }

function addNewgallery(gallery_id, gallery_name) {
    
         var selgallery = document.newcourseform.gallery;
         var newgallery = document.createElement("option");
         newgallery.text = gallery_name;
         newgallery.value = gallery_id;

         var anzListe = null;
if (document.all)         
         anzListe = selgallery.length;

         selgallery.add(newgallery, anzListe);
        
        anzListe = selgallery.length-1;
        selgallery.selectedIndex = anzListe;

        var selGal = document.newcourseform.gallery;
        showImages(selGal);
	
  }


