PageSourceSearch

http://www.shopinbuffalo.com/merchant/scripts/nasn.js

js shopinbuffalo.com collected 2026-10-04 20:31:24 UTC 3,751 bytes, 138 lines download raw bytes

1// JScript File
2
3function galleryImageManager(thisCheckbox,thisForm,maxAllowed){
4
5    if(thisForm.imagesChecked.value == maxAllowed && thisCheckbox.checked == true){
6       alert("Sorry, you may select no more than " + maxAllowed + " images");
7    }
8    else{
9       previouslySelected = thisForm.imagesChecked.value;
10       if(thisCheckbox.checked == true){ 
11            thisForm.imagesChecked.value = (parseInt(previouslySelected) + 1);
12        }else{
13            thisForm.imagesChecked.value = (parseInt(previouslySelected) - 1);
14        }
15    }
16 // alert(thisForm.imagesChecked.value );
17}
18function openGallery(sItemCategory){
19
20   if(sItemCategory =="ft"){  //feature
21     var file ="ctlGallery.ascx?i=ft";
22   }else{  //this is a logo
23     var file ="ctlGallery.ascx?i=lg";
24   }
25
26    myRef = window.open(''+self.location,'mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
27
28}
29function setVisibility(id, visibility,state) {
30
31    if(state ==1 ){
32        document.getElementById(id).className = "infoDivVisible";
33    }else{
34         document.getElementById(id).className = "infoDivHidden";
35    }
36}
37function setVisibility2(id, visibility,state) {
38
39    if(state ==1 ){
40        document.getElementById(id).className = "infoDivVisible2";
41    }else{
42         document.getElementById(id).className = "infoDivHidden2";
43    }
44}
45
46function setVisibility3(id, visibility,state) {
47
48    if(state ==1 ){
49        document.getElementById(id).className = "infoDivVisible3";
50    }else{
51         document.getElementById(id).className = "infoDivHidden3";
52    }
53}
54
55function showLoading(){
56     document.getElementById("divLoading").style.visibility="visible"; 
57     document.getElementById("dGrab").style.visibility = "hidden";
58     
59}
60function byeBye(){
61/*   
62  if( document.getElementById("merchantRegistered").value =="Y" ){
63     window.open('bye.aspx','bybyeWindow','height=200,width=920'); 
64   }else{ 
65    //alert("don't show popup");
66   } 
67   */
68    //alert("don't show popup");
69}
70function selectImageChange(imageNumber, rbId, hiddenId){
71  
72  //CHECK THE IMAGE
73   document.getElementById(rbId).checked =true;
74 
75   var lastClicked = document.getElementById(hiddenId).value;
76   
77   //IF IT WAS THE LAST ONE CLICKED SUBMIT THE FORM
78   if(lastClicked == imageNumber){
79    document.forms[0].ctlImageManager_ctlWebPageImages_saveImages.click();
80   }
81   //SET THE LAST CLICKED AS THIS IMAGE
82   else{
83    document.getElementById(hiddenId).value = imageNumber;
84   }
85   
86}
87function previewSub(){
88   
89    window.document.previewSubcategory.submit();
90}
91function browserClosed(){
92
93    if(  document.getElementById("ctl00_browserClosed").value==0){
94         byeBye();
95    }else{
96      // alert("pass");
97    }
98}
99
100function userBrowserUnload(){
101  document.getElementById("ctl00_browserClosed").value=1; 
102}
103
104function resetBrowserCloser(){
105    document.getElementById("ctl00_browserClosed").value=0;
106}
107function checkHTTPPrefix(websiteTextbox){
108
109    var website = websiteTextbox.value;
110    var websiteHttp = website.substring(4,0).toLowerCase()
111    var websiteHttpS = website.substring(5,0).toLowerCase()
112
113    if(websiteHttp != "http"  && websiteHttpS !="https"){
114        websiteTextbox.value = "http://" + website;
115    }else{
116         websiteTextbox.value = website;
117    }
118    
119 
120}
121
122
123function browserClosed(){
124
125    if(  document.getElementById("ctl00_browserClosed").value==0){
126         byeBye();
127    }else{
128      // alert("pass");
129    }
130}
131
132function userBrowserUnload(){
133  document.getElementById("ctl00_browserClosed").value=1; 
134}
135
136function resetBrowserCloser(){
137    document.getElementById("ctl00_browserClosed").value=0;
138}

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.