function printdate()
{
// Array of day names
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

// Array of month Names
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

var now = new Date();
document.write("<span style='color:#ff0000;font-size:15;font-weight:bold'>" + dayNames[now.getDay()] + ", " + 
monthNames[now.getMonth()] + " " + 
now.getDate() + ", " + now.getFullYear() + "</span>");
}



function updatemenu(page)
{

var pagetitle= new Array("Index","OnlineHelp","Download","Developer","Email");
var pagedoc= new Array("index.html","onlinehelp.html","download.html","aboutthedeveloper.html","mailto:wealth_calculator@yahoo.com.sg?subject=Wealth Calculator");
var pagemsg= new Array("Home","Online Help","Download","Developer","Email");
// var pagetitle= new Array("Index","OnlineHelp","Download","Developer","Contact");
// var pagedoc= new Array("index.html","onlinehelp.html","download.html","aboutthedeveloper.html","contact.html");
// var pagemsg= new Array("Home","Online Help","Download","Developer","Contact");



document.write("<table border='0' width='100%' align='center'>");
document.write("<tr>");
for (i=0;i<pagetitle.length;i++)
{

  if (page==pagetitle[i])
  {
   	document.write("<td align='center' width='1%' style='background:url(picturefiles/menuactive.gif)'><a class='menu' href=" + pagedoc[i] + "><span class='activepage'>" + pagemsg[i] + "</span></a></td>");
  }
  else
  {
  	document.write("<td align='center' width='1%' background='picturefiles/menu.gif'><a class='menu' href=" + pagedoc[i] + ">" + pagemsg[i] + "</a></td>");
  }
}
document.write("</tr></table>");
document.write("<br /> ");

}


// The script will scroll any text along the status bar
function scrollit(msg,seed) 
{
// var m1 = "Online Help";
// var m2 = " brought to you by Wealth Calculator";
//var msg="Online Help brought to you by Wealth Calculator";
var out = " ";
var c = 1;
if (seed > 100) 
	{
	seed--;
	cmd="scrollit(\""+msg+"\","+seed+")";
	timerTwo=window.setTimeout(cmd,100);
	}
else if (seed <= 100 && seed > 0) 
	{
	for (c=0 ; c < seed ; c++) 
		{
		out+=" ";
		}
	out+=msg;
	seed--;
	window.status=out;
	cmd="scrollit(\""+msg+"\","+seed+")";
	timerTwo=window.setTimeout(cmd,100);
	}
else if (seed <= 0) 
	{
	if (-seed < msg.length) 
		{
		out+=msg.substring(-seed,msg.length);
		seed--;
		window.status=out;
		cmd="scrollit(\""+msg+"\","+seed+")";
		timerTwo=window.setTimeout(cmd,100);
		}
	else 
		{
		window.status=" ";
		cmd="scrollit(\""+msg+"\","+"100)";
		timerTwo=window.setTimeout(cmd,75);
		//timerTwo=window.setTimeout("scrollit(msg,100)",75);
		}
	}
}


function disp_window(value)
{

    window.open(value,"Onlinehelp");
}

function goBack()
{
  {
  window.history.back();
//    alert(history.length);

  }
}

