 function create(t)
 {
 var selecttime=document.getElementById('selecttime');
 selecttime.innerHTML="";
   if(t==1)
   { 
      document.getElementById("selecttext").innerHTML="出发月份：";
	  var se=document.createElement("select");
      se.setAttribute("id","ycstartdate");
      se.setAttribute("name","ycstartdate");
	  se.style.width="100px";
      var o1=document.createElement("option");
      o1.setAttribute("value","01");
	  o1.appendChild(document.createTextNode("一月"));
	  se.appendChild(o1);
	  var o2=document.createElement("option");
	  o2.setAttribute("value","02");
	  o2.appendChild(document.createTextNode("二月"));
	  se.appendChild(o2);
	  var o3=document.createElement("option");
	  o3.setAttribute("value","03");
	  o3.appendChild(document.createTextNode("三月"));
	  se.appendChild(o3);
	  var o4=document.createElement("option");
	  o4.setAttribute("value","04");
	  o4.appendChild(document.createTextNode("四月"));
	  se.appendChild(o4);
	  var o5=document.createElement("option");
	  o5.setAttribute("value","05");
	  o5.appendChild(document.createTextNode("五月"));
	  se.appendChild(o5);
	  var o6=document.createElement("option");
	  o6.setAttribute("value","06");
	  o6.appendChild(document.createTextNode("六月"));
	  se.appendChild(o6);
	  var o7=document.createElement("option");
	  o7.setAttribute("value","07");
	  o7.appendChild(document.createTextNode("七月"));
	  se.appendChild(o7);
	  var o8=document.createElement("option");
	  o8.setAttribute("value","08");
	  o8.appendChild(document.createTextNode("八月"));
	  se.appendChild(o8);
	    var o9=document.createElement("option");
	  o9.setAttribute("value","09");
	  o9.appendChild(document.createTextNode("九月"));
	  se.appendChild(o9);
	    var o10=document.createElement("option");
	  o10.setAttribute("value","10");
	  o10.appendChild(document.createTextNode("十月"));
	  se.appendChild(o10);
	    var o11=document.createElement("option");
	  o11.setAttribute("value","11");
	  o11.appendChild(document.createTextNode("十一月"));
	  se.appendChild(o11);
	    var o12=document.createElement("option");
	  o12.setAttribute("value","12");
	  o12.appendChild(document.createTextNode("十二月"));
	  se.appendChild(o12);
	  selecttime.appendChild(se);
   }
   else if(t==2)
   {
	 document.getElementById("selecttext").innerHTML="出发日期：";
	 var ins=document.createElement("input");
	 ins.setAttribute("id","ycstartdate");
	 ins.setAttribute("name","ycstartdate");
	 ins.setAttribute("type","text");
	 ins.style.width="97px";
	 var myDate=new Date();
     var year=myDate.getYear();
     year=(year<1900?(1900+year):year);
     var month=myDate.getMonth()+1;
     var day=myDate.getDate();
     if(month<10)month="0"+month;
     if(day<10)day="0"+day;
     ins.value=year+"-"+month+"-"+day;
	 ins.onclick=function(){SelectDate(this);}
	 ins.setAttribute("readOnly","true");
	 selecttime.appendChild(ins);
  }
}