// JavaScript Document

function DeliTime(){
  date=new Date();
  youbi=new Array();
youbi[0]="日曜日";
youbi[1]="月曜日";
youbi[2]="火曜日";
youbi[3]="水曜日";
youbi[4]="木曜日";
youbi[5]="金曜日";
youbi[6]="土曜日";
  
 w=date.getDay();
 zikan=date.getHours();
 
 if(w==5 && zikan>=10 && zikan<24){
	 date.setTime(date.getTime()+1000*60*60*24*5);
 }else if(w==6){
	  date.setTime(date.getTime()+1000*60*60*24*4);
}else if(w==0){
	  date.setTime(date.getTime()+1000*60*60*24*3);
  }else if(zikan>=10 && zikan<24){
	  date.setTime(date.getTime()+1000*60*60*24*3);
  }else{
  date.setTime(date.getTime()+1000*60*60*24*2);
  }
  month=date.getMonth()+1;
  day=date.getDate();
  w=date.getDay();
  


  if(w==5 && zikan>=10 && zikan<24){
	document.write("<font color=\"#000000\">");
    document.write("ただいまの時間、最短でのお届けは<font color=\"#ff0000\"><b>",month,"月",day,"日(",youbi[w],")</b></font>となります。");
	document.write("</font>");
  }else if(w==6){
	 document.write("<font color=\"#000000\">");
    document.write("ただいまの時間、最短のお届けは<font color=\"#ff0000\"><b>",month,"月",day,"日(",youbi[w],")</b></font>となります。");
	document.write("</font>");
 }else if(w==0){
	 document.write("<font color=\"#000000\">");
    document.write("ただいまの時間、最短のお届けは<font color=\"#ff0000\"><b>",month,"月",day,"日(",youbi[w],")</b></font>となります。");
	document.write("</font>");
  }else if(zikan>=10 && zikan<24){
	  document.write("<font color=\"#000000\">");
    document.write("ただいまの時間、最短のお届けは<font color=\"#ff0000\"><b>",month,"月",day,"日(",youbi[w],")</b></font>となります。");
	document.write("</font>");
	  }
	  else {
	  document.write("<font color=\"#000000\">");
    document.write("ただいまの時間、最短のお届けは<font color=\"#ff0000\"><b>",month,"月",day,"日(",youbi[w],")</b></font>となります。");
	document.write("</font>");
	  }
  
  
    
}