// get date
var x = new Date()

// set dates for script change

var seta = new Date ("Apr 1, 2008")
var setb = new Date ("May 10, 2008")
var setc = new Date ("Jun 17, 2008")
var setd = new Date ("Jun 24, 2008")
var sete = new Date ("Jul 1, 2008")
var setf = new Date ("Jul 8, 2008")
var setg = new Date ("Jul 15, 2008")
var seth = new Date ("Jul 22, 2008")
var seti = new Date ("Jul 29, 2008")
var setj = new Date ("Aug 5, 2008")
var setk = new Date ("Aug 12, 2008")
var setl = new Date ("Aug 19, 2008")
var setm = new Date ("Aug 26, 2008")
var setn = new Date ("Sep 1, 2008")
var seto = new Date ("Oct 1, 2008")
var setp = new Date ("Nov 1, 2008")
var setq = new Date ("Dec 1, 2008")

var setx = new Date("Mar 24, 2009")



// CHECK DATE IF BEFORE APR 1 2008
if (x.getTime() < seta.getTime())
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp Build Your Confidence!! Approach each putt believing you&#39;ll make it. But if you don&#39;t, be realistic: remind yourself that even the best players in the world only make about 50% of six foot putts.")
}

// CHECK DATE IF BETWEEN APR 1 AND JMay 10
if (x.getTime() >= seta.getTime() && (x.getTime() < setb.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp Build Your Confidence!! Approach each putt believing you&#39;ll make it. But if you don&#39;t, be realistic: remind yourself that even the best players in the world only make about 50% of six foot putts.")
}

// CHECK DATE IF BETWEEN JUN 10 AND JUN 17
if (x.getTime() >= setb.getTime() && (x.getTime() < setc.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp The easiest way to align your putter head correctly is to stand behind the ball and look at your line-- then carefully place the putter head behind the ball aiming towards your target line. Walk around to the side of the ball and take your putting posture.")
}

// CHECK DATE IF BETWEEN JUN 17 AND JUN 24
if (x.getTime() >= setc.getTime() && (x.getTime() < setd.getTime()))
{
document.write("&nbsp  TIP OF THE WEEK: <br> &nbsp Don&#39;t take golf lessons from a instructor with a 62 handicap.")
}

// CHECK DATE IF BETWEEN JUN 24 AND JUL 1
if (x.getTime() >= setd.getTime() && (x.getTime() < sete.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  Drive for show, putt for dough. Practice putting as well at the driving range.")
}

// CHECK DATE IF BETWEEN JUL 1 AND JUL 8
if (x.getTime() >= sete.getTime() && (x.getTime() < setf.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  How hard should you grip the club?  The real question is how EASY you should grip it!! It must NEVER be tight. Do not squeeze the club hold it! This is extremely tough to master, but try and be conscience of it the next time on the course.  You may be pleasantly surprised!!")
}

// CHECK DATE IF BETWEEN JUL 8 AND JUL 15
if (x.getTime() >= setf.getTime() && (x.getTime() < setg.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  For beginning golfers Long drives and accuracy are a bit like oil and water in terms of a combination. Focus on accuracy not hitting the ball as hard as you can.")
}

// CHECK DATE IF BETWEEN JUL 15 AND JUL 22
if (x.getTime() >= setg.getTime() && (x.getTime() < seth.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  Cure the slice: Take club straight back on backswing, and change the swing plane to inside-out on downswing. Don&#39;t let chest outrun arms and hands on downswing.")
}

// CHECK DATE IF BETWEEN JUL 22 AND JUL 29
if (x.getTime() >= seth.getTime() && (x.getTime() < seti.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  Don&#39;t take tips from a golfer with a 30 handicap. Professional lessons can improve your game and eliminate some bad tips.")
}

// CHECK DATE IF BETWEEN JUL 29 AND AUG 5
if (x.getTime() >= seti.getTime() && (x.getTime() < setj.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  Putting:  You must &#34;see&#34; the imaginary line - from the ball to the cup.  There are very few putts that you aim straight at the hole! However, putting is mostly about speed, not aim.  If the putt breaks more than a couple of inches, you need to get both right in order to make the putt.")
}

// CHECK DATE IF BETWEEN AUG 5 AND AUG 12
if (x.getTime() >= setj.getTime() && (x.getTime() < setk.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  As the old saying goes, &#34;99% of putts that don&#39;t reach the cup don&#39;t go in, and the other 1% is short&#34;. ")
}

// CHECK DATE IF BETWEEN AUG 12 AND AUG 19
if (x.getTime() >= setk.getTime() && (x.getTime() < setl.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  Beginning golfers should ALWAYS play to go beyond the hole. Ideally, your misses will stop 18&#34; after the hole. Better to be long by 3 feet than short by 6&#34;. At least you know the miss could have gone in.")
}

// CHECK DATE IF BETWEEN AUG 19 AND AUG 26
if (x.getTime() >= setl.getTime() && (x.getTime() < setm.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  The average golfer 3 putts or more than 7 times a round. One reason is your eyes play tricks on you. If you have a 20 foot putt, your eyes are going to think that it&#39;s about 16 feet. Factor in a couple feet for longer putts. ")
}

// CHECK DATE IF BETWEEN AUG 26 AND SEP 1
if (x.getTime() >= setm.getTime() && (x.getTime() < setn.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  Putter Alignment: place the ball down so that the logo points straight down the line -- don&#39;t point the logo at the hole point it at your line. Then, simply align your putter head so that it is perpendicular to the logo.")
}

// CHECK DATE IF BETWEEN SEP 1 AND OCT 1
if (x.getTime() >= setn.getTime() && (x.getTime() < seto.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  When putting pick out an intermediate target two or three feet in front of your ball: a discoloration in the green or a repaired ball mark that lies directly on your intended line. When you are aiming your putter head focus on this intermediate target.")
}

// CHECK DATE IF BETWEEN OCT 1 AND NOV 1
if (x.getTime() >= seto.getTime() && (x.getTime() < setp.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  The easiest way to align your putter head correctly is to stand behind the ball and look at your line-- then carefully place the putter head behind the ball aiming towards your target line. Walk around to the side of the ball and take your putting posture.")
}

// CHECK DATE IF BETWEEN NOV 1 AND DEC 1
if (x.getTime() >= setp.getTime() && (x.getTime() < setq.getTime()))
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  	Build Your Confidence!! Approach each putt believing you&#39;ll make it. But if you don&#39;t, be realistic: remind yourself that even the best players in the world only make about 50% of six foot putts.")
}




// CHECK DATE IF GREATER THAN END OF CALENDER SCHEDULE
if (x.getTime() >= setq.getTime())
{
document.write("&nbsp TIP OF THE WEEK: <br> &nbsp  Check this site for tips and golf information!")
}