function doBookmark(x, y) { title = document.title; url = window.location; if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if (window.external) { window.external.AddFavorite( url, title); } else if (window.opera && window.print) { return true; } } function disableForm(getForm) { for (i = 0; i < getForm.elements.length; i++) { if (getForm.elements[i].disabled == true) { getForm.elements[i].name = 'disabled'; } getForm.elements[i].disabled = true; } } function enableForm(getForm) { for (i = 0; i < getForm.elements.length; i++) { if (getForm.elements[i].name == 'disabled') { getForm.elements[i].name = ''; } else { getForm.elements[i].disabled = false; } } } var ajaxForm = ''; function grabNewUser(jxForm) { url = "/assets/ajax.mail.php"; run = "grabNewUserJX(req.responseText)"; ajaxForm = jxForm; disableForm(ajaxForm); doCallback("act=grabuser&mailaddr=" +ajaxForm.elements['mailaddr'].value); } function grabNewUserJX(getReply) { enableForm(ajaxForm); splitReply = getReply.split('|'); if (splitReply[0] == "ERR") { ajaxForm.elements[splitReply[1]].focus(); ajaxForm.elements[splitReply[1]].select(); alert(splitReply[2]); } else if (getReply == "OK!") { ajaxForm.elements['mailaddr'].value = ''; alert('Your e-mail address has been added to our mailing list.'); } else { alert(getReply); } } // SOCIAL MEDIA // // IMAGE HOVER // function send2Friend() { document.getElementById('doSend2Friend').style.display = 'block'; document.getElementById('doSend2FriendBox').style.marginLeft = '-'+ parseInt(document.getElementById('doSend2FriendBox').offsetWidth / 2) +'px'; document.getElementById('doSend2FriendBox').style.marginTop = '-'+ parseInt(document.getElementById('doSend2FriendBox').offsetHeight / 2) +'px'; document.getElementById('fmail').focus(); } function hideBox(iObj) { document.body.focus(); document.getElementById(iObj).style.display = 'none'; } function searchItYeah(jxForm) { if (!document.getElementById('seekndestroy').value) { document.getElementById('seekndestroy').focus(); alert('Type in something to search.'); return false; } disableForm(jxForm); window.location = '/arama/' +encodeURIComponent(document.getElementById('seekndestroy').value); } function changeLang(getLang) { url = "/assets/ajax.mail.php"; run = "changeLangJX(req.responseText)"; doCallback("act=chglang&dolang=" +getLang); } function changeLangJX(getReply) { if (getReply == "OK!") { window.location.reload(true); } else { alert(getReply); } } function disableMailingOffer() { url = "/assets/ajax.mail.php"; run = "disableMailingOfferJX(req.responseText)"; doCallback("act=dmo"); } function disableMailingOfferJX(getReply) { if (getReply == "OK!") { window.location = '../'; } else { alert(getReply); } } function countSocMed(galleryID, mediaType) { url = "/assets/ajax.mail.php"; run = "countSocMedJX(req.responseText)"; doCallback("act=socmed&gid=" +parseInt(galleryID)+ "&mtype=" +mediaType); } function countSocMedJX(getReply) { if (getReply != "OK!") { alert(getReply); } }