function DeleteAllOptionsKreise ()
{
  nCounter = 0;
  nAnzahl = document.suchmaschine_praktikumsangebote_portal.spp_kreis.options.length;
  while (nCounter < nAnzahl)
  {
    document.suchmaschine_praktikumsangebote_portal.spp_kreis[0] = null;
    nCounter++;
  }
}

function AddOptionKreise ( index , optionname , optionvalue, optiontext)
{
  var NewOption = new Option (optionname, optiontext);
  document.suchmaschine_praktikumsangebote_portal.spp_kreis[index] = NewOption;
  document.suchmaschine_praktikumsangebote_portal.spp_kreis[index].text = optiontext;
  newAttribute = document.createAttribute("class");
  newAttribute.nodeValue = optionvalue;
  document.suchmaschine_praktikumsangebote_portal.spp_kreis[index].setAttributeNode(newAttribute);
}

function DeleteAllOptionsOrte ()
{
  nCounter = 0;
  nAnzahl = document.suchmaschine_praktikumsangebote_portal.spp_ort.options.length;
  while (nCounter < nAnzahl)
  {
    document.suchmaschine_praktikumsangebote_portal.spp_ort[0] = null;
    nCounter++;
  }
}

function AddOptionOrte ( index , optionname , optionvalue, optiontext)
{
  var NewOption = new Option (optionname, optiontext);
  document.suchmaschine_praktikumsangebote_portal.spp_ort[index] = NewOption;
  document.suchmaschine_praktikumsangebote_portal.spp_ort[index].text = optiontext;
  newAttribute = document.createAttribute("class");
  newAttribute.nodeValue = optionvalue;
  document.suchmaschine_praktikumsangebote_portal.spp_ort[index].setAttributeNode(newAttribute);
}

function loescheBerufsbezeichnung ()
{
	document.forms['suchmaschine_praktikumsangebote_portal'].spp_berufsbezeichnung.value='';
	document.forms['suchmaschine_praktikumsangebote_portal'].spp_berufsid.value=''; 
	document.getElementById('spp_berufsbezeichnung_loeschen_aktiv').style.display = 'none'; 
	document.getElementById('spp_berufsbezeichnung_loeschen_inaktiv').style.display = 'inline'; 
}

/* Ein- und ausblenden der Topangebote */
function toggleToppangebote()
{
	$('#row_spp_toppangebot').toggle();
	$('#row_spp_aktivierer_topangebote').toggle();
 	$('#row_spp_deaktivierer_topangebote').toggle();
}
