1var newwindow = null; 2var popupWidth = 940; 3var popupHeight = 640; 4 5function CreateUserPopup(loginId) { 6 OpenPopup('/Popup/Login/CreateUser.aspx?loginid=' + loginId, 'CreateUser', popupWidth, popupHeight, 0); 7} 8 9function ForgotPasswordPopup() { 10 OpenPopup('/Popup/Login/ForgotPassword.aspx', 'ForgotPassword', popupWidth, popupHeight, 0); 11} 12 13function CreateHomePopup() { 14 OpenPopup('/Popup/HomeList/CreateHome.aspx', 'CreateHome', popupWidth, popupHeight, 1); 15} 16 17function EditHomePopup(id) { 18 OpenPopup('/Popup/HomeList/EditHome.aspx?id=' + id, 'EditHome', popupWidth, popupHeight, 1); 19} 20 21function ShowHomePopup(id) { 22 OpenPopup('/Popup/HomeList/Home.aspx?id=' + id, 'ShowHome', popupWidth, popupHeight, 1); 23} 24 25function ShowHomeImagePopup(id) { 26 OpenPopup('/Popup/HomeList/HomeImage.aspx?id=' + id, 'ShowHomeImage', 620, 620, 0); 27} 28 29function OpenPopup(sUrl, sName, iWidth, iHeight, iScrollbars) { 30 31 if ((newwindow != null) && (!newwindow.closed)) { 32 newwindow.close(); 33 } 34 35 var top = ($(window).height() - iHeight) / 2; 36 var left = ($(window).width() - iWidth) / 2; 37 newwindow = window.open(sUrl, sName, 'scrollbars = ' + iScrollbars + ', width = ' + iWidth + ', height = ' + iHeight + ', top = ' + top + ', left = ' + left); 38 newwindow.focus(); 39} 40 41function SetWatermark(txt, sName) { 42 if (txt.value == '') { 43 txt.setAttribute("class", sName); 44 txt.setAttribute("className", sName); 45 } 46 else { 47 RemoveWatermark(txt); 48 } 49} 50 51function RemoveWatermark(txt) { 52 txt.removeAttribute("class"); 53 txt.removeAttribute("className"); 54}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.