var curid = 1; function changephoto(foto, bigfoto, id, mId) { var lnk = 'apS' + id; var curlnk = 'apS' + curid; var linkPref = '/image.php?img'; document.getElementById(curlnk).className = 'defLink'; document.getElementById(lnk).className = 'actLink'; if (curid != id) { curid = id; } if (mId) { linkPref = linkPref + 'm'; } document.getElementById("bigfotolink").href = linkPref + '=' + bigfoto; document.getElementById("bigfoto").src = '/images/' + foto; } function openPopup(url,name,width,height) { var popupWin = top[name]; if (popupWin != null && typeof(popupWin) == 'object' && !popupWin.closed) { if (popupWin.document.location.href != url) { popupWin.document.location.href = url; } } else { popupWin = window.open(url, name, 'width=' + width + ',height=' + height + ',status=yes,menubar=yes,resizable=yes,scrollbars=yes,left=' + String((screen.width-width)/2) + ',top=' + String((screen.height-height)/2)); } popupWin.focus(); } function closePopup(url) { if (opener) { if (opener.closed) window.open(url, ""); self.close(); return false; } return true; } function changeBorder(id, on, idText) { var imgDiv = 'imgDiv' + id; if(idText != null) { idText = idText + ' '; } if (on == '1') { document.getElementById(imgDiv).className = idText + 'onHover'; } else { document.getElementById(imgDiv).className = idText + 'onHoverOut'; } } var offId = null; function showTr(id) { if (offId != id) { curId = 'tr' + id; curP = 'p' + id; document.getElementById(curId).style.display = 'block'; document.getElementById(curP).style.textDecoration = 'underline'; if (offId != null) { document.getElementById('tr' + offId).style.display = 'none'; document.getElementById('p' + offId).style.textDecoration = 'none'; } offId = id; } else { curId = 'tr' + id; curP = 'p' + id; document.getElementById(curId).style.display = 'none'; document.getElementById(curP).style.textDecoration = 'none'; offId = null; } } var offPId = null; function showP(id) { if (offPId != id) { curId = 'p' + id; curP = 'h' + id; document.getElementById(curId).style.display = 'block'; document.getElementById(curP).style.textDecoration = 'underline'; if (offPId != null) { document.getElementById('p' + offPId).style.display = 'none'; document.getElementById('h' + offPId).style.textDecoration = 'none'; } offPId = id; } else { curId = 'p' + id; curP = 'h' + id; document.getElementById(curId).style.display = 'none'; document.getElementById(curP).style.textDecoration = 'none'; offPId = null; } } function hideAllTr(id, total) { //alert(total); for(i = 0; i <= total; i++ ) { curId = 'tr' + id[i]; document.getElementById(curId).style.display = 'none'; } /*id = id - 1; for(i = 0; i <= id; i++ ) { curId = 'tr' + i; document.getElementById(curId).style.display = 'none'; }*/ } /*-----------AddR------------*/ function changeBorder2(id, on, idText) { var imgDiv = 'imgDiv' + id; if(idText != null) { idText = idText + ' '; } if (on == '1') { document.getElementById(imgDiv).className = idText + 'imgBorderOver'; } else { document.getElementById(imgDiv).className = idText + 'imgBorderOut'; } }