function chgCls(menu, newClass) 
{ 
	if (document.getElementById) 
	{ 
		document.getElementById(menu).className = newClass; 
	} 
} 


function rollover(img_name, img_src)
{
	if (document.getElementById) 
	{ 
		theImage = document.getElementById(img_name);
		theImage.setAttribute("src", img_src); 
	} 
//	document[img_name].src = img_src;
}

function toggle(theID, nosave)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		var style2 = document.getElementById(theID).style;
		style2.display = style2.display? "":"none";
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[theID].style;
		style2.display = style2.display? "":"none";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[theID].style;
		style2.display = style2.display? "":"none";
	}

	// create an instance of the Date object
		var now = new Date();
			
	/*
		cookie expires in one year (actually, 365 days)
		365 days in a year
		24 hours in a day
		60 minutes in an hour
		60 seconds in a minute
		1000 milliseconds in a second
	*/

	if ( nosave != "" && nosave != null )
	{
		if ( style2.display != null && style2.display != "" )
		{
			//now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
			now.setTime(now.getTime()+24*60*60*1000);
			setCookie ( theID, style2.display, now );
		}
		else
			deleteCookie( theID );
	}
}

function setForm()
{
	if ( getCookie ("classifieds") != null )
		toggle("classifieds");
	if ( getCookie ("community") != null )
		toggle("community");
	if ( getCookie ("housing") != null )
		toggle("housing");
	if ( getCookie ("jobpostings") != null )
		toggle("jobpostings");
	if ( getCookie ("lookingforworkresumes") != null )
		toggle("lookingforworkresumes");
	if ( getCookie ("personals") != null )
		toggle("personals");
	if ( getCookie ("services") != null )
		toggle("services");
	if ( getCookie ("wanted") != null )
		toggle("wanted");
	if ( getCookie ("artsentertainment") != null )
		toggle("artsentertainment");
}
