var div,icon,stt=0,newWindow; function sketchPop(sID, imageWidth, imageHeight) { newWindow = window.open("popup/sketch.php?sID=" + sID, "sketchPop" + sID, "width=" + (imageWidth*1) +",height=" + ((imageHeight*1)+80) + ",left=100,top=100"); newWindow.focus(); } // bitir galleryPopup function projectImagePop(pID, imageWidth, imageHeight) { if ((imageWidth*1) > 650 || (imageHeight*1) > 550) { hasScroll = "yes"; imageWidth = 650; imageHeight = 550; } else { hasScroll = "no"; } newWindow = window.open("popup/projectImage.php?pID=" + pID, "projectPop" + pID, "width="+imageWidth+",height="+ ((imageHeight*1)+35) +",left=50,top=50, scrollbars=" + hasScroll); newWindow.focus(); } // bitir galleryPopup function email(rID, rTitle,contactType) { newWindow = window.open("popup/email.php?rTitle=" + rTitle + "&rID=" + rID + "&contactType=" + contactType, "emailPop", "width=400,height=500,left=100,top=100"); newWindow.focus(); } // bitir galleryPopup function verifyEmail(f) { if (f.subject.value.length < 3 || f.subject.value.length > 250) { alert('Lütfen mesajınız için bir konu giriniz!'); return false; } else if (f.body.value.length < 3 || f.subject.value.length > 1000) { alert('Lütfen mesajınızı giriniz!'); return false; } else { return true; } } // verifyEmail() function verifySearch(f) { if (f.searchPattern.value.length < 2 || f.searchPattern.value.length > 40) { alert('Aranacak kelime 2 - 40 karakter uzunluğunda olmalıdır!'); return false; } else { return true; } } function validateLogin(f) { if (f.username.value.length < 4 || f.username.value.length > 15) { alert('Kullanıcı adınız 4-15 karakter uzunluğunda olmalıdır ve boşluk içermemelidir!'); return false; } else if (f.password.value.length < 4 || f.password.value.length > 10) { alert('Şifreniz 4-10 karakter uzunluğunda olmalıdır!'); return false; } else { return true; } } function imagePop(url, alttext, imageWidth, imageHeight) { newWindow = window.open("", "imagePop", "width=" + imageWidth + ", height=" + imageHeight + ", left=100, top=100"); newWindow.document.open(); newWindow.document.write('' + alttext + ''); newWindow.document.write(''+ alttext +''); newWindow.document.write(''); newWindow.document.close(); newWindow.focus(); } // bitir galleryPopup function sendToFriend(url) { window.open("popup/sendToFriend.php?url=" + url, 'sendToFriend', 'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=0, width=450, height=500'); } // bitir galleryPopup function bugReport(url) { window.open("popup/bugReport.php?url=" + url, 'bugReport', 'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=0, width=450, height=650'); } // bitir galleryPopup function toggle(targetId){ var openItems = document.getElementsByTagName("ul"); /*for (i=0;i for*/ if (document.getElementById) { target = document.getElementById(targetId); if (target.style.display == "none") { target.style.display = ""; } else { target.style.display = "none"; } } // if } function checkAll() { var checkboxes = document.getElementsByTagName("input"); var linkText = document.getElementById("checkAll"); for (i=0;i 0) { if(visibility == "hidden") { visibility = "visible"; display = ""; } else { visibility = "hidden"; display = "none"; } } // if } // with() } // toggleIntranetFolder() function POP(url, width, height, scrollbars) { p = window.open(url, "PPop" + (Math.round((Math.random()*9)+1)), "width=" + width + ",height=" + height + ",left=175,top=175, scrollbars=" + scrollbars); p.focus(); } function detailedsearch() { if(stt == 0) { document.getElementById("searchdetail").style.visibility = "visible"; document.getElementById("searchicon").src = "/i/ico_seacharrowup.gif"; stt = 1; } else if(stt == 1) { document.getElementById("searchdetail").style.visibility = "hidden"; document.getElementById("searchicon").src = "/i/ico_seacharrowdown.gif"; stt = 0; } }