function DisplayYear()
{
	today = new Date();
	document.write( today.getFullYear() );	
}

		
function clearText(thefield)
{
	if (thefield.defaultValue==thefield.value)
		thefield.value = ""
} 

function onDisplayRightHandColumn( siteID )
{
	document.write( '<iframe frameborder=0 src="/ard/rhcl.asp?AID=' + siteID + '&Source=' + escape( document.location ) + '" scrolling=no width=100% height=100% allowtransparency="yes"></iframe>' );
}

function onQuickLogonSubmit()
{
	// This is cross browser safe code
	var	objEmail = document.getElementById( 'QuickLogon_emailAddress' );
	var objPassword = document.getElementById( 'QuickLogon_Password' );
	
	if ( objEmail.value.length == 0 )
	{
		alert( 'Please enter your Email address before continuing' );
		objEmail.focus();
		return false;
	}

	if ( objPassword.value.length == 0 ) 
	{
		alert( 'Please enter your Password before continuing' );
		objPassword.focus();
		return false;
	}

	return true;
}

if (document.getElementById)
document.documentElement.className = 'jsclass';


var randomcontentdisplay={
	divholders:new Object(),
	masterclass: "randomcontent",

	init:function(){
		if (!document.getElementById)
			return
		var alldivs=document.getElementsByTagName("div")
		var randomcontentsearch=new RegExp(this.masterclass+"\\s+(group\\d+)", "i")
		for (var i=0; i<alldivs.length; i++){
			if (randomcontentsearch.test(alldivs[i].className)){
				if (typeof this.divholders[RegExp.$1]=="undefined")
					this.divholders[RegExp.$1]=new Array()
					this.divholders[RegExp.$1].push(alldivs[i])
			}
		}
	this.showone()
	},

	showone:function(){
		for (group in this.divholders){
			var chosenOne=Math.floor(Math.random()*this.divholders[group].length)
			this.divholders[group][chosenOne].style.display="block"
		}
	}
}
