    var timeEndQesion22;

    function TimerManager22(){
		this.countImage22 = new Array();					 
		this.oldTimeChr22 = new Array("","","","","","","","");		 
		this.newTimeChr22 = new Array("0","0","0","0","0","0","0","0");	 
		this.d_day22; 	 
		this.timeImgArr22;
		this.newtime22;
		this.timeGap22;		 
		this.countImageInit22 = countImageInit22;
		this.reverse_counter22 = reverse_counter22;
		this.timeToNewTime22 = timeToNewTime22;
		this.chrToImg22 = chrToImg22;
	} 
	
	function countImageInit22(serverCurDate22,d_dateStr22,timeImgName22, file_url22){
		var i;
		for(i=0; i<10; i++){
			this.countImage22[i] = new Image();
			this.countImage22[i].src = file_url22 +"num"+ i + ".gif";
		}
		 
		this.timeImgArr22 = document.getElementsByName(timeImgName22);
		 
		this.d_day22 = new Date(d_dateStr22);	 
		var today22 = new Date();
		var serverToday22 = new Date(serverCurDate22);
		this.timeGap22 = today22 - serverToday22;

		var todayReal22 = new Date();
		var today22 = new Date(todayReal22 - this.timeGap22);	// ¼­¹ö½Ã°£¿¡ ¸ÂÃá Çö½Ã°£
		if(today22 >= this.d_day22){
			this.newTimeChr22 = new Array("0","0","0","0","0","0","0","0");
			this.chrToImg22();
		}else{
			this.reverse_counter22();
		} 
	}
	 
	function reverse_counter22(){
		var i;
		var todayReal22 = new Date();
		var today22 = new Date(todayReal22 - this.timeGap22);	 
			  
		if(today22 >= this.d_day22){
			this.newTimeChr22 = new Array("0","0","0","0","0","0","0","0");
			this.chrToImg22();
		    if(timeEndQesion22=="Y"){
		    }else{ 
			    timeEndQesion22="Y" 
		    }
			return;
		}
		
        var Total_sec22;
        var Remain_tot_sec22, Remain_tot_sec122;

        Total_sec22 = Math.floor((this.d_day22 - today22) / 1000);

        daysRound22 = Math.floor(Total_sec22 / 86400);
        this.timeToNewTime22(0, daysRound22 + "");

        Remain_tot_sec22 = Total_sec22 - 86400 * daysRound22;
        hoursRound22 = Math.floor(Remain_tot_sec22 / 3600);
        this.timeToNewTime22(2, hoursRound22 + "");

        Remain_tot_sec122 = Remain_tot_sec22 - hoursRound22 * 3600;
        minutesRound22 = Math.floor(Remain_tot_sec122 / 60);
        this.timeToNewTime22(4, minutesRound22 + "");

        secondsRound22 = Math.floor(Remain_tot_sec122 % 60);
        this.timeToNewTime22(6, secondsRound22 + "");
			  
		this.chrToImg22();
		
		todayReal22 = null;
		today22 = null;
	}
	 
	function timeToNewTime22(index22, timeRound22){
		var j;
		if(timeRound22.length == 1){		 
			this.newTimeChr22[index22++] = "0";
			this.newTimeChr22[index22] = timeRound22;
		}else{
			for(j=0; j < timeRound22.length; j++){
				this.newTimeChr22[index22++] = timeRound22.charAt(j);
			}
		}
	}
	 
	function chrToImg22(){
		for(i=0; i<this.timeImgArr22.length; i++){ 
			if(this.newTimeChr22[i] != this.oldTimeChr22[i]){
				this.oldTimeChr22[i] = this.newTimeChr22[i];
				this.timeImgArr22[i].src = this.countImage22[this.newTimeChr22[i]].src;
			}
		}
	}
	