function getJumunDate(){
	var target = document.getElementById("getTime").value; 
	if(target != 0){
		var OBJ    = target.split("|");
		var yy     = parseInt(target.substr(0,4),10);
		var mm     = parseInt(target.substr(4,2),10);
		var dd     = parseInt(target.substr(6,2),10);

		if(OBJ[1] == "A"){
			var step1 = new Date(yy,mm-1,dd,0,0,0);
			var step1_mm = step1.getMonth()+1;
			var step1_dd = step1.getDate();
			step1_vm = step1_mm < 10 ? "0" + step1_mm : step1_mm;
			step1_vd = step1_dd < 10 ? "0" + step1_dd : step1_dd;
			document.getElementById("step1_view").innerHTML = "<font color='#990000'>" + step1_vm + "¿ù " + step1_vd + "ÀÏ 20½Ã ÀÌÀü</font>";
		}else{
			var step1 = new Date(yy,mm-1,dd+1,0,0,0);
			var step1_mm = step1.getMonth()+1;		
			var step1_dd = step1.getDate();
			step1_vm = step1_mm < 10 ? "0" + step1_mm : step1_mm;
			step1_vd = step1_dd < 10 ? "0" + step1_dd : step1_dd;
			document.getElementById("step1_view").innerHTML = "<font color='#990000'>" + step1_vm + "¿ù " + step1_vd + "ÀÏ 20½Ã ÀÌÀü</font>";
		}

		var tag = "<select name='getView' class='input' onchange='getViewDate()'>";  	
		tag    += "<option value='0'> :: ½ÂÀÎ ³¯Â¥ ¼±ÅÃ :: </option>";
		for(var i=1;i<8;i++){
			var step2 = new Date(yy,step1_mm-1,step1_dd+i);
			var step2_mm = step2.getMonth()+1;		
			var step2_dd = step2.getDate();
			
			step2_vm = step2_mm < 10 ? "0" + step2_mm : step2_mm;
			step2_vd = step2_dd < 10 ? "0" + step2_dd : step2_dd;

			var t_day = String(yy) + String(step2_vm) + String(step2_vd);
			tag += "<option value='" + t_day + "'>" + step2_vd + " ÀÏ ¿ÀÈÄ3½Ã</option>";
		}
		tag += "</select>";
		document.getElementById("step2_view").innerHTML = tag;
	}else{
		document.getElementById("step1_view").innerHTML = "<font color='#990000'>Á¢¼ö³¯Â¥¸¦ È®ÀÎ ÇØ ÁÖ¼¼¿ä</font>";
		document.getElementById("step2_view").innerHTML = "<font color='#990000'>Á¢¼ö³¯Â¥¸¦ È®ÀÎ ÇØ ÁÖ¼¼¿ä</font>";
		document.getElementById("step3_view").innerHTML = "<font color='#990000'>½ÂÀÎ³¯Â¥¸¦ È®ÀÎ ÇØ ÁÖ¼¼¿ä</font>";
		document.getElementById("step4_view").innerHTML = "<font color='#990000'>½ÂÀÎ³¯Â¥¸¦ È®ÀÎ ÇØ ÁÖ¼¼¿ä</font>";
	}
}

function getViewDate(){
	var target = document.getElementById("getView").value; 
	if(target != 0){
		var yy     = parseInt(target.substr(0,4),10);
		var mm     = parseInt(target.substr(4,2),10);
		var dd     = parseInt(target.substr(6,2),10);

		var step = new Date(yy,mm-1,dd);
		var step_day = step.getDay();

		if(step_day == 6){
			var step3 = new Date(yy,mm-1,dd+2);
			var step3_mm = step3.getMonth()+1;		
			var step3_dd = step3.getDate();
			step3_vm = step3_mm < 10 ? "0" + step3_mm : step3_mm;
			step3_vd = step3_dd < 10 ? "0" + step3_dd : step3_dd;
			document.getElementById("step3_view").innerHTML = "<font color='#990000'>" + step3_vm + "¿ù " + step3_vd + "ÀÏ ÅÃ¹è ¹ß¼Û</font>";
		}else{
			var step3 = new Date(yy,mm-1,dd+1);
			var step3_mm = step3.getMonth()+1;		
			var step3_dd = step3.getDate();
			step3_vm = step3_mm < 10 ? "0" + step3_mm : step3_mm;
			step3_vd = step3_dd < 10 ? "0" + step3_dd : step3_dd;
			document.getElementById("step3_view").innerHTML = "<font color='#990000'>" + step3_vm + "¿ù " + step3_vd + "ÀÏ ÅÃ¹è ¹ß¼Û</font>";
		}

		var step4 = new Date(yy,step3_mm-1,step3_dd+1);
		var step4_day = step4.getDay();


		if(!step4_day){
			var step5 = new Date(yy,step3_mm-1,step3_dd+2);
			var step5_mm = step5.getMonth()+1;		
			var step5_dd = step5.getDate();
			step5_vm = step5_mm < 10 ? "0" + step5_mm : step5_mm;
			step5_vd = step5_dd < 10 ? "0" + step5_dd : step5_dd;
			document.getElementById("step4_view").innerHTML = "<font color='#990000'>" + step5_vm + "¿ù " + step5_vd + "ÀÏ µµÂø ¿¹Á¤</font>";
		}else{
			var step4_mm = step4.getMonth()+1;		
			var step4_dd = step4.getDate();
			step4_vm = step4_mm < 10 ? "0" + step4_mm : step4_mm;
			step4_vd = step4_dd < 10 ? "0" + step4_dd : step4_dd;
			document.getElementById("step4_view").innerHTML = "<font color='#990000'>" + step4_vm + "¿ù " + step4_vd + "ÀÏ µµÂø ¿¹Á¤</font>";
		}

	}else{
		document.getElementById("step3_view").innerHTML = "<font color='#990000'>½ÂÀÎ³¯Â¥¸¦ È®ÀÎ ÇØ ÁÖ¼¼¿ä</font>";
		document.getElementById("step4_view").innerHTML = "<font color='#990000'>½ÂÀÎ³¯Â¥¸¦ È®ÀÎ ÇØ ÁÖ¼¼¿ä</font>";
	}

}




//Å¬¸¯ÇßÀ»¶§ Á¡¼±¾ø¾Ö±â

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 
