PageSourceSearch

https://tcar.co.kr/include/Js/Kansim.Js

js tcar.co.kr collected 2026-10-07 13:17:41 UTC 1,788 bytes, 43 lines download raw bytes

1<!-- 
2function allcheck() {
3	var checkbox = event.srcElement; // allcheck()¶õ À̺¥Æ® Çڵ鷯¿¡°Ô À̺¥Æ®¸¦ ¹ß»ý½ÃŲ °´Ã¼¸¦ checkbox¾È¿¡ ´ã´Â´Ù.
4	if( checkbox.checked ) {         // ¸¸¾à È£ÃâÇÑ inputBox¿¡ checked ¸é  
5		allBoxCheck(true);           // ¸ðµç¹Ú½º inputBox¸¦ üũÇÑ´Ù. allBoxCheck()ÇÔ¼ö´Â ¾Æ·¡¿¡ Á¤ÀÇ
6	} else {
7		allBoxCheck(false);          //üũ°¡ ¾È µÇ¾î ÀÖÀ¸¸é ¸ðµÎ üũ ÇØÁ¦.,//³¡!!
8	}
9}
10
11function allBoxCheck(val,pid) {                    //À§ÀÇ allcheck()ÇÔ¼ö¿¡¼­ »ç¿ëÇÑ´Ù.
12	var cnt = 0;allInput = document.all.tags("INPUT"); //¹®¼­ÀÇ ¸ðµç ű×Áß "INPUT"À̶ó°í ÇѰŸ¦ ´Ù allInput ¿¡ ´ã´Â´Ù.
13	for( var i=0 ; i<allInput.length ; i++ ) { //±× ´ãÀº ±æÀÌ ¸¸Å­ µ¹¾Æ~   µ¹~¸®°í~~ µ¹¸®~°í~
14		if( allInput[i].type == "checkbox" ) {       //±× inputÀÇ typeÀÌ checkboxÀÎÁö¸¦ ºñ±³ÇÑ´Ù
15			if(val != "check") allInput[i].checked = val;	   //checkBox°¡ ¸ÂÀº¸é checked¿¡ valÀ» ´ëÀÔÇÑ´Ù.
16			else if( allInput[i].checked==true ) cnt++;
17			var input = allInput[i];               //±× °¢°¢ÀÇ allInputÀÇ[i]¹øÂ°¸¦ input¿¡ ´ã¾Æ
18		}                                      //valÀº allcheck()¿¡¼­ È£Ãâ½ÃallBoxCheck(true & false)ÁöÁ¤!!
19	}
20	if( val == "check" && cnt <= pid ) {
21		alert("Â÷·®À» "+(pid+1)+"°³ ÀÌ»ó ¼±ÅÃÇÏ¿© ÁֽʽÿÀ.");
22		input.focus();
23		return false;
24	}
25}
26
27function submitClick(mode,pid,url){
28	form = document.signform;
29	if(mode == "compare"){
30		if(allBoxCheck("check",pid)==false) return false;
31		window.open("","compare","top=100,left=100,width=100,height=100,scrollbars=yes").focus();
32		form.target = "compare";
33		if(!form.action) form.action = "../include/Popup/Compare.php";
34		form.submit();
35	}
36	else{
37		if(allBoxCheck("check",pid)==false) return false;
38		form.target = "common";
39		form.action = "../mytcar/Kansim_Action.php?act="+mode+"&goUrl="+url;
40		form.submit();
41	}
42}
43//-->

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.