// Script created by Nick Beech
// www.nbbs.co.uk; www.nbWebsiteDesign.co.uk
// www.LookAndLearnTraining.com and .co.uk
// This script is copyrighted but feel free to use it as you please


/*
Add this code to the index page just in the lower-links div, just below the facebook and youtube links:

  <!-- text added for LSC survey due to end at 23:59 on 12th Feb 2010 -->
  <!-- Javascript file is linked above scripts-cssjs-2010/change-homepage-title-2009-10.js -->
  <script type="text/javascript">
amendTitleText();
</script>

And add this to the head section:
<script type="text/javascript" language="javascript" src="scripts-cssjs-2010/change-homepage-title-2009-10.js">
</script>

*/


function amendTitleText(){

// create variables for dates
var todaysdate = new Date();
var changeduedate = new Date();
// set due date for change to take place 
changeduedate.setFullYear(2010,01,12);
changeduedate.setHours(23);
changeduedate.setMinutes(59);

// check to see whether expiry date has passed
if (todaysdate >= changeduedate) {
	document.write('');}


 else {
// show earlier text
	document.write('<p class="lsc-notice"><img src="images-2010/single-line.png" alt="Dividing line" width="850" height="7"><br /><img src="images-2010/lsc-survey-ani.gif" alt="Survey animated graphic" width="49" height="17"> <b>Have you had a letter asking you to take part in a survey about us? - DEADLINE: 12th February 2010!</b> <img src="images-2010/lsc-survey-ani2.gif" alt="Survey animated graphic" width="49" height="17"><br />It takes just a few minutes. This will help us make sure that you, and future students, get the<br />learning experience you want. <a href="https://surveys.globalepanel.com/wix/p453762382.aspx" target="_blank" style="color:black">Please click here to take part in the survey</a></p>');
}

}











