1var EmptyGuid = '00000000-0000-0000-0000-000000000000'; 2 3if (typeof (browser) != 'undefined') { 4 if (browser == "ie" || browser == "mozilla") { 5 objDoc = document.documentElement; 6 } 7 else if (browser == "safari") { 8 objDoc = document.body; 9 } 10} 11 12function setImagesDimensions() { 13 // Get all image elements on the page 14 const images = document.querySelectorAll('img'); 15 16 // Loop through each image and get the width and height 17 images.forEach(img => { 18 const width = img.clientWidth; 19 const height = img.clientHeight; 20 21 if (width > 0 && height > 0) { 22 img.setAttribute("width", width); 23 img.setAttribute("height", height); 24 } 25 }); 26} 27 28function findAndReplaceURL(url) { 29 var urlToReturn = url; 30 var protocol = window.location.protocol; 31 if (url.toLowerCase().indexOf(document.domain.toLowerCase()) > 0) { 32 urlToReturn = url; 33 } 34 else if (url.toLowerCase().indexOf("http://") > -1 || url.toLowerCase().indexOf("https://") > -1) { 35 urlToReturn = url; 36 } 37 else { 38 var port = window.location.port != "" ? ":" + window.location.port : ""; 39 if ((protocol.toLowerCase() == "http:" && (port != 80 && port != "")) || (protocol.toLowerCase() == "https:" && port != 443)) 40 urlToReturn = protocol + '//' + document.domain + port + url; 41 else 42 urlToReturn = protocol + '//' + document.domain + url; 43 } 44 return urlToReturn; 45} 46 47function showLink(url, windowstate, features) { 48 url = unescape(findAndReplaceURL(url)); 49 if (windowstate == "_blank") { 50 window.open(url, windowstate); 51 } 52 else if (windowstate == "_blankPopUp") { 53 windowstate == "_blank" 54 window.open(url, windowstate, features); 55 } 56 else { 57 window.open(url, windowstate, features); 58 } 59} 60 61function Trim(s) { 62 // Remove leading spaces and carriage returns 63 if (s != null || s == "") { 64 while ((s.substring(0, 1) == ' ') || (s.substring(0, 1) == '\n') || (s.substring(0, 1) == '\r')) { 65 s = s.substring(1, s.length); 66 } 67 // Remove trailing spaces and carriage returns 68 while ((s.substring(s.length - 1, s.length) == ' ') || (s.substring(s.length - 1, s.length) == '\n') || (s.substring(s.length - 1, s.length) == '\r')) { 69 s = s.substring(0, s.length - 1); 70 } 71 return s; 72 } 73} 74if (typeof scrollAdjust == 'function') { 75 //calling the function to adjust the position of the toolbar on scrolling 76 setInterval('scrollAdjust()', 10); 77} 78 79function MM_preloadImages() { 80 var d = document; if (d.images) { 81 if (!d.MM_p) d.MM_p = new Array(); 82 var i, j = d.MM_p.length, a = MM_preloadImages.arguments; 83 for (i = 0; i < a.length; i++) 84 if (a[i].indexOf('#') != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 85 } 86} 87 88function MM_swapImgRestore() { 89 var i, x, a = document.MM_sr; 90 for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) 91 x.src = x.oSrc; 92} 93 94function MM_findObj(n, d) { 95 var p, i, x; 96 if (!d) d = document; 97 if ((p = n.indexOf('?')) > 0 && parent.frames.length) { 98 d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p); 99 } 100 if (!(x = d[n]) && d.all) x = d.all[n]; 101 for (i = 0; !x && i < d.forms.length; i++) 102 x = d.forms[i][n]; 103 for (i = 0; !x && d.layers && i < d.layers.length; i++) 104 x = MM_findObj(n, d.layers[i].document); 105 if (!x && d.getElementById) x = d.getElementById(n); 106 return x; 107} 108 109function MM_swapImage() { 110 var i, j = 0, x, a = MM_swapImage.arguments; 111 document.MM_sr = new Array; 112 for (i = 0; i < (a.length - 2); i += 3) 113 if ((x = MM_findObj(a[i])) != null) { 114 document.MM_sr[j++] = x; 115 if (!x.oSrc) x.oSrc = x.src; 116 x.src = a[i + 2]; 117 } 118} 119 120function stringformat(str) //created by Adams to format the string for localization needs 121{ 122 if (arguments.length == 0) 123 return null; 124 125 var str = arguments[0]; 126 for (var i = 1; i < arguments.length; i++) { 127 var re = new RegExp('\\{' + (i - 1) + '\\}', 'gm'); 128 str = str.replace(re, arguments[i]); 129 } 130 return (str); 131} 132 133var Data; 134function ProcessFormData(callBackId, doValidation, id, mode, clientId) { 135 abortFormRequest = false; 136 137 if (Data) {
138 alert(clRsMessage["PleaseSaveBeforeFormSubmit"]); 139 return false; 140 } 141 else { 142 var returnValue = true; 143 144 formProperties = eval(id + "_properties"); 145 formJSMessages = eval(id + "_jsMessages"); 146 formMode = mode; 147 if (formMode == "1") 148 fieldProperties = eval(id + "_Fields"); 149 150 controlIds = formProperties.ControlIds; 151 152 if (doValidation && typeof Validate_Form == 'function') 153 returnValue = Validate_Form(controlIds, id, clientId); 154 155 if (typeof Custom_Validate_Form == 'function') 156 returnValue = Custom_Validate_Form(returnValue, controlIds, fieldProperties, id, clientId); 157 158 if (returnValue) { 159 var xml = ""; 160 161 var controls = controlIds.split(','); 162 for (var i = 0; i < controls.length; i++) { 163 var control = document.getElementById(controls[i]); 164 if (control && GetAttribute(control, "includeInResults").toLowerCase() == "true") { 165 var value = ""; 166 var label = ""; 167 switch (GetAttribute(control, "objectType").toLowerCase()) { 168 case "textbox": 169 case "password": 170 value = control.value; 171 break; 172 case "hiddenfield": 173 if (GetAttribute(control, "specialValue") == "None" || GetAttribute(control, "specialValue") == "") 174 value = GetAttribute(control, "textValue"); 175 else 176 value = "@" + GetAttribute(control, "specialValue") + "@"; 177 break; 178 case "fileupload": 179 value = control.getAttribute("selectedFile"); 180 break; 181 case "datepicker": 182 dateControl = document.getElementById(controls[i] + "_txt"); 183 var dateFormat = GetAttribute(control, "customFormat"); 184 if (dateFormat == "" || dateFormat == "undefined") 185 dateFormat = GetAttribute(control, "format"); 186 value = dateControl.value + "^" + dateFormat; 187 break; 188 case "dropdown": 189 value = control[control.selectedIndex].value; 190 break; 191 case "textarea": 192 value = control.value; 193 break; 194 case "radiobutton": 195 case "checkbox": 196 value = ""; 197 listItems = control.getElementsByTagName("INPUT"); 198 for (var j = 0; j < listItems.length; j++) { 199 if (listItems[j].checked) { 200 if (value == "") 201 value = listItems[j].value; 202 else 203 value += "," + listItems[j].value; 204 } 205 } 206 break; 207 default: 208 value = ""; 209 break; 210 } 211 label = GetAttribute(control, "displayName"); 212 if (label == "" || label == undefined) 213 label = control.id; 214 215 xml += "<FormElement ID=\"" + GetAttribute(control, "objectId") + "\" controlId=\"" + control.id + "\" label=\"" + ChangeSpecialCharacters(label) + "\" value=\"" + ChangeSpecialCharacters(value) + "\" type=\"" + GetAttribute(control, "objectType").toLowerCase() + "\" />"; 216 } 217 } 218 xml = ChangeTokens(xml, id); 219 formsResponseXmlControlId = formProperties.HdnResponseXml; 220 //formsThankYouUrl = formProperties.ThankYouUrl; 221 //formsFormId = formProperties.FormId; 222 223 document.getElementById(formsResponseXmlControlId).value = ChangeHiddenControlCharacters(xml); 224 225 if (typeof FormContainer_SaveForm == 'function') 226 FormContainer_SaveForm(controlIds, xml); 227 228 eval(callBackId).callback('FormData', xml); 229 230 if (formProperties.SubmitImmediate == "true") 231 Forms_OnCallbackComplete(); 232 } 233 return false; 234 } 235} 236 237function ViewPollResults(callBackId) { 238 abortFormRequest = true; 239 eval(callBackId).callback('FormData'); 240 241 return false; 242} 243 244function PreventSubmit(callBackId, formId) { 245 alert(clRsMessage["YouHaveVotedAlready"]); 246 247 eval(callBackId).callback(formId); 248 249 return false; 250} 251 252function SubmitAgain(callBackId, formId) { 253 eval(callBackId).callback(formId); 254 255 return false; 256} 257 258function ChangeTokens(str, id) { 259 var replacedString = str; 260 if (replacedString != null) { 261 replacedString = replacedString.replace(new RegExp("@PageUrl@", "g"), formProperties.PageUrl); 262 replacedString = replacedString.replace(new RegExp("@PageTitle@", "g"), formProperties.PageTitle); 263 replacedString = replacedString.replace(new RegExp("@Date@", "g"), formProperties.Date); 264 replacedString = replacedString.replace(new RegExp("@IP@", "g"), formProperties.IP); 265 replacedString = replacedString.replace(new RegExp("@PageId@", "g"), formProperties.PageId); 266 } 267 return replacedString; 268} 269 270function ChangeSpecialCharacters(str) { 271 var replacedString = str; 272 if (replacedString != null) { 273 replacedString = replacedString.replace(new RegExp("&", "g"), "&"); 274 replacedString = replacedString.replace(new RegExp("<", "g"), "splt;"); 275 //replacedString = replacedString.replace(new RegExp("<", "g"), "<"); 276 replacedString = replacedString.replace(new RegExp(">", "g"), ">"); 277 replacedString = replacedString.replace(new RegExp("\"", "g"), """); 278 replacedString = replacedString.replace(new RegExp("'", "g"), "\\'"); 279 replacedString = replacedString.replace(new RegExp("\n", "g"), " "); 280 } 281 return replacedString; 282} 283 284function ChangeToOriginalCharacters(str) { 285 var replacedString = str; 286 if (replacedString != null) { 287 replacedString = replacedString.replace(new RegExp("&", "g"), "&"); 288 replacedString = replacedString.replace(new RegExp("<", "g"), "<"); 289 replacedString = replacedString.replace(new RegExp(">", "g"), ">"); 290 replacedString = replacedString.replace(new RegExp("&spamp;", "g"), "&"); 291 replacedString = replacedString.replace(new RegExp("&doublequot;", "g"), "\""); 292 replacedString = replacedString.replace(new RegExp("&splt;", "g"), "<"); 293 replacedString = replacedString.replace(new RegExp("splt;", "g"), "<"); 294 } 295 return replacedString; 296} 297 298function ChangeHiddenControlCharacters(str) { 299 var replacedString = str; 300 if (replacedString != null) { 301 replacedString = replacedString.replace(new RegExp("&", "g"), "&"); 302 replacedString = replacedString.replace(new RegExp("&spamp;", "g"), "&"); 303 replacedString = replacedString.replace(new RegExp("&doublequot;", "g"), "\""); 304 replacedString = replacedString.replace(new RegExp("&splt;", "g"), "<"); 305 replacedString = replacedString.replace(new RegExp("splt;", "g"), "<"); 306 } 307 return replacedString; 308} 309 310function FormContainer_OnCallbackComplete() { 311 if (typeof formProperties != "undefined" && typeof formProperties.DPFn != "undefined" && 312 typeof eval(formProperties.DPFn) == 'function') 313 eval(formProperties.DPFn)();
314 if (typeof IntializeFormDatePicker == 'function') 315 IntializeFormDatePicker(); 316 317 if (Data) { 318 //OnCallbackComplete(); 319 } 320 else if (!abortFormRequest) { 321 var responseXmlObj = document.getElementById(formProperties.HdnResponseXml); 322 var url = formProperties.ThankYouUrl; 323 if (url != "" && url.indexOf("://") == -1) 324 url = publicSiteUrl + formProperties.ThankYouUrl; 325 326 var responseXml = ""; 327 if (responseXmlObj) 328 responseXml = responseXmlObj.value; 329 330 if (formProperties.WatchId != '') 331 iAPPSTracker(formProperties.WatchId); 332 333 setTimeout(function () { 334 if (typeof FormContainer_OnBeforeFormSubmit == 'function') 335 FormContainer_OnBeforeFormSubmit(url, responseXml, formProperties.FormId, isSystemUser); 336 337 if (typeof FormContainer_OnFormSubmit == 'function') 338 FormContainer_OnFormSubmit(url, responseXml, formProperties.FormId, isSystemUser); 339 else if (url != "") 340 post(url, responseXml); 341 //window.location.href = url; 342 }, 10); 343 } 344} 345 346function post(url, responseXml) { 347 var temp = document.createElement("form"); 348 temp.action = url; 349 temp.method = "POST"; 350 temp.style.display = "none"; 351 352 var opt = document.createElement("textarea"); 353 opt.name = "hiddenResponseXml"; 354 opt.value = responseXml; 355 temp.appendChild(opt); 356 357 document.body.appendChild(temp); 358 temp.submit(); 359 360 return temp; 361} 362 363 364var diwindow; 365function UploadClientFile(iconImg) { 366 var uploadUrl = stringformat("/ContextMenuUserControls/UploadFormAttachment.aspx?controlId={0}", 367 iconImg.id.replace("_img", "")); 368 369 diwindow = dhtmlmodal.open('ClientFileUps', 'iframe', uploadUrl, '', ''); 370} 371 372function SetClientFilePath(controlId, value) { 373 document.getElementById(controlId).setAttribute("selectedFile", value); 374 document.getElementById(controlId + "_txt").value = value; 375} 376 377 378function CloseDialogPopup() { 379 parent.previewPopup.hide(); 380} 381 382function showPage(callBackId, pageNo) { 383 if (Data) { 384 alert(clRsMessage["PleaseSaveBeforePaging"]); 385 } 386 else { 387 UpdateClientValues("Paging", pageNo, callBackId); 388 389 eval(callBackId).callback('Paging', pageNo); 390 } 391 392 return false; 393} 394 395function sortCLList(callBackId, sortColumn, sortOrder) { 396 if (Data) { 397 alert(clRsMessage["PleaseSaveBeforeSorting"]); 398 } 399 else { 400 if (sortOrder.toLowerCase() == "asc") 401 sortOrder = "DESC"; 402 else 403 sortOrder = "ASC"; 404 405 UpdateClientValues("Sorting", sortColumn + " " + sortOrder, callBackId); 406 407 eval(callBackId).callback('Sorting', sortColumn + "^" + sortOrder); 408 } 409 410 return false; 411} 412 413function sortCLListByQuery(callBackId, sortQuery) { 414 if (Data) { 415 alert(clRsMessage["PleaseSaveBeforeSorting"]); 416 } 417 else { 418 UpdateClientValues("Sorting", sortQuery, callBackId); 419 420 eval(callBackId).callback('SortQuery', sortQuery); 421 } 422 423 return false; 424} 425 426function filterCLList(callBackId, filterQuery) { 427 if (Data) { 428 alert(clRsMessage["PleaseSaveBeforeFiltering"]); 429 } 430 else { 431 UpdateClientValues("Filtering", filterQuery, callBackId); 432 433 eval(callBackId).callback('Filtering', filterQuery); 434 } 435 436 return false; 437} 438 439function UpdateClientValues(operation, value, callBackId) { 440 var clientValue = document.getElementById(callBackId + "_ClientValues").value; 441 442 var filterValue = ""; 443 var sortValue = ""; 444 var pageNo = ""; 445 var arrClientVal = clientValue.split('^'); 446 if (arrClientVal.length == 3) { 447 pageNo = arrClientVal[0]; 448 sortValue = arrClientVal[1]; 449 filterValue = arrClientVal[2]; 450 } 451 switch (operation) { 452 case "Paging": 453 pageNo = value; 454 break; 455 case "Sorting": 456 sortValue = value; 457 break; 458 case "Filtering": 459 filterValue = value; 460 break; 461 default: 462 clientValue = ""; 463 break; 464 } 465 466 document.getElementById(callBackId + "_ClientValues").value = pageNo + "^" + sortValue + "^" + filterValue; 467} 468 469function ApplyDate(icon) { 470 return false; 471} 472 473function AssignDateControl(controlId, format) { 474 format = format.replace("yyyy", "yy"); 475 476 var yRange = '-10:+10'; 477 if ($("input#datePickerYearRange").length > 0) 478 yRange = "-" + $("input#datePickerYearRange").val() + ":+" + $("input#datePickerYearRange").val(); 479 480 $("#" + controlId).children('IMG').hide(); 481 $("#" + controlId).children('INPUT').datepicker({ 482 showOn: 'button', 483 buttonImage: $("#" + controlId).children('IMG').attr("src"), 484 buttonImageOnly: true, 485 buttonText: frmSelDateText, 486 dateFormat: format, 487 changeMonth: true, 488 changeYear: true, 489 yearRange: yRange 490 });
491} 492 493function IntializeFormDatePicker() { 494 if (typeof CustomDatepickerInit == 'function') 495 CustomDatepickerInit(); 496 else { 497 $('[objectType="datepicker"]').each(function (index) { 498 var format = $(this).attr("customFormat"); 499 if (!format || format == "") 500 format = $(this).attr("format"); 501 format = format.replace("yyyy", "yy"); 502 503 var yRange = '-10:+10'; 504 if ($("input#datePickerYearRange").length > 0) 505 yRange = "-" + $("input#datePickerYearRange").val() + ":+" + $("input#datePickerYearRange").val(); 506 507 $(this).children('IMG').hide(); 508 $(this).children('INPUT').datepicker({ 509 showOn: 'button', 510 buttonImage: $(this).children('IMG').attr("src"), 511 buttonImageOnly: true, 512 buttonText: frmSelDateText, 513 dateFormat: format, 514 changeMonth: true, 515 changeYear: true, 516 yearRange: yRange 517 }); 518 }); 519 } 520} 521function AddComment(txtNameId, txtEmailId, txtCommentsId, txtCaptchaId, txtParentId) { 522 var txtName = document.getElementById(txtNameId); 523 var txtEmail = document.getElementById(txtEmailId); 524 var txtComments = document.getElementById(txtCommentsId); 525 var txtCaptcha = document.getElementById(txtCaptchaId); 526 var txtParent = document.getElementById(txtParentId); 527 528 if (txtName && txtName.value == "") { 529 alert(rsMessage["EnterName"]); 530 txtName.focus(); 531 return false; 532 } 533 534 if (txtEmail) { 535 if (txtEmail.value == "") { 536 alert(rsMessage["EnterEmail"]); 537 txtEmail.focus(); 538 return false; 539 } 540 var CheckForEmail = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; 541 if (!CheckForEmail.test(txtEmail.value)) { 542 alert(rsMessage["ValidEmail"]); 543 txtEmail.focus(); 544 return false; 545 } 546 } 547 548 if (txtComments) { 549 value = txtComments.value.replace(new RegExp("[ \t\r\n]+$", "g"), ""); 550 551 if (value == "") { 552 alert(rsMessage["Comment"]); 553 txtComments.focus(); 554 return false; 555 } 556 } 557 558 if (txtCaptcha) { 559 if (txtCaptcha.value == "") { 560 alert(rsMessage["CaptchaText"]); 561 txtCaptcha.focus(); 562 return false; 563 } 564 if (document.getElementById(hiddenCaptchaId).value != txtCaptcha.value) { 565 alert(rsMessage["CaptchaCorrectText"]); 566 txtCaptcha.focus(); 567 return false; 568 } 569 } 570 else if (typeof grecaptcha == "object") { 571 var captchaElements = document.getElementsByClassName("g-recaptcha"); 572 573 if (captchaElements.length) { 574 var response = grecaptcha.getResponse(); 575 576 if (!response) { 577 alert(rsMessage["ReCaptchaText"]); 578 579 return false; 580 } 581 } 582 } 583 584 if (document.getElementById(hiddenNameId) && txtName) { 585 document.getElementById(hiddenNameId).value = txtName.value; 586 txtName.value = ""; 587 } 588 589 if (document.getElementById(hiddenEmailId) && txtEmail) { 590 document.getElementById(hiddenEmailId).value = txtEmail.value; 591 txtEmail.value = ""; 592 } 593 594 if (document.getElementById(hiddenCommentId) && txtComments) { 595 document.getElementById(hiddenCommentId).value = autolink(txtComments.value); 596 txtComments.value = ""; 597 } 598 599 if (document.getElementById(hiddenParentId) && txtParent) 600 document.getElementById(hiddenParentId).value = txtParent.value; 601 602 return true; 603} 604 605function autolink(s) { 606 var hlink = /\s(ht|f)tp:\/\/([^ \,\;\:\!\)\(\"\'\<\>\f\n\r\t\v])+/g; 607 return (s.replace(hlink, function ($0, $1, $2) { 608 s = $0.substring(1, $0.length); 609 // remove trailing dots, if any 610 while (s.length > 0 && s.charAt(s.length - 1) == '.') 611 s = s.substring(0, s.length - 1); 612 // add hlink 613 return " " + s.link(s); 614 } 615 ) 616 ); 617} 618 619function replyToComment(txtParentId, parentId) { 620 var txtParent = document.getElementById(txtParentId); 621 622 if (txtParent) 623 txtParent.value = parentId; 624 625 return true; 626} 627 628function initCommentBox(commentBox) { 629 if (commentBox) 630 commentBox.value = commentBox.value.replace(new RegExp("^[ \t\r\n]+", "g"), ""); 631 632 setCursor(commentBox, commentBox.value.length); 633 634 return false; 635} 636 637function setCursor(elem, caretPos) { 638 if (elem != null) { 639 if (elem.createTextRange) { 640 var range = elem.createTextRange(); 641 range.move('character', caretPos); 642 range.select(); 643 } 644 else { 645 if (elem.selectionStart) { 646 elem.focus(); 647 elem.setSelectionRange(caretPos, caretPos); 648 } 649 else 650 elem.focus(); 651 } 652 } 653} 654 655function MoveRatings(ratingId, containerId) { 656 657 var ratingElement = document.getElementById(ratingId); 658 var container = document.getElementById(containerId); 659 660 var allrating = ratingElement.innerHTML; 661 662 container.innerHTML = allrating; 663 664 ratingElement.parentNode.removeChild(ratingElement); 665 666} 667 668function showCommentsPage(pageNo) { 669 document.getElementById(hiddenCommentPageNoId).value = pageNo;
670 eval(document.getElementById(hiddenCommentEventReferenceId).value); 671 672 return false; 673} 674 675function sortCommentsPage(sortOrder) { 676 document.getElementById(hiddenCommentPageNoId).value = "1"; 677 document.getElementById(hiddenCommentSortOrderId).value = sortOrder; 678 eval(document.getElementById(hiddenCommentEventReferenceId).value); 679 680 return false; 681} 682function showBlogPage(pageNo) { 683 eval(stringformat(hdnBlogPagerReference, pageNo)); 684 685 return false; 686} 687function AddRating(hiddenValueControlId, value) { 688 if (document.getElementById(hiddenValueControlId) && value) { 689 document.getElementById(hiddenValueControlId).value = value; 690 } 691 692 return true; 693} 694 695 696function AddRatingForNonAutoSave(control, hiddenValueControlId, value, imagePath, seq, maxLevels, defaultImagePath) { 697 if (document.getElementById(hiddenValueControlId) && value) { 698 document.getElementById(hiddenValueControlId).value = value; 699 oldImage = imagePath; 700 var curCtrlId = control.getAttribute("id"); 701 var lastIndexOfSeq = curCtrlId.lastIndexOf(seq); 702 703 var curCtrlIDWithoutSeq = curCtrlId.substring(0, lastIndexOfSeq); 704 705 for (var k = seq; k > 0; k--) { 706 var prevLevelCtrlId = curCtrlIDWithoutSeq + k; 707 var prevLevel = document.getElementById(prevLevelCtrlId); 708 if (prevLevel != null) 709 prevLevel.src = imagePath; 710 } 711 712 for (var j = seq + 1; j <= maxLevels; j++) { 713 var nextLevelCtrlId = curCtrlIDWithoutSeq + j; 714 var nextLevel = document.getElementById(nextLevelCtrlId); 715 if (nextLevel != null) 716 nextLevel.src = defaultImagePath; 717 } 718 } 719 720 return false; 721} 722 723function PreventVoting() { 724 alert(rsMessage["PreventVoting"]); 725 return false; 726} 727 728 729var oldImage; 730function RatingOnHover(control, ratingLabelId, imageSrc, label) { 731 732 oldImage = control.src; 733 control.src = imageSrc; 734 document.getElementById(ratingLabelId).innerHTML = label; 735} 736 737function RatingOnHoverOut(control, ratingLabelId, imageSrc, label) { 738 control.src = oldImage; 739 document.getElementById(ratingLabelId).innerHTML = label; 740} 741 742 743function GetRatingsBreakdown(clientId) { 744 745} 746 747function CloseAddPostPopup(operation) { 748 if (operation.toLowerCase() == 'cancel') { 749 viewPopupWindow.hide(); 750 } 751 else if (operation.toLowerCase() == 'save') { 752 window.location.href = window.location.href; 753 } 754}
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.