function FM_NewPost(FMID) { document.location.href = '/post.asp?FMID='+FMID; } function FM_LoadMessage(MSGID, FMID) { var objTBL = document.getElementById('FMTBL_MSGBDY_'+MSGID); var objQR = document.getElementById('QR_'+MSGID); if (objTBL.style.visibility == 'visible') { objTBL.style.visibility = 'hidden'; objTBL.style.position = 'absolute'; objTBL.style.width = '0px'; objTBL.style.height = '0px'; if (objQR != null) { objQR.style.visibility = 'hidden'; objQR.style.position = 'absolute'; objQR.style.width = '0px'; objQR.style.height = '0px'; } } else { objTBL.style.visibility = 'visible'; objTBL.style.position = 'relative'; objTBL.style.width = '100%'; objTBL.style.height = ''; if (document.getElementById('MSGBDY_IND_'+MSGID) != null) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', '/js/getMsgBody.js?MSGID='+MSGID+'&FMID='+FMID); html_doc.appendChild(js); } // google logs: pageTracker._trackPageview('/AJAX/FM'+FMID+'/MSGID'+MSGID); } } function FM_ajaxLoader(url,id) { if (document.getElementById) { var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); } if (x) { x.onreadystatechange = function() { if (x.readyState == 4 && x.status == 200) { var el = document.getElementById(id); el.innerHTML = x.responseText; } } x.open("GET", url, true); x.send(null); } } function FM_QR(FMID, MSGID) { var objQR = document.getElementById('QR_'+MSGID); var objQRc = document.getElementById('QRc_'+MSGID); if (objQR.style.visibility == 'visible') { objQR.style.visibility = 'hidden'; objQR.style.position = 'absolute'; objQR.style.width = '0px'; objQR.style.height = '0px'; } else { objQRc.innerHTML = '

...

'; objQR.style.visibility = 'visible'; objQR.style.position = 'relative'; objQR.style.width = '100%'; objQR.style.height = ''; FM_ajaxLoader('qr_post.asp?FMID='+FMID+'&OMSGID='+MSGID,objQRc.id); // google logs: pageTracker._trackPageview('/QR/FM'+FMID+'/MSGID'+MSGID); } } function FM_QR_insertEmoji(el,ins) { if (el.setSelectionRange){ el.value = el.value.substring(0,el.selectionStart) + ins + el.value.substring(el.selectionStart,el.selectionEnd) + el.value.substring(el.selectionEnd,el.value.length); } else if (document.selection && document.selection.createRange) { el.focus(); var range = document.selection.createRange(); range.text = range.text + ins; } } function FM_QR_SubmitPost(Key) { var objSubject = document.getElementById('Subject'+Key); var objForm = document.getElementById('QRForm'+Key); if (objSubject.value == '') { alert('לא ניתן להציב הודעה ללא נושא'); return; } objForm.submit(); } function FM_QR_Login(Key, FMID) { var jsEmail = document.getElementById('UM_EMail_'+Key); var jsPWD = document.getElementById('UM_PWD_'+Key); var objQRc = document.getElementById('QRc_'+Key); FM_ajaxLoader('qr_post_login_do.asp?FMID='+FMID+'&OMSGID='+Key+'&Email='+jsEmail.value+'&PWD='+jsPWD.value,objQRc.id); }