//日期相减，今天减date1的日期，返回天数
function cutDate(date1){
	
	var strDate,objToday,intDay,intMonth,intYear,intReturn;
	
	objToday = new Date();
	intDay = objToday.getDate();
	intMonth = objToday.getMonth()+1;
	intYear = objToday.getFullYear();

	strDate = date1.split(" ");
	strDate = strDate[0];
	strDate = strDate.split("-");
	
	intReturn = (intYear - parseInt(strDate[0]))*365 + (intMonth - parseInt(strDate[1]))*30 + intDay - parseInt(strDate[2])

	//parseInt()
	//alert(strDate[0]+strDate[1]+strDate[2]);
	//alert(""+intReturn);
	return intReturn;
}