function hh(){
var kaishi=document.getElementById("str").value;
var jieshu=document.getElementById("str2").value;
if((kaishi!="")&&(jieshu!="")){
var date1 = new Date(kaishi)
var date2 = new Date(jieshu)
var s1 = date1.getTime(),s2 = date2.getTime();
var total = (s2 - s1)/1000;
var day = parseInt(total / (24*60*60))+1;//计算整数天数
var afterDay =( total - day*24*60*60)/60/60;//取得算出天数后剩余的小时
var hour = parseInt(afterDay/(60*60));//计算整数小时数
var afterHour = total - day*24*60*60 - hour*60*60;//取得算出小时数后剩余的秒数
var min = parseInt(afterHour/60);//计算整数分
var afterMin = total - day*24*60*60 - hour*60*60 - min*60;//取得算出分后剩余的秒数
/* if(afterDay<5 && afterDay>0 ){
var days=day+0.5;
document.getElementById("qjts").value=days;
}else if(afterDay==0){
document.getElementById("qjts").value=day;
}
else {
var days=day+1;
document.getElementById("qjts").value=days;
} */
}
}
var kaishi=document.getElementById("str").value;
var jieshu=document.getElementById("str2").value;
if((kaishi!="")&&(jieshu!="")){
var date1 = new Date(kaishi)
var date2 = new Date(jieshu)
var s1 = date1.getTime(),s2 = date2.getTime();
var total = (s2 - s1)/1000;
var day = parseInt(total / (24*60*60))+1;//计算整数天数
var afterDay =( total - day*24*60*60)/60/60;//取得算出天数后剩余的小时
var hour = parseInt(afterDay/(60*60));//计算整数小时数
var afterHour = total - day*24*60*60 - hour*60*60;//取得算出小时数后剩余的秒数
var min = parseInt(afterHour/60);//计算整数分
var afterMin = total - day*24*60*60 - hour*60*60 - min*60;//取得算出分后剩余的秒数
/* if(afterDay<5 && afterDay>0 ){
var days=day+0.5;
document.getElementById("qjts").value=days;
}else if(afterDay==0){
document.getElementById("qjts").value=day;
}
else {
var days=day+1;
document.getElementById("qjts").value=days;
} */
}
}