function adPst(Yr,Mo,Dy,imgSource,expiredMsg)
{
var remDate = new Date();

//Only Update the Image Source Below this line
var x = Mo - 1;

//The date below is the end date
//format yyyy jan is 0 month starts 0
remDate.setFullYear(Yr,x,Dy);

var today = new Date();
if (remDate>today)
{
//Image
jQuery('#weeklyAd').append('<img style="width:100%" src="'+imgSource+'">');
}
else
{
//Alternate Message
jQuery('#weeklyAd').append('<h2>'+expiredMsg+'</h2>');
}
};
