function date_set01(){



   $.ajax({url: "/setting/timer-set2.html",cache: false,success: function(html){

	

		var mydate = html.split(',');

		

		y = eval(mydate[0]);

		m = eval(mydate[1]);

		d = eval(mydate[2]);			

	

		today = new Date();

		xday = new Date(y,m-1,d);

		d = Math.floor((xday.getTime()-today.getTime())/86400000)+1;	

		

		if( d < 0){d=0;}

		

		c=""+d;	

		

		temp="";

		for(var i=0;i<c.length;i++){

		temp+="<img src=\"/world/images/num/"+c.charAt(i)+".gif\" alt="+c.charAt(i)+" class=\"c\" />";

		}

		

		if(c.length==2){

			temp="<img src=\"/world/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}else if(c.length==1){

			temp="<img src=\"/world/images/num/0.gif\" alt=\"0\" /><img src=\"/world/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}else{

			temp+="<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}

		

		$("#count01").append(temp);

		$("#count01 img").css({"margin-right":"5px"});

		$("#count01 img:last").css({"margin-right":"0px"});

	

	}});



}



function date_set02(){



   $.ajax({url: "/setting/timer-set3.html",cache: false,success: function(html){

	

		var mydate = html.split(',');

		

		y = eval(mydate[0]);

		m = eval(mydate[1]);

		d = eval(mydate[2]);			

	

		today = new Date();

		xday = new Date(y,m-1,d);

		d = Math.floor((xday.getTime()-today.getTime())/86400000)+1;	

		

		if( d < 0){d=0;}

		

		c=""+d;	

		

		temp="";

		for(var i=0;i<c.length;i++){

		temp+="<img src=\"/world/images/num/"+c.charAt(i)+".gif\" alt="+c.charAt(i)+" class=\"c\" />";

		}

		

		if(c.length==2){

			temp="<img src=\"/world/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}else if(c.length==1){

			temp="<img src=\"/world/images/num/0.gif\" alt=\"0\" /><img src=\"/world/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}else{

			temp+="<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}

		

		$("#count02").append(temp);

		$("#count02 img").css({"margin-right":"5px"});

		$("#count02 img:last").css({"margin-right":"0px"});

	

	}});



}



function date_set03(){



   $.ajax({url: "/setting/timer-set4.html",cache: false,success: function(html){

	

		var mydate = html.split(',');

		

		y = eval(mydate[0]);

		m = eval(mydate[1]);

		d = eval(mydate[2]);			

	

		today = new Date();

		xday = new Date(y,m-1,d);

		d = Math.floor((xday.getTime()-today.getTime())/86400000)+1;	

		

		if( d < 0){d=0;}

		

		c=""+d;	

		

		temp="";

		for(var i=0;i<c.length;i++){

		temp+="<img src=\"/world/images/num/"+c.charAt(i)+".gif\" alt="+c.charAt(i)+" class=\"c\" />";

		}

		

		if(c.length==2){

			temp="<img src=\"/world/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}else if(c.length==1){

			temp="<img src=\"/world/images/num/0.gif\" alt=\"0\" /><img src=\"/world/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}else{

			temp+="<img src=\"/world/images/world_txt04.gif\" alt=\"日\" />";

		}

		

		$("#count03").append(temp);

		$("#count03 img").css({"margin-right":"5px"});

		$("#count03 img:last").css({"margin-right":"0px"});

	

	}});



}



function date_set04(){ //vbworldcup countdown



   $.ajax({url: "/setting/timer-set4.html",cache: false,success: function(html){

	

		var mydate = html.split(',');

		

		y = eval(mydate[0]);

		m = eval(mydate[1]);

		d = eval(mydate[2]);			

	

		today = new Date();

		xday = new Date(y,m-1,d);

		d = Math.floor((xday.getTime()-today.getTime())/86400000)+1;	

		

		if( d < 0){d=0;}

		

		c=""+d;	

		

		temp="";

		for(var i=0;i<c.length;i++){

		temp+="<img src=\"/images/num/"+c.charAt(i)+".gif\" alt="+c.charAt(i)+" class=\"c\" />";

		}

		

		if(c.length==2){

			temp="<img src=\"/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/images/count_txt.gif\" alt=\"日\" />";

		}else if(c.length==1){

			temp="<img src=\"/images/num/0.gif\" alt=\"0\" /><img src=\"/images/num/0.gif\" alt=\"0\" />"+temp+"<img src=\"/images/count_txt.gif\" alt=\"日\" />";

		}else{

			temp+="<img src=\"/images/count_txt.gif\" alt=\"日\" />";

		}

		

		$("#count04").append(temp);

		$("#count04 img").css({"margin-right":"5px"});

		$("#count04 img:last").css({"margin-right":"0px"});

	

	}});



}
