﻿//***************************************************************************
// inhaltschange funktion
//***************************************************************************

var icon_arr = new Array("icon_wir-bieten","icon_sie-bieten","icon_pdf","icon_bewerbung");

function show_Jobtext(type,copy,snippet,download,mailto,bild_id) {
	document.getElementById('Jobtext_type').innerHTML = type;
	document.getElementById('Jobtext_1').innerHTML = copy;
	
	// download
	if (snippet != "" && download != "") {
		document.getElementById("Buttons").innerHTML = '<a href="downloads/'+snippet+'/'+download+'" target="_blank" onfocus="this.blur();"><img src="_images_all/download-pdf.gif" alt="download" border="0" /></a>';
	} else if (mailto == "") {	// schuetzt mailto-button
		document.getElementById("Buttons").innerHTML = '';
	}
	
	// mailto
	if (mailto != "" ) {
		document.getElementById("Buttons").innerHTML = '<a href="mailto:jobs@feo-elektronik.de?subject=Online Bewerbung: '+mailto+'&amp;body=Sehr geehrte Damen und Herren," onfocus="this.blur();"><img src="_images_all/bewerbung-senden.gif" alt="" width="148" height="31" border="0" /></a>';
	} else if (snippet == "" && download == "") { // schuetzt download-button
		document.getElementById("Buttons").innerHTML = '';
	}
	
	// icons status austauschen
	for (i = 1; i < 5; i++) {
		if (bild_id != i) {
			document.getElementById("icon"+i).src = "_images_all/"+icon_arr[i-1]+".jpg";
		} else {
			document.getElementById("icon"+i).src = "_images_all/"+icon_arr[i-1]+"_a.jpg";
		}
	}
}

//***************************************************************************
//ende
//***************************************************************************

