function rusureDelete( StrUrl ) { if (confirm("האם את/ה בטוח/ה שברצונך למחוק?")) { window.location.href = StrUrl; } else { return false; } } function send2friend() { openCenterWindow('send-to-friend.asp',300,400,0); } function popupNews(IntNewsID) { var MyUrl = 'popup-news.asp?id='+IntNewsID; wd = 400; ht = 250; st = 1; d = (screen.width-wd)/2; h = ((screen.height-ht)/2); window.open(MyUrl,'news','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+st+',resizable='+st+'').focus(); } function popupEvent(IntEventID) { var MyUrl = 'popup-events.asp?id='+IntEventID; wd = 400; ht = 250; st = 1; d = (screen.width-wd)/2; h = ((screen.height-ht)/2); window.open(MyUrl,'events','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+st+',resizable='+st+'').focus(); } function popupPrivacy() { var MyUrl = 'popup-privacy.html'; wd = 450; ht = 400; st = 1; d = (screen.width-wd)/2; h = ((screen.height-ht)/2); window.open(MyUrl,'privacy','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable='+st+'').focus(); } function viewArticle(strURL) { var MyUrl = 'count-hits.asp?url='; var wd = 800; var ht = 600; var d = ((screen.width-wd)/2); var h = ((screen.height-ht)/2); window.open(strURL,'popupArticle','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=1,location=1,directories=1,menubar=1,status=1,scrollbars=1,resizable=1'); } function viewLink(IntID) { var strURL = 'view-link.asp?id='+ IntID; var wd = 800; var ht = 600; var d = ((screen.width-wd)/2); var h = ((screen.height-ht)/2); window.open(strURL,'popupLink','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=1,location=1,directories=1,menubar=1,status=1,scrollbars=1,resizable=1'); } function PopupPic(sPicURL) { var wd = 150; var ht = 150; var d = ((screen.width-wd)/2); var h = ((screen.height-ht)/2); window.open('/popup.asp?'+sPicURL,'popupImage','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no'); } function getUrl(strURL) { window.location.href = strURL; } function openCenterWindow(url,wd,ht,st) { d = (screen.width-wd)/2; h = ((screen.height-ht)/2); window.open(url,'','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+st+',resizable='+st+'').focus(); } function changePass() { openCenterWindow('change-password.asp',330,220,0); } function changeID() { openCenterWindow('change-id.asp',330,220,0); } var currClass = ''; function ChangeBorderColor( ){ var e = event.srcElement; if( event.type == 'focus' ) { currClass = e.className; //if( currClass=='big-textarea' ) //e.className = 'big-textarea_focus'; //else //alert(currClass + '_focus'); if(currClass == '') e.className = 'input_focus'; else e.className = currClass + '_focus'; } else { e.className = currClass; } } // =========== Functions that gets the value of a key (strKey) from the GET query string. ========== function jsGet(strKey) { var strUrl, strOut, strKey; var strUrlArray, strRecArray; var startPos, endPos, x; strOut = ""; strUrl = window.location.href; startPos = strUrl.indexOf("?")+1; endPos = strUrl.length; strUrl = strUrl.substring(startPos, endPos); strUrlArray = strUrl.split("&"); for (x=0; x < strUrlArray.length; x++) { strRecArray = strUrlArray[x].split("="); if (strKey==strRecArray[0]){ strOut = strRecArray[1]; break; } } return strOut; }