/********************************************************************************

* Note:                                                                         *

* 1)Initialise dates,days,time,month here                                       *

* 2)Text/string/character must be enclosed within quotes                        *

* 3)Hours must be in 24hr format                                                *

* 4)Please sign off in the SCRIPT LOG provided below                            *

*                                                                               *

* SCRIPT LOG                                                                    *

*    Editor  /  Date Edited  /  Remarks                                         *

* ------------------------------------------------------------------------------*

* 1) Yati    /  19 May 2004  /  Creation of JS file                             *

* 2) Yati    /  18 Jan 2005  /  JS file enhanced to check by YYYYMMDD           *

* 3) v.1.03 Yati	/ 23 Mar 2006 / This version of jsfile should be in sync
     with the new webCSM homepage look                                          *
	 
* 4) eCR DTSP-7QQA3R - scrolling message
	 IMPORTANT : Variables to edit are marqueecontent

*********************************************************************************/

//Initialise HERE

// Set the dates below

// format = YYYYMMDD

var goLiveDate = "20100101"; //start

var expireDate = "20101231"; //end

var endhour = 23;

//specify width of table that stores the msg
var w = "100%"

/*******************************scrolling message variables********************************/
/*new for eCR DTSP-7QQA3R*/
/*do not use the variable msg and title anymore*/

	//Specify the marquee's content

	//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
        //#0000FF - blue colour for holiday notice
        //#FF0000 - red colour for Downtime
        //#009900 - green colour for general announcements (Software Alert, Archiving)
        //#FF00FF - magenta colour for Application (Download Bayplan) 

var marqueecontent="<br><b><font color=\"#FF00FF\">Download Bayplan Program</font></b><br><br>Kindly download the latest Bayplan Validation program <b>bp1_21.zip as of 8th July</b> before executing Bayplan Validation. Pls proceed to Download Bayplan Program.<br><br><br><b><font color=\"#009900\">Alert - Software Update</font></b><br><br>Please <b>DO NOT</b> download/ auto-update IE8 software to prevent any incompatibility with webCSM until further advice.<br><br><br>You may raise helpdesk logs or contact us at our Support Hotline - (65) 9789 6001 for urgent matters."


	//Specify the marquee's width (in pixels) - shld remain unchanged

	var marqueewidth="174px"

	//Specify the marquee's height - shld remain unchanged

	var marqueeheight="190px"
	
/*********************************************************************************************/


//title="<br><b><font color=\"#009900\">Agents Directory</font></b>";

//msg="All agents are required to update respective Agents Directory within 2 weeks - deadline is <b>18-Apr-09 (Sat)</b>.<br><br><b><font color=\"#0000FF\">Public Holiday</font></b><br>Our office is closed on<br><b>10-Aug-09 (Fri)</b>, being replacement holiday for Singapore's National Day. <br><br>You may raise helpdesk logs or contact us at our Support Hotline - (65) 9789 6001 for urgent matter.";

moremsg="No";

var expireYear = expireDate.substring(0,4)

var expireMonth = expireDate.slice(4,-2)

var expireDay = expireDate.slice(6)

var liveYear = goLiveDate.substring(0,4)

var liveMonth = goLiveDate.slice(4,-2)

var liveDay = goLiveDate.slice(6)

/*

moremsg is defaulted to "No".

if you have any other extra msg, please include it in the moremsg in HTML format

i.e. inclusive of <BR> or other HTML tags where applicable.

*/



////NO NEED TO EDIT BELOW THIS LINE////////////

function getstartdate()

{

  return goLiveDate;

}


function getenddate()

{

  return expireDate;

}



function getmth()

{

  return month1;

}



function getday()

{

  return day;

}



function getendhour()

{

  return endhour;

}



function gettitle()

{

  return title;

}


function getmsg() 

{

  return msg;

}

function getmarqueecontent() 
{

  return marqueecontent;

}

function getmarqueewidth()
{

  return marqueewidth;

}

function getmarqueeheight()
{

	return marqueeheight;

}

function getmarqueespeed()
{

	return marqueespeed;

}

function getpauseit()
{

	return pauseit;

}

function getmoremsg()

{

  return moremsg;

}

function getwidth()

{

  return w;

}


