// JavaScript Document
function today_date()
{
date=new Date();
months=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
days=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
daydate.innerHTML=days[date.getDay()]+", "+months[date.getMonth()]+" "+date.getDate()+", "+date.getYear();
time.innerHTML=date.toLocaleString().substr(date.toLocaleString().lastIndexOf(' ')-8,11);
timer=setTimeout('today_date()',1000);
}

function writePageTitle()
{
pageTitle.innerHTML=document.title;
if(screen.width < 1024)
{
pageTitle.innerHTML+="<div id=\"Layer1\"  class=\"transp\" style=\" FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#000066,endColorStr=#99CCFF); position:absolute; width:"+parseInt(screen.width-20)+"; height:15px; z-index:100; background-color: #0066dd; layer-background-color: #0066dd; border: 1px solid #000000; left: 0; top: 0;\"><marquee class=\"white\" behavior=\"scroll\" scrolldelay=\"1\" scrollamount=\"3\">This page is best viewed in 1024x728. Your current resolution is "+screen.width+"x"+screen.height+". Please change it to 1024x728</marquee></div>";
}

}

function scrollBar()
	{

		with(document.body.style)
			{
				scrollbarDarkShadowColor = "#999999";
				scrollbar3dLightColor    = "#f9f9f9";
				scrollbarArrowColor      = "#009900";
				scrollbarBaseColor       = "#f7f7f7";
				scrollbarFaceColor       = "#dddddd";
				scrollbarHighlightColor  = "#F1F1F1";
				scrollbarShadowColor     = "#f0f0f0";
				scrollbarTrackColor      = "#f0f0f0";
			}
	}



function MaxLength(nsize,TextBoxId)
	{
		if(document.getElementById(TextBoxId).innerText.length > nsize)
		{

		 document.getElementById(TextBoxId).innerText = document.getElementById(TextBoxId).innerText.substr(0,nsize); 

		} 
	}
