var bSendContactsContactsRetrieved=false; function JsSendContactsShow(){ //pokazujemy diva: document.getElementById("sendcontacts_div_frame").style.display="inline"; //jeśli tego jeszcze nie zrobiliśmy - wypełniamy kontakty if(!bSendContactsContactsRetrieved){//już przeczytaliśmy listę kontaktów? bSendContactsContactsRetrieved=true; //confirmation jeśli deleting glob_ajax_oper=GetXmlHttpObject(); if(glob_ajax_oper==null) alert("ajax unavailable"); glob_ajax_oper.onreadystatechange=function (){ JsSendContactsAjaxGet_StateChanged(); }; glob_ajax_oper.open("GET","send_contacts.js?mode=getcontacts",true); glob_ajax_oper.send(null); }; } function JsSendContactsHide(){ var elem=document.getElementById("sendcontacts_div_frame"); if(elem)elem.style.display="none"; }; function JsSendContactsAjaxGet_StateChanged(oper,msg_id,who){ if (glob_ajax_oper.readyState==4){ var response=glob_ajax_oper.responseText; if(response!="") {//jakiś błąd //alert("received:"+response); document.getElementById("sendcontacts_div").innerHTML=response+''; } } } function JsSendContacts_OnClick(recipient){ //document.getElementById("recipient").value=11; //alert(document.getElementById("recipient").value); //dodajemy - albo =, albo po przecinku jeśli już coś jest if(document.send_form.recipient.value=="")document.send_form.recipient.value=recipient; else document.send_form.recipient.value+=","+recipient; JsSendContactsHide(); } //document.write(' ...'); //var style_bkg="background-image:url('http://www.konradp.com/wsystem/images/phpimg_gradient_rect.php?dir=h&width=900&height=1&change=0.2&color=0,0,100');"; //27,66,DF = 39,102,223 var style_bkg="background-image:url('http://www.konradp.com/wsystem/images/phpimg_gradient_rect.php?dir=v&width=1&height=20&change=-5&color=39,102,223');"; /* var toWrite=''+ ' ...'+ '
'+ '';//koniec całości (sendcontacts_div_frame) document.write(toWrite); */ function JsSendContacts_PrintDiv(){ var toWrite=''+ ' '+ '
'+ '';//koniec całości (sendcontacts_div_frame) document.write(toWrite); };