PageSourceSearch

https://holidaysatsea.co.uk/frontjs/productdetails.js

js holidaysatsea.co.uk collected 2026-10-02 14:28:46 UTC 35,851 bytes, 1,056 lines download raw bytes

1function validSendmail(chkaccept)
2{
3if (chkaccept.checked == false) {
4    alert('Please select Checkbox to accept terms and conditions');
5    return false;
6    }
7}
8function validSugg(txtcomm) {
9    if (emptyField(txtcomm)) {
10        alert('Please enter your Suggestion/Opinion');
11        txtcomm.focus();
12        return false;
13    }
14}
15
16
17function validReduction(txtredamt, txtreason) {
18    if (emptyField(txtredamt)) {
19        alert('Please enter reduction amount');
20        txtredamt.focus();
21        return false;
22    }
23    if (!isNum(txtredamt.value)) {
24        alert('Please enter numeric reduction amount');
25        txtredamt.focus();
26        return false;
27    }
28    if (emptyField(txtreason)) {
29        alert('Please enter your reason for reduction');
30        txtreason.focus();
31        return false;
32    }
33}
34
35
36
37
38function validProseller(futradereg) {
39    if (futradereg.value == '') {
40        alert('Please Upload Trade Register');
41        futradereg.focus();
42        return false;
43    }
44}
45
46
47 function validfpResp(txtresp) {
48     if (emptyField(txtresp)) {
49         alert('Please Enter your response');
50         txtresp.focus();
51         return false;
52     }
53 }
54
55function validComm(txtquestion) {
56    if (emptyField(txtquestion)) {
57        alert('Please Enter your question');
58        txtquestion.focus();
59        return false;
60    }
61}
62
63function validReason(validReason) {
64    if (emptyField(validReason)) {
65        alert('Please Enter your Reason');
66        validReason.focus();
67        return false;
68    }
69}
70function validSendOfNum(txtnumsend) {
71    if (!emptyField(txtnumsend)) {
72        if (!isInt(txtnumsend.value)) {
73            alert('Please enter numeric number of send');
74            txtnumsend.focus();
75            return false;
76        }
77        if (txtnumsend.value <= 0) {
78            alert('Please enter valid number of send');
79            txtnumsend.focus();
80            return false;
81        }
82    }
83    else {
84        confirm("Are you sure, you want to set numer of send as generated automatically?");
85    }
86}
87
88function BookMarks() {
89    // alert(location.href);
90    if (document.all) window.external.AddFavorite(location.href, location.href);
91    else if (window.sidebar) window.sidebar.addPanel(location.href, location.href, '');
92}
93
94function print_reports() {
95    var win = window.print();
96    return false;
97}
98
99function validEmail(txtto, txtfrom) {
100    if (emptyField(txtto)) {
101        alert('Please enter To (E-mail ID)');
102        txtto.focus();
103        return false;
104    }
105    if (!validEmailId(txtto.value)) {
106        alert('Please enter valid To (E-mail ID)');
107        txtto.focus();
108        return false;
109    }
110    if (emptyField(txtfrom)) {
111        alert('Please enter From (E-mail ID)');
112        txtfrom.focus();
113        return false;
114    }
115    if (!validEmailId(txtfrom.value)) {
116        alert('Please enter valid From (E-mail ID)s');
117        txtfrom.focus();
118        return false;
119    }
120}
121
122function validFaq(txtfaq, txtemail) {
123    if (emptyField(txtfaq)) {
124        alert('Please enter Your Question');
125        txtfaq.focus();
126        return false;
127    }
128    if (emptyField(txtemail)) {
129        alert('Please enter To E-mail ID');
130        txtemail.focus();
131        return false;
132    }
133    if (!validEmailId(txtemail.value)) {
134        alert('Please enter valid To E-mail ID');
135        txtemail.focus();
136        return false;
137    }
138}
139
140
141function winopenLegalGeneralCond() {
142    window.open("legalgeneralcondition.aspx", "mywindow", "toolbar=0,directories=0,location=0,resizable=1,width=500,height=450,scrollbars=yes");
143}
144
145function winopenPrdimg(photo) {
146    window.open("viewphoto.aspx?photo=" + photo, "mywindow", "toolbar=0,directories=0,location=0,resizable=1,width=350,height=250");
147}
148
149function winopenPrdimg1(photo) {
150    window.open("viewphoto.aspx?vprdid=" + photo, "mywindow", "toolbar=0,directories=0,location=0,resizable=1,width=350,height=250");
151}
152function winclose() {
153    window.close();
154}
155
156function winopenMainimg(prdid) {
157    window.open("ImageView.aspx?prdid=" + prdid, "mywindow", "toolbar=0,directories=0,location=0,resizable=1,width=350,height=250");
158}
159
160function windopenPrddesc(proid) {
161    window.open("productdescription.aspx?proid=" + proid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=500");
162}
163
164
165function winOpnBuyerDetail(bid) {
166    window.open("buyerdtls.aspx?bid=" + bid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=700,height=500");
167}
168
169
170function winopenCmplogo(photo) {
171    window.open("viewcmplogo.aspx?photo=" + photo, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=350,height=250");
172}
173
174function winopenPrdreview(pid) {
175    window.open("giveprdreview.aspx?proid=" + pid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
176}
177
178function winopenPrdreadreview(pid) {
179    window.open("readprdreview.aspx?proid=" + pid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=600");
180}
181
182
183function winopenCmpreadreview(cmp) {
184    window.open("readcmpreview.aspx?cmp=" + cmp, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=600");
185}
186
187
188function winopenCmpreview(comp, vprdid) {
189    window.open("givecmpreview.aspx?vprdid=" + vprdid + "&comp=" + comp, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
190}
191
192
193
194function winopenCmpreview1(comp, vprdid, subcid) {
195    window.open("givecmpreview.aspx?flg=oprbm&subcid=" + subcid + "&vprdid=" + vprdid + "&comp=" + comp, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
196}
197
198
199function winopenvndReply(subcid) {
200    window.open("viewreply.aspx?flg=vnd&subcid=" + subcid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
201}
202
203
204
205function winopenbyrReply(subcid) {
206    window.open("viewreply.aspx?flg=byr&subcid=" + subcid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
207}
208
209
210function winopenReplyone(subcid,flg) {
211    window.open("viewvenderreply.aspx?flg=" + flg + "&subcid=" + subcid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
212}
213
214
215
216function winopenbuyerReply(subcid, sessionid, flg) {
217    window.open("viewbuyerreply.aspx?KeyID=" + sessionid + "&flg=" + flg + "&subcid=" + subcid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
218}
219
220function winopnVendercomm(scid) {
221    window.open("viewVenderComment.aspx?scid=" + scid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=275");
222}
223
224
225
226function windopenPrdrep(proid) {
227    window.open("reportabtprd.aspx?proid=" + proid, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=400");
228}
229
230//windopenScoretable
231function windopenScoretable() {
232    window.open("scoretable.aspx", "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=400,height=275");
233}
234
235function windopenBlockUserREply() {
236    window.open("blacklistreply.aspx", "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=400,height=275");
237}
238
239function winopenAddress(comp) {
240    window.open("buyeradd.aspx?comp=" + comp, "mywindow", "toolbar=0,directories=0,location=0,scrollbars=1,resizable=1,width=600,height=400");
241}
242
243function winopenCollimg(collid) {
244    window.open("viewphoto.aspx?collid=" + collid, "mywindow", "toolbar=0,directories=0,location=0,resizable=1,width=350,height=250");
245}
246
247function winOpenpost() {
248    window.open("postingdtls.aspx", "mywindow", "toolbar=0,directories=0,location=0,resizable=1,width=750,height=200");
249}
250
251function winOpenreceived() {
252    window.open("recieveddtls.aspx", "mywindow", "toolbar=0,directories=0,location=0,resizable=1,width=675,height=550");
253}
254
255
256function openAddinfo(traddinfo,AddInfo) {
257
258    var strdispl
259    strdispl = (document.getElementById(traddinfo).display == '' || document.getElementById(traddinfo).display == 'block') ? 'none' : 'block';
260    document.getElementById(traddinfo).style.display = (document.getElementById(traddinfo).style.display == '' || document.getElementById(traddinfo).style.display == 'block') ? 'none' : 'block';
261    if (document.getElementById) {
262        document.getElementById(AddInfo).firstChild.nodeValue = (document.getElementById(AddInfo).firstChild.nodeValue == 'Additional Info') ? 'Click for Additional Info' : 'Additional Info';
263    }
264    else
265    {
266        var str;
267        str = (document.getElementById(AddInfo).innerText == 'Click for Additional Info') ? 'Click for Additional Info' : 'Additional Info';
268        document.getElementById(AddInfo).innerText = str;  //(document.getElementById(AddInfo).innerText == 'Click for Additional Info') ? 'Click for Additional Info' : 'Additional Info';
269    }    
270       
271}
272
273function checkallpage() {
274    if (document.getElementById("ctl00_ContentPlaceHolder1_chkHeader").checked == true) {
275        for (var i = 0; i < document.aspnetForm.length; i++) {
276            if (document.aspnetForm.elements[i].type == "checkbox") {
277                document.aspnetForm.elements[i].checked = true;
278            }
279        }
280    }
281    else {
282        for (var i = 0; i < document.aspnetForm.length; i++) {
283            if (document.aspnetForm.elements[i].type == "checkbox") {
284                document.aspnetForm.elements[i].checked = false;
285            }
286        }
287    }
288}
289
290function check() {
291    var con = 0;
292    for (var i = 0; i < document.aspnetForm.length; i++) {
293        if (document.aspnetForm.elements[i].type == "checkbox") {
294            if (document.aspnetForm.elements[i].checked == true) {
295                con++;
296            }
297        }
298    }
299    if (con == 0) 
300    {
301        alert('Please select atleast one record');
302        return false;
303    }
304}
305
306function checkallpage1() {
307    if (document.getElementById("ctl00_ContentPlaceHolder1_chkHeader1").checked == true) {
308        for (var i = 0; i < document.aspnetForm.length; i++) {
309            if (document.aspnetForm.elements[i].type == "checkbox") {
310                document.aspnetForm.elements[i].checked = true;
311            }
312        }
313    }
314    else {
315        for (var i = 0; i < document.aspnetForm.length; i++) {
316            if (document.aspnetForm.elements[i].type == "checkbox") {
317                document.aspnetForm.elements[i].checked = false;
318            }
319        }
320    }
321}
322
323function validReview(ddlnotes, txtCom) {
324    if (ddlnotes.value == 0) {
325        alert('please select Note');
326        ddlnotes.focus();
327        return false;
328    }
329    if (emptyField(txtCom)) {
330        alert('Please enter Comments');
331        txtCom.focus();
332        return false;
333    }
334}
335
336function validReport(txtCom) {
337    if (emptyField(txtCom)) {
338        alert('Please enter Comments');
339        txtCom.focus();
340        return false;
341    }
342}
343
344
345
346
347function validCat(ddlCat) 
348{
349    if (ddlCat.value == 0) {
350        alert('Please Select Category');
351        ddlCat.focus();
352        return false;
353    }
354}
355
356function validColl(txtname, txtDis) {
357    var str;
358    str = document.getElementById("hdsmids").value;
359    var val = '';
360    var price = '';
361    var arrstr = str.split(",");
362    var con = 0;
363    for (i = 0; i < arrstr.length; i++) {
364        var txtids = 'txtsm' + arrstr[i];
365               // alert(txtids);
366       
367        var chkids = 'chksm' + arrstr[i];
368        if (document.getElementById(chkids).checked == true) {
369            if (emptyField(document.getElementById(txtids))) {
370                alert('Please enter Posting Mode Value');
371                document.getElementById(txtids).focus();
372                return false;
373            }
374            if (!isInt1(document.getElementById(txtids).value)) {
375                alert('Please enter numeric Posting Mode Value');
376                document.getElementById(txtids).focus();
377                return false;
378            }
379            if (document.getElementById(txtids).value < 0) {
380                alert('Please enter numeric Posting Mode Value greater than zero');
381                document.getElementById(txtids).focus();
382                return false;
383            }
384            con = 1;
385            val += arrstr[i] + ",";
386            price += document.getElementById(txtids).value + ",";
387        }
388    }
389    if (con == 0) {
390        alert('Please Select Atlease on posting mode');
391        return false;
392    }
393////    alert(price);
394////    alert(val);
395    document.getElementById("ctl00_ContentPlaceHolder1_hdsmprice").value = price;
396    document.getElementById("ctl00_ContentPlaceHolder1_hdsmidsv").value = val;
397    
398    if (emptyField(txtname)) {
399        alert('Please Enter Collection Name');
400        txtname.focus();
401        return false;
402    }
403    if (emptyField(txtDis)) {
404        alert('Please Enter Discount Amount');
405        txtDis.focus();
406        return false;
407    }
408    if (!isInt1(txtDis.value)) {
409        alert('Please Enter Valid Discount Amount');
410        txtDis.focus();
411        return false;
412    }
413    if (txtDis.value <= 0) {
414        alert('Please enter Discount Amount Value greater than zero');
415        document.getElementById(txtids).focus();
416        return false;
417    }
418////    if (!emptyField(fcimg)) {
419////        if (!chkExtension(fcimg)) {
420////            alert("Only JPG/JPEG/GIF type logo files are allowed.\n Please select a valid file type.")
421////            fcimg.focus();
422////            fcimg.select();
423////            return false;
424////        }
425////    }
426}
427
428function validLowprice(txtnewprice) {
429
430    if (emptyField(txtnewprice)) {
431        alert('please enter product price');
432        txtnewprice.focus();
433        return false;
434    }
435    if (!isNum(txtnewprice.value)) {
436        alert('please enter Numeric product price');
437        txtnewprice.focus();
438        return false;
439    }
440}
441
442
443function validQuestion(txtquestion) {
444
445    if (emptyField(txtquestion)) {
446        alert('Please enter your question');
447        txtquestion.focus();
448        return false;
449    }
450}
451
452function chngOpt(rbtopt) {
453    var con;
454    con = 0;
455    for (var i = 0; i < document.aspnetForm.length; i++) {
456        if (document.aspnetForm.elements[i].type == "radio") {
457            if (document.aspnetForm.elements[i].checked == true) {
458                con = 1;
459                if (document.aspnetForm.elements[i].value == "1") {
460                    document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "None";
461                    document.getElementById("ctl00_ContentPlaceHolder1_trsend").style.display = "None"; 
462                }
463                else {
464                    if (document.aspnetForm.elements[i].value == "2") {
465                        document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "Block";
466                        if (document.getElementById("ctl00_ContentPlaceHolder1_hdselectopt").value == "1") {
467                            document.getElementById("ctl00_ContentPlaceHolder1_trsend").style.display = "Block";
468                        }
469                        else {
470                            document.getElementById("ctl00_ContentPlaceHolder1_trsend").style.display = "None";
471                        }
472                    } 
473                }
474            }
475        }
476    }
477}
478
479
480function chngOpt1(rbtopt) {
481    var con;
482    con = 0;
483    for (var i = 0; i < document.aspnetForm.length; i++) {
484        if (document.aspnetForm.elements[i].type == "radio") {
485            if (document.aspnetForm.elements[i].checked == true) {
486                con = 1;
487                if (document.aspnetForm.elements[i].value == "1") {
488                    document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "None";
489                }
490                else {
491                    if (document.aspnetForm.elements[i].value == "2") {
492                        document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "Block";
493                    }
494                }
495            }
496        }
497    }
498}
499
500function validRefred1(rbtopt, txtcom, txtredprice) {
501    var con = 0;
502    var sel = 0;
503    for (var i = 0; i < document.aspnetForm.length; i++) {
504        if (document.aspnetForm.elements[i].type == "radio") {
505            if (document.aspnetForm.elements[i].checked == true) {
506                con = 1;
507                if (document.aspnetForm.elements[i].value == "1") {
508                    document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "None";
509                    sel = 1;
510                }
511                else {
512                    if (document.aspnetForm.elements[i].value == "2") {
513                        document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "Block";
514                        sel = 2;
515                    }
516                }
517            }
518        }
519    }
520    if (con == 0) {
521        alert("Please select Refund/Reduction ");
522    }
523    if (emptyField(txtcom)) {
524        alert('Please enter your comments');
525        txtcom.focus();
526        return false;
527    }
528    if (sel == 2) {
529        if (emptyField(txtredprice)) {
530            alert('Please enter reduction amount');
531            txtredprice.focus();
532            return false;
533        }
534        if (!isNum(txtredprice.value)) {
535            alert('Please enter Numeric reduction amount');
536            txtredprice.focus();
537            return false;
538        }
539    }
540}
541
542
543function validvenderReplyone(txtdate, txtcom, txtnumsend) {
544    if (document.getElementById("ctl00_ContentPlaceHolder1_hdselectopt").value != "3") {
545         if (emptyField(txtdate)) {
546            alert('Please Enter date');
547            txtdate.focus();
548            return false;
549        }
550        if (isDate1(txtdate, "dd/mm/yyyy")) {
551           // alert('Please enter valid date');
552            //txtDOB.focus();
553            return false;
554        }
555    }
556    
557        if (document.getElementById("ctl00_ContentPlaceHolder1_hdselectopt").value == "1") {
558            if (emptyField(txtnumsend)) {
559                alert('Please Enter number of send');
560                txtnumsend.focus();
561                return false;
562            }
563            if (!isInt(txtnumsend.value)) {
564                alert('Please enter numeric number of send');
565                txtnumsend.focus();
566                return false;
567            }
568            if (txtnumsend.value <= 0) {
569                alert('Please enter valid number of send');
570                txtnumsend.focus();
571                return false;
572            }
573        }
574	if (emptyField(txtcom)) {
575	    alert('Please Enter your comments');
576	    txtcom.focus();
577	    return false;
578	}
579}
580
581function validRefred(rbtopt, txtcom, txtredprice) {
582    var con = 0;
583    var sel = 0;
584    for (var i = 0; i < document.aspnetForm.length; i++) {
585        if (document.aspnetForm.elements[i].type == "radio") {
586            if (document.aspnetForm.elements[i].checked == true) {
587                con = 1;
588                if (document.aspnetForm.elements[i].value == "1") {
589                    document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "None";
590                    sel = 1;
591                }
592                else {
593                    if (document.aspnetForm.elements[i].value == "2") {
594                        document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "Block";
595                        sel = 2;
596                    }
597                }
598            }
599        }
600    }
601    if (con == 0) {
602        alert("Please select Refund/Reduction ");
603    }
604    if (emptyField(txtcom)) {
605        alert('Please enter your comments');
606        txtcom.focus();
607        return false;
608    }
609    if (sel == 2) {
610        if (emptyField(txtredprice)) {
611            alert('Please enter reduction amount');
612            txtredprice.focus();
613            return false;
614        }
615        if (!isNum(txtredprice.value)) {
616            alert('Please enter Numeric reduction amount');
617            txtredprice.focus();
618            return false;
619        }
620    }
621}
622
623
624function validAns(txtans) {
625    if (emptyField(txtans)) {
626        alert('Please enter your answer');
627        txtans.focus();
628        return false;
629    }
630}
631
632function validvenderReply(txtreply) {
633    if (emptyField(txtreply)) {
634        alert('Please enter your reply (answer)');
635        txtreply.focus();
636        return false;
637    }
638}
639
640
641function validSearchkey(txtpg) 
642{
643    if (emptyField(txtpg)) {
644        alert('Please enter page number');
645        txtpg.focus();
646        return false;
647    }
648    if (!isInt(txtpg.value)) {
649        alert('Please enter Numeric page number');
650        txtpg.focus();
651        return false;
652    }
653    if (txtpg.value <= 0){
654        alert('Please enter valid page number');
655        txtpg.focus();
656        return false;
657    }
658    var hd = Number(document.getElementById("hdtotalpg").value);
659    var pg = Number(txtpg.value);
660//    alert(hdtotalpg);
661//    alert(txtpg);
662//    return false;
663    
664    if (hd < pg) {
665        alert('Please enter valid page number');
666        txtpg.focus();
667        return false;
668    }
669}
670
671function validAdvSearchkey(txtpg) {
672    //alert(document.getElementById("ctl00_ContentPlaceHolder1_hdtotalpg").value);
673    if (emptyField(txtpg)) {
674        alert('Please enter page number');
675        txtpg.focus();
676        return false;
677    }
678    if (!isInt(txtpg.value)) {
679        alert('Please enter Numeric page number');
680        txtpg.focus();
681        return false;
682    }
683
684    var pg = txtpg.value;
685    //alert(pg);
686    if (pg == 0) {
687        alert('Please enter valid page number for 0');
688        txtpg.focus();
689        return false;
690    }
691    //alert(document.getElementById("ctl00_ContentPlaceHolder1_hdtotalpg").value);
692    if (document.getElementById("ctl00_ContentPlaceHolder1_hdtotalpg").value < pg) {
693        alert('Please enter valid page number');
694        txtpg.focus();
695        return false;
696    }
697}
698
699function ajaxFunction(txtPrice, hdprdcat, hdprdsubcat, hdprdssubcat, hdprdadminprc, proid, vprdid, Flag, hdsmprice) {
700    document.getElementById("tdbtn").display = 'none';
701    var xmlHttp;
702    try {
703        // Firefox, Opera 8.0+, Safari
704        xmlHttp = new XMLHttpRequest();
705    }
706    catch (e) {
707        // Internet Explorer
708        try {
709            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
710        }
711        catch (e) {
712            try {
713                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
714            }
715            catch (e) {
716                alert("Your browser does not support AJAX!");
717                return false;
718            }
719        }
720    }
721    xmlHttp.onreadystatechange = function() {
722        if (xmlHttp.readyState == 4) {
723            document.getElementById("divprice").innerHTML = xmlHttp.responseText;
724            document.getElementById("divsellprice").innerHTML = document.getElementById("hdsellprice").value;
725            document.getElementById("divport").innerHTML = " + " + document.getElementById("hdminval").value;
726            document.getElementById("divcom").innerHTML = " - " + document.getElementById("hdtotalComm").value;
727            document.getElementById("divnet").innerHTML = document.getElementById("hdnetprice").value;
728            document.getElementById("tdbtn").display = 'block';
729            //////            var s, ss;
730            //////            var s = xmlHttp.responseText;
731            //////            var ss = s.split('#');
732            //////            document.getElementById("divprice").innerHTML = ss[0];
733            //////            document.getElementById("lblprice").innerHTML = ss[1];
734            //////            document.getElementById("lblpost").innerHTML = ss[2];
735            //////            document.getElementById("lblcomm").innerHTML = ss[3];
736            //////            document.getElementById("lblnet").innerHTML = ss[4];
737            ////            changValue();
738        }
739    }
740    xmlHttp.open("GET", "getsmode.aspx?txtPrice=" + txtPrice + "&hdprdcat=" + hdprdcat + "&hdprdsubcat=" + hdprdsubcat + "&hdprdssubcat=" + hdprdssubcat + "&hdprdadminprc=" + hdprdadminprc + "&Flag=" + Flag + "&vprdid=" + vprdid + "&proid=" + proid + "&hdsmprice=" + hdsmprice, true);
741    xmlHttp.send(null);
742}
743
744
745function changValue() {
746    alert('outer');
747    var str;
748    str = document.getElementById("hdsmids").value;
749    var val = '';
750    var price = '';
751    var arrstr = str.split(",");
752    var con = 0;
753    for (i = 0; i < arrstr.length; i++) {
754        alert('in');
755        var txtids = 'txtsm' + arrstr[i];
756        //        alert(txtids);
757        if (emptyField(document.getElementById(txtids))) {
758            alert('Please enter Posting Mode Value');
759            document.getElementById(txtids).focus();
760            return false;
761        }
762        if (!isInt1(document.getElementById(txtids).value)) {
763            alert('Please enter numeric Posting Mode Value');
764            document.getElementById(txtids).focus();
765            return false;
766        }
767        if (document.getElementById(txtids).value < 0) {
768            alert('Please enter numeric Posting Mode Value greater than zero');
769            document.getElementById(txtids).focus();
770            return false;
771        }
772        if (document.getElementById(txtids).value > 350) {
773            alert('Please enter numeric Posting Mode Value greater than zero');
774            document.getElementById(txtids).focus();
775            return false;
776        }
777        var chkids = 'chksm' + arrstr[i];
778        if (document.getElementById(chkids).checked == true) {
779            con = 1;
780            val += arrstr[i] + ",";
781            price += document.getElementById(txtids).value + ",";
782        }
783    }
784    alert(price);
785    document.getElementById("hdsmprice").value = price;
786}
787
788
789function chkprice(txtprice) {
790    if (emptyField(txtprice)) {
791        alert('please enter posting mode price');
792        txtprice.focus();
793        return false;
794    }
795    if (!isNum(txtprice.value)) {
796        alert('please enter Numeric posting mode price');
797        txtprice.focus();
798        return false;
799    }
800}
801
802
803function ajaxFunctionSmBuyer(lblvaddinfoid, rbtsmode, totalrec, lblsubcartid, lblvid) {
804////    alert(lblvaddinfoid);
805////    alert(rbtsmode);
806////    alert(totalrec);
807    var con = 0;
808    for (var i = 0; i < totalrec; i++) {
809        var rbtid = rbtsmode + "_" + i;
810        if (document.getElementById(rbtid).checked == true) {
811            document.getElementById("hdsmode").value = document.getElementById(rbtid).value;
812            con = 1;
813        }
814    }
815    if (con == 1){
816        var xmlHttp;
817        try {
818            // Firefox, Opera 8.0+, Safari
819            xmlHttp = new XMLHttpRequest();
820        }
821        catch (e) {
822            // Internet Explorer
823            try {
824                xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
825            }
826            catch (e) {
827                try {
828                    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
829                }
830                catch (e) {
831                    alert("Your browser does not support AJAX!");
832                    return false;
833                }
834            }
835        }
836        xmlHttp.onreadystatechange = function() {
837            if (xmlHttp.readyState == 4) {
838                var s, ss;
839                var s = xmlHttp.responseText;
840                var ss = s.split('#');
841                ////alert(ss[0]);
842                ////alert(ss[1]);
843                var totalrec = document.getElementById("hdtotrec").value;
844                var smids = 'dtgridCart_ctl0' + totalrec + '_divsmtotal';
845                ////                alert(smids);
846                document.getElementById(smids).innerHTML = ss[0] + ' ' + ss[2];
847                document.getElementById("divfinal").innerHTML = ss[0] + ' ' + ss[1];
848                document.getElementById("hdtotalsmode").value = ss[2];
849                document.getElementById("hdgtotal").value = ss[1];
850            }
851        }
852        xmlHttp.open("GET", "getbuyersmode.aspx?lblvaddinfoid=" + lblvaddinfoid + "&vprdsmodeid=" + document.getElementById("hdsmode").value + "&hdsubtotal=" + document.getElementById("hdgtotal").value + "&hdtotalsmode=" + document.getElementById("hdtotalsmode").value + "&lblsubcartid=" + lblsubcartid + "&lblvid=" + lblvid, true);
853        xmlHttp.send(null);
854    }
855    else{
856        alert("select atleast one post mode");
857        return false;
858    }
859
860}
861
862
863function ajaxFunctionCollextionlist(txtDis, hdprdadminprc, Flag) {
864    var xmlHttp;
865    try {
866        // Firefox, Opera 8.0+, Safari
867        xmlHttp = new XMLHttpRequest();
868    }
869    catch (e) {
870        // Internet Explorer
871        try {
872            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
873        }
874        catch (e) {
875            try {
876                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
877            }
878            catch (e) {
879                alert("Your browser does not support AJAX!");
880                return false;
881            }
882        }
883    }
884    xmlHttp.onreadystatechange = function() {
885        if (xmlHttp.readyState == 4) {
886            //document.getElementById("ctl00_ContentPlaceHolder1_divprice").innerHTML = xmlHttp.responseText;
887            var s, ss;
888            var s = xmlHttp.responseText;
889            var ss = s.split('#');
890////            alert(ss[0]);
891////            alert(ss[1]);
892            document.getElementById("ctl00_ContentPlaceHolder1_divprice").innerHTML = ss[0];
893            document.getElementById("ctl00_ContentPlaceHolder1_div1").innerHTML = ss[1];
894        }
895    }
896    xmlHttp.open("GET", "getsmodecoll.aspx?txtDis=" + txtDis + "&hdprdadminprc=" + hdprdadminprc + "&Flag=" + Flag, true);
897    xmlHttp.send(null);
898}
899
900
901
902
903function ajaxFunctionSmBuyerColl(collectionid, rbtsmode, totalrec, lblcurrsmode) {
904    ////    alert(lblvaddinfoid);
905    ////    alert(rbtsmode);
906    ////    alert(totalrec);
907    var con = 0;
908    for (var i = 0; i < totalrec; i++) {
909        var rbtid = rbtsmode + "_" + i;
910        if (document.getElementById(rbtid).checked == true) {
911            document.getElementById("hdsmodecoll").value = document.getElementById(rbtid).value;
912            con = 1;
913        }
914    }
915    if (con == 1) {
916        var xmlHttp;
917        try {
918            // Firefox, Opera 8.0+, Safari
919            xmlHttp = new XMLHttpRequest();
920        }
921        catch (e) {
922            // Internet Explorer
923            try {
924                xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
925            }
926            catch (e) {
927                try {
928                    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
929                }
930                catch (e) {
931                    alert("Your browser does not support AJAX!");
932                    return false;
933                }
934            }
935        }
936        xmlHttp.onreadystatechange = function() {
937            if (xmlHttp.readyState == 4) {
938                var s, ss;
939                var s = xmlHttp.responseText;
940                var ss = s.split('#');
941                ////alert(ss[0]);
942                ////alert(ss[1]);
943                //var totalrec = document.getElementById("hdtotrec").value;
944                var smids = 'dtgridColle_ctl0' + totalrec + '_divsmtotal';
945                             alert(smids);
946                document.getElementById(smids).innerHTML = ss[0] + ' ' + ss[2];
947                document.getElementById("divfinal").innerHTML = ss[0] + ' ' + ss[1];
948                document.getElementById("hdtotalsmodeColl").value = ss[2];
949                document.getElementById("hdgtotal").value = ss[1];
950            }
951        }
952        xmlHttp.open("GET", "getbuyersmodecoll.aspx?collectionid=" + collectionid + "&vprdsmodecollid=" + document.getElementById("hdsmodecoll").value + "&hdsubtotal=" + document.getElementById("hdsubtotalColl").value + "&hdtotalsmode=" + document.getElementById("hdgtotal").value, true);
953        xmlHttp.send(null);
954    }
955    else {
956        alert("select atleast one post mode");
957        return false;
958    }
959
960}
961
962
963function selectOpt1() {
964    document.getElementById("ctl00_ContentPlaceHolder1_tropt").style.display = "None";
965    document.getElementById("ctl00_ContentPlaceHolder1_trcomm").style.display = "Block";
966    document.getElementById("ctl00_ContentPlaceHolder1_trbtn").style.display = "Block";
967    document.getElementById("ctl00_ContentPlaceHolder1_hdselectopt").value = "1"
968    document.getElementById("ctl00_ContentPlaceHolder1_trsend").style.display = "Block";
969    document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "Block";
970}
971
972function selectOpt2() {
973    document.getElementById("ctl00_ContentPlaceHolder1_tropt").style.display = "None";
974    document.getElementById("ctl00_ContentPlaceHolder1_trcomm").style.display = "Block";
975    document.getElementById("ctl00_ContentPlaceHolder1_trbtn").style.display = "Block";
976    document.getElementById("ctl00_ContentPlaceHolder1_hdselectopt").value = "2"
977    document.getElementById("ctl00_ContentPlaceHolder1_trsend").style.display = "None";
978    document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "Block";
979}
980
981function selectOpt3() {
982    document.getElementById("ctl00_ContentPlaceHolder1_tropt").style.display = "None";
983    document.getElementById("ctl00_ContentPlaceHolder1_trcomm").style.display = "Block";
984    document.getElementById("ctl00_ContentPlaceHolder1_trbtn").style.display = "Block";
985    document.getElementById("ctl00_ContentPlaceHolder1_hdselectopt").value = "3"
986    document.getElementById("ctl00_ContentPlaceHolder1_trsend").style.display = "None";
987    document.getElementById("ctl00_ContentPlaceHolder1_tramt").style.display = "None";
988}
989
990
991
992
993function ajaxFunforchngsval(txtPrice, totalComm, txtsm) {
994    if (emptyField(txtsm)) {
995        alert('Please enter Posting Mode Value');
996        txtsm.focus();
997        return false;
998    }
999    if (!isInt1(txtsm.value.replace(",", "."))) {
1000        alert('Please enter numeric Posting Mode Value');
1001        txtsm.focus();
1002        return false;
1003    }
1004    if (txtsm.value < 0) {
1005        alert('Please enter numeric Posting Mode Value greater than zero');
1006        txtsm.focus();
1007        return false;
1008    }
1009    if (txtsm.value > 350) {
1010        alert('Please enter Posting Mode Value less than or equal to 350 euros');
1011        txtsm.focus();
1012        return false;
1013    }
1014    document.getElementById("tdbtn").display = 'none';
1015    var xmlHttp;
1016    try {
1017        // Firefox, Opera 8.0+, Safari
1018        xmlHttp = new XMLHttpRequest();
1019    }
1020    catch (e) {
1021        // Internet Explorer
1022        try {
1023            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
1024        }
1025        catch (e) {
1026            try {
1027                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
1028            }
1029            catch (e) {
1030                alert("Your browser does not support AJAX!");
1031                return false;
1032            }
1033        }
1034    }
1035        xmlHttp.onreadystatechange = function() {
1036        if (xmlHttp.readyState == 4) {
1037            var s, ss;
1038            var s = xmlHttp.responseText;
1039            var ss = s.split('#');
1040            ////alert(ss[0]);
1041            ////alert(ss[1]);
1042//            document.getElementById(smids).innerHTML = ss[0] + ' ' + ss[2];
1043//            document.getElementById("divfinal").innerHTML = ss[0] + ' ' + ss[1];
1044//            document.getElementById("hdtotalsmode").value = ss[2];
1045//            document.getElementById("hdgtotal").value = ss[1];
1046
1047            document.getElementById("divsellprice").innerHTML = ss[0];
1048            document.getElementById("divport").innerHTML = " + " + ss[1];
1049            document.getElementById("divcom").innerHTML = " - " + ss[2];
1050            document.getElementById("divnet").innerHTML = ss[3];
1051            document.getElementById("tdbtn").display = 'block';
1052        }
1053    }
1054    xmlHttp.open("GET", "getsmodenewval.aspx?txtPrice=" + txtPrice + "&totalComm=" + totalComm + "&txtsm=" + txtsm.value, true);
1055    xmlHttp.send(null);
1056}

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.