PageSourceSearch

https://alchantruck.com/JS/Common_Function.js

js alchantruck.com collected 2026-10-04 13:29:44 UTC 3,727 bytes, 124 lines download raw bytes

1function View_Opt(val, c){
2	for (var i = 0; i <= document.TheForm.ItemOpt.length - 1; i++){
3		if (val.indexOf(document.TheForm.ItemOpt[i].value) >= 0){
4			if (c == "View"){
5				document.TheForm.ItemOpt[i].src = "../JS/img/option_on.gif";
6			}else{
7				document.TheForm.ItemOpt[i].checked = true;
8			}
9		}
10	}
11}
12
13
14function Edit_ImageYn(val){
15	if (val.indexOf(form1.ImageYn.value) >= 0){
16		form1.ImageYn.checked = true;
17	}
18}
19
20function MM_openBrWindow(theURL,winName,features) {
21	window.open(theURL,winName,features);
22}
23 
24function mouseOnTD(seq, bool){
25	var oTD = eval("document.all.listXP" + seq);
26	var len = oTD.length;
27	var borderStyle = "0 solid #f9f6f2";
28		
29	if (bool){
30		for(var i =0; i < len ; i++){
31			oTD[i].style.borderTop = borderStyle;
32			oTD[i].style.borderBottom = borderStyle;
33			oTD[i].style.cursor = "default";
34			oTD[i].style.borderLeft = borderStyle;
35			oTD[i].style.backgroundColor = "#f9f6f2";
36		}
37		oTD[len-1].style.borderRight = borderStyle;
38	}else{
39		for(var i =0; i < len; i++){
40			oTD[i].style.border = "";
41			oTD[i].style.backgroundColor = "";
42		}
43	}
44}
45	
46function mouseOnTD2(seq, bool){
47	var oTD = eval("document.all.listXP_recommend" + seq);
48	var len = oTD.length;
49	var borderStyle = "0 solid red";
50		
51	if (bool){
52		for(var i =0; i < len ; i++){
53			oTD[i].style.borderTop = borderStyle;
54			oTD[i].style.borderBottom = borderStyle;
55			oTD[i].style.cursor = "default";
56			oTD[i].style.borderLeft = borderStyle;
57			oTD[i].style.backgroundColor = "#CF1F2C";
58		}
59		oTD[len-1].style.borderRight = borderStyle;
60	}else{
61		for(var i =0; i < len; i++){
62			oTD[i].style.border = "";
63			oTD[i].style.backgroundColor = "";
64		}
65	}
66}
67	
68function mouseOnTD3(seq, bool){
69	var oTD = eval("document.all.listXP_support" + seq);
70	var len = oTD.length;
71	var borderStyle = "0 solid #f9f6f2";
72		
73	if (bool){
74		for(var i =0; i < len ; i++){
75			oTD[i].style.borderTop = borderStyle;
76			oTD[i].style.borderBottom = borderStyle;
77			oTD[i].style.cursor = "default";
78			oTD[i].style.borderLeft = borderStyle;
79			oTD[i].style.backgroundColor = "#f9f6f2";
80		}
81		oTD[len-1].style.borderRight = borderStyle;
82	}else{
83		for(var i =0; i < len; i++){
84			oTD[i].style.border = "";
85			oTD[i].style.backgroundColor = "";
86		}
87	}
88}
89
90function ComparePopup_Submit(){
91	window.open("","2","height=540,with=1020");
92	document.TheCompareForm.target="2";
93	document.TheCompareForm.action="../model/pop_compare.asp";
94	document.TheCompareForm.submit();
95	document.TheCompareForm.target="";
96}
97
98function Recommend_Submit(){
99	document.TheForm.action = "../Shop/Recommend_Car_List.asp";
100	document.TheForm.submit();
101}
102
103function MM_preloadImages(){ //v3.0
104	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
105	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
106	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
107}
108
109function MM_swapImgRestore(){ //v3.0
110	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
111}
112
113function MM_findObj(n, d){ //v4.01
114	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length){
115    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
116	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
117	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
118	if(!x && d.getElementById) x=d.getElementById(n); return x;
119}
120
121function MM_swapImage(){ //v3.0
122	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
123	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
124}

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.