var sxaRandMsg=new Array();
sxaRandMsg[0]='You can view previous versions of documents in their entirety through the Change Tracking System interface.';
sxaRandMsg[1]='You can print a single section, or a paragraph with all its subordinate paragraphs, with the Printer Friendly tool.';
sxaRandMsg[2]='You can go right to a direct citation, e.g. <i>40 CFR 263.22(c)</i>, by entering it in the Citation Search feature.';
sxaRandMsg[3]='The semi-annual Unified Agenda can be found in the Federal Bookshelf.';
sxaRandMsg[4]='You can change your password, email address, and other personal information (under the Options menu).';
sxaRandMsg[5]='You can alter the order of the Global Toolbar items, and the appearance of the Document and Section Toolbars.';
sxaRandMsg[6]='Keyword Search pre-selects scope conditions based where you were when you selected it.';
sxaRandMsg[7]='My Site Log provides you with a history of where you\'ve been on the ASTM Dot Web Portal, by pages, sessions, or dates.';
sxaRandMsg[8]='With RegMatch, you can find matching regulations across jurisdictions based on a customizable list of words found in a section.';
sxaRandMsg[9]='Community Email\'s list of co-workers can be organized into groups -- call customer support to get started.';
sxaRandMsg[10]='You can obtain a list of documents that reference the one you are reading via the Reverse Links feature.';



function Copyright()
{
    currentDate = new Date();
    if (document.all)
        theYear = currentDate.getYear();
    else if (document.layers || document.getElementById)
        theYear = currentDate.getYear() + 1900;

    document.writeln(' &copy; 1991-' + theYear + '. All Rights Reserved. 800-808-3372');
}

function InlineCopyrightYears()
{
    currentDate = new Date();
    if (document.all)
        theYear = currentDate.getYear();
    else if (document.layers || document.getElementById)
        theYear = currentDate.getYear() + 1900;

    document.writeln('1991-'+theYear);
}


function PageLoad(){
	GenRandMsg('RandContentBox');
}

function GenRandMsg(sxId){
	var e=document.getElementById(sxId);
	if(e==null)
		return;
	var iIndex=(Math.round((Math.random()*(sxaRandMsg.length-1))));
	e.innerHTML=sxaRandMsg[iIndex];	


}

function ValidateContactUs(eForm){
	if(eForm==null)
		return true;

	if(eForm.fullname.value.length==0){
		alert('Please fill in your name.');
		return false;						
	}

	if(eForm.email.value.length==0&&eForm.phone.value.length==0){
		alert('Please fill in your phone number or email address.');
		return false;						
	}

	if(eForm.comments.value.length==0){
		alert('Please fill in the comments box to give us an idea of how we can serve you.');
		return false;						
	}

	return true;
}