
function checkHiddenImg(year, month, date, imgObj){

try{
var currentDate = new Date();
var createDate = new Date();
createDate.setYear(year);
createDate.setMonth(month - 1);
createDate.setDate(date);
 

if((currentDate .getTime() - createDate.getTime()) / 1000 / 86400 < 21){
}else{
	imgObj.style.display = "none";
}

}catch(err){ }
} 


/*
str += "Year: " + year+ "<br>";
str += "Month: " + month + "<br>";
str += "Date: " + date + "<br>";

str += "Current Year: " + currentDate.getYear() + "<br>";
str += "Current Month: " + currentDate.getMonth() + "<br>";
str += "Current Date: " + currentDate.getDate() + "<br>";

str += "Create Year: " + createDate.getYear() + "<br>";
str += "Create Month: " + createDate.getMonth() + "<br>";
str += "Create Date: " + createDate.getDate() + "<br>";

str += currentDate.getTime()/1000 + "<br>";

str += "Day: " + (currentDate .getTime() - createDate.getTime()) / 1000 / 86400 + "<br>";
str += "Hour: " + (currentDate .getTime() - createDate.getTime()) / 1000 / 3600 % 24+ "<br>";
*/
