function countdown(yr,m,d,specialurl,before,current){var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var today=new Date()
var todayy=today.getYear()
if(todayy<1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var futurestring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
if(difference==0)
document.write(current)
else if(difference>0)
document.write("Only "+difference+" days left!<br>"+"<a href=\""+specialurl+"\">"+before+"</a>")}
function countdowntochristmas(yr,m,d,specialurl){var before="Guarantee Christmas delivery!"
var current="4pm today is the LAST DAY to get UK Christmas delivery!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var today=new Date()
var todayy=today.getYear()
if(todayy<1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var futurestring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
if(difference==0)
document.write(current)
else if(difference>0)
document.write("Only "+difference+" days left!<br>"+"<a href=\""+specialurl+"\">"+before+"</a>")}
function addToFavorites(url,title){var msg_other="Your browser does not support automatic bookmarks.  Please bookmark us manually.";var agt=navigator.userAgent.toLowerCase();if(agt.indexOf("opera")!=-1)
{if(window.opera&&window.print){return true;}else{alert(msg_other);}}
else if(agt.indexOf("firefox")!=-1)window.sidebar.addPanel(title,url,"");else if((agt.indexOf("msie")!=-1)&&(parseInt(navigator.appVersion)>=4))window.external.AddFavorite(url,title);else if(agt.indexOf("netscape")!=-1)window.sidebar.addPanel(title,url,"")
else if(window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(title,url,"");else alert(msg_other);}
