

	function ads() {
		var m3_u = (location.protocol=='https:'?'https://ad2.hospitalscout.de/www/delivery/ajs.php':'http://ad2.hospitalscout.de/www/delivery/ajs.php');
		var m3_r = Math.floor(Math.random()*99999999999);
		if (!document.MAX_used) document.MAX_used = ',';
		document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
		document.write ("?zoneid=1");
		document.write ('&amp;cb=' + m3_r);
		if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
		document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
		document.write ("&amp;loc=" + escape(window.location));
		if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
		if (document.context) document.write ("&context=" + escape(document.context));
		if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
		document.write ("'><\/scr"+"ipt>");
	}

	/*
	 * Beim erfassen wir die stellenanzeige vom server aus der session geladen. Damit umgeht man das problem mit nicht validen
	 * xml. Die folgenden methoden sind genau dafür bestimmt.
	 */
	var url = "jobinsession.htm";
	var editor = false;


	function getHTTPObject() {

		var xmlhttp;

		try
		{
			xmlhttp = new XMLHttpRequest();

		}
		catch (error)
		{
			try
			{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (error)
			{
				return false;
			}
		}


		return xmlhttp;
	}

	function handleHttpResponse() {

		if (http.readyState == 4) {

			var oFCKeditor = new FCKeditor('wirBieten') ;
			oFCKeditor.BasePath = "/jobboerse/editor/";
			oFCKeditor.ToolbarSet = "vivai";

			oFCKeditor.Value = http.responseText;
			oFCKeditor.ReplaceTextarea();

		}

	}
	var http = false;

	function getJob() {
		var tmpd = new Date();
		url = url + "?windoof=" + tmpd.getMilliseconds();
		http = getHTTPObject();
		http.open("GET", url, true);
		http.onreadystatechange = handleHttpResponse;
		http.send(null);

	}


