 function nastepna_oferta_ajax_zadanie (oid,fid) { if (xmlHttp) { try { if (fid>0) xmlHttp.open ("GET","/nastepna_oferta_firmy,"+oid+","+fid+"\.html",true); else xmlHttp.open ("GET","/nastepna_oferta,"+oid+"\.html",true); xmlHttp.onreadystatechange = nastepna_oferta_ajax_odpowiedz; xmlHttp.send (null); } catch (e) { alert ("Błąd. Nie można połączyć się z serwerem. Prosimy spróbować ponownie."); } } else alert ("Wystąpił błąd. Prosimy spróbować ponownie."); } function nastepna_oferta_ajax_odpowiedz () { if (xmlHttp.readyState == 4) { if (xmlHttp.status == 200) { try { var odpowiedz = trim (xmlHttp.responseText); if (odpowiedz.match (/^\/(kupie|poszukuje|produkt|usluga),([0-9]+),([^,]+)\.html$/)) document.location = odpowiedz; else alert ("Wystąpił błąd. Prosimy spróbować ponownie."); } catch (e) { alert ("Wystąpił błąd. Prosimy spróbować ponownie."); } } else alert ("Wystąpił błąd. Prosimy spróbować ponownie."); } } function osi_rozwin_zwin (co) { var txt=document.getElementById (co).style; var link1=document.getElementById (co+"_link1"); var link2=document.getElementById (co+"_link2"); if (txt.display=="none") { txt.display="inline"; link1.innerHTML="&#9650;"; link2.innerHTML="Zwiń"; } else { txt.display="none"; link1.innerHTML="&#9660;"; link2.innerHTML="Rozwiń"; } } 
