var http_request_search = false; var MySpanRedirect_A =""; var esGoUrl ="http://lublin.studia.pl"; function makePOSTRequestSearch(url,parameters) { http_request_search = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request_search = new XMLHttpRequest(); if (http_request_search.overrideMimeType) { // set type accordingly to anticipated content type //http_request_search.overrideMimeType('text/xml'); http_request_search.overrideMimeType('text/html'); } } else if (window.ActiveXObject) { // IE try { http_request_search = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request_search = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request_search) { alert('Cannot create XMLHTTP instance'); return false; } http_request_search.onreadystatechange = alertContentsSearch; http_request_search.open('POST', url, true); http_request_search.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request_search.setRequestHeader("Content-length", parameters.length); http_request_search.setRequestHeader("Connection", "close"); http_request_search.send(parameters); } function alertContentsSearch() { if (http_request_search.readyState == 4) { if (http_request_search.status == 200) { //alert(http_request_search.responseText); result = http_request_search.responseText; document.getElementById("myspansearch").innerHTML = result; } else { alert('There was a problem with the request no 1.'); } } } function getSearch() { var poststr = ""; var j_ji =""; var j_option =""; makePOSTRequestSearch('/scripts/modular-search/search.php?from=www&j_ji='+j_ji, poststr); } function esChange(task) { if (task=="course") { // document.getElementById("areaCourse").innerHTML ="..."; } document.getElementById("esButton").disabled=true; var j_ji =""; var j_option =""; var poststr = ""; poststr = poststr + "&task=" + task; poststr = poststr + "&es_keywords=" + document.getElementById("es_keywords").value; poststr = poststr + "&es_provinceid=" + document.getElementById("es_provinceid").value; poststr = poststr + "&es_form=" + document.getElementById("es_form").value; poststr = poststr + "&es_cityid=" + document.getElementById("es_cityid").value; poststr = poststr + "&es_course=" + document.getElementById("es_course").value; poststr = poststr + "&es_course2=" + document.getElementById("es_course2").value; makePOSTRequestSearch('/scripts/modular-search/search.php?from=search&j_ji='+j_ji, poststr); } function esGo() { document.location.href = document.getElementById("es_urlgo").value; }