\n'); } // ============ FLASH to HTML =========== end function loadContent_progress(target, url) { //document.getElementById(target).innerHTML = ' Fetching data...'; document.getElementById(target).innerHTML = ' Nahrávam data...'; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } if (req != undefined) { req.onreadystatechange = function() {loadContent_done(target, url);}; req.open("GET", url, true); req.send(""); } } function loadContent_done(target, url) { if (req.readyState == 4) { // only if req is "loaded" if (req.status == 200) { // only if "OK" document.getElementById(target).innerHTML = req.responseText; } else { document.getElementById(target).innerHTML="Error:\n"+ req.status + "\n" +req.statusText; } } } function loadContent(target, url) { //alert("target="+target+"\n url="+url); if (target == "_blank") { window.open (url,target); } else { loadContent_progress(target, url); } //return false; } function changeThumb(target, imgSrc){ //alert("ID: " + target + "\n target: " + imgSrc); document.getElementById(target).src=imgSrc; } function changeImgCnt(img_Src, img_Label, img_Text, printAsLink) { //alert("text: "+img_Text); document.getElementById('imgBig').src=img_Src; if(img_Text != "undefined") { if ( printAsLink == true) { document.getElementById('imgText').innerHTML = ""+img_Text+""; } else { document.getElementById('imgText').innerHTML = img_Text; } } if(img_Label != "undefined") { document.getElementById('imgLabel').innerHTML = img_Label; } } function changeImgCnt2(img_Src, img_Label, img_Text, dType, dText, dFile) { //alert("text: "+img_Text); document.getElementById('imgBig').src=img_Src; if(img_Text != "undefined") { document.getElementById('imgText').innerHTML = img_Text; } if ( dText != "") { document.getElementById('download').innerHTML = ""+dText+" ["+dType+"]"; } if(img_Label != "undefined") { document.getElementById('imgLabel').innerHTML = img_Label; } } function hideMenu(menuID) { document.getElementById(menuID).style.visibility = 'hidden'; } function hidediv(divID) { //alert("SOM TU HIDE ... " + divID + " |"); if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById(divID).style.display = 'none'; } else { if (document.layers) { // Netscape 4 document.divID.display = 'hidden'; } else { // IE 4 document.all.divID.style.display = 'hidden'; } } } function showdiv(divID) { //alert("SOM TU SHOW ... " + divID + " |"); //document.getElementById(divID).style.display = 'block'; if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById(divID).style.display = 'block'; } else { if (document.layers) { // Netscape 4 document.divID.display = 'block'; } else { // IE 4 document.all.divID.style.display = 'block'; } } } function changeMenu(curID, newID) { //alert("curID: " + curID + " newID" + newID); hidediv(curID); showdiv(newID); } function changeDynamicCnt(url){ document.getElementById('dynamic_cnt').innerHTML = "Nahrávam stránku ..."; loadContent_progress('dynamic_cnt', url); } function zoomMinus(cIK){ if(cIK == -1){ cImgKontakt = 1; } else { cImgKontakt--; } if(cImgKontakt == 1){ var btnMinus = ""; }else{ var btnMinus = "ZOOM- "; } if(cImgKontakt > 2){ var btnPlus = ""; }else{ var btnPlus = "ZOOM+ "; } var btnFirma = "FIRMA "; var btnLudia = "ĽUDIA"; //var btns = btnMinus+btnPlus+btnFirma+btnLudia; //var btns = btnMinus+btnPlus+btnLudia; var btns = btnMinus+btnPlus; document.getElementById('kontaktNavigation').innerHTML = btns; changeImgKontakt(cImgKontakt); } function zoomPlus(cIK){ if(cIK == -1){ cImgKontakt = 1; } else { cImgKontakt++; } if(cImgKontakt == 1){ var btnMinus = ""; }else{ var btnMinus = "ZOOM- "; } if(cImgKontakt > 2){ var btnPlus = ""; }else{ var btnPlus = "ZOOM+ "; } var btnFirma = "FIRMA "; var btnLudia = "ĽUDIA"; //var btns = btnMinus+btnPlus+btnFirma+btnLudia; //var btns = btnMinus+btnPlus+btnLudia; var btns = btnMinus+btnPlus; document.getElementById('kontaktNavigation').innerHTML = btns; changeImgKontakt(cImgKontakt); } function zoomFirma(){ cImgKontakt = 4; var btnMapa = "MAPA "; var btnLudia = "ĽUDIA"; var btns = btnMapa+btnLudia; document.getElementById('kontaktNavigation').innerHTML = btns; changeImgKontakt(cImgKontakt); } function zoomLudia(){ cImgKontakt = 5; var btnMapa = "MAPA "; var btnFirma = "FIRMA"; //var btns = btnMapa+btnFirma; var btns = btnMapa; document.getElementById('kontaktNavigation').innerHTML = btns; changeImgKontakt(cImgKontakt); } function changeImgKontakt(idImg){ var path = "cnt/images/rk_adresa/"; if (idImg == 1){ imgSrc = path+"mapa1.jpg"; } if (idImg == 2){ imgSrc = path+"mapa2.jpg"; } if (idImg == 3){ imgSrc = path+"mapa3.jpg"; } if (idImg == 4){ imgSrc = path+"firma.jpg"; } if (idImg == 5){ imgSrc = path+"ludia.jpg"; } document.getElementById('imgKontakt').src = imgSrc; } // ************************************************************** FORM KARIERA function form_kariera_do(){ var send = "YES"; var statusText = ""; var statusText_HeadKontakt = "
Nevyplnili ste povinné údaje: "; if ( document.kariera.fmeno.value == "" ) { if (send == "YES"){statusText += statusText_HeadKontakt} statusText += "Meno"; send = "NO"; } if ( document.kariera.fpriezvisko.value == "" ) { if (send == "NO"){statusText += ", "} else {statusText += statusText_HeadKontakt} statusText += "Priezvisko"; send = "NO"; } if ( document.kariera.femail.value == "" ) { if (send == "NO"){statusText += ", "} else {statusText += statusText_HeadKontakt} statusText += "e-mail"; send = "NO"; } if ( send == "NO") {statusText += ".
";} var pozicia = "NO"; if ( pozicia == "NO" ){ if ( document.kariera.fpoz1.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ){ if ( document.kariera.fpoz2.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ){ if ( document.kariera.fpoz3.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ){ if ( document.kariera.fpoz4.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ){ if ( document.kariera.fpoz5.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ){ if ( document.kariera.fpoz6.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ){ if ( document.kariera.fpoz7.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ){ if ( document.kariera.fpoz8.checked ) { pozicia = "YES"; } } if ( pozicia == "NO" ) { statusText += "Nevybrali ste ani jedno pracovné zaradenie.
\n" send = "NO"; } if ( document.kariera.fcode.value == "" ) { statusText += "Nevyplnili ste bezpečnostný kód.
\n"; send = "NO"; } if (send == "YES"){ document.kariera.target = "spracuj"; document.kariera.action = "cnt/sk_kariera_spracuj1.php"; document.kariera.submit(); loadContent('dynamic_cnt', 'cnt/sk_kariera_podakovanie.php'); } else { document.getElementById('kar_status').innerHTML = statusText; } } //-->