// based on...
//Custom javascript Functions by Shawn Olson Copyright 2004 http://www.shawnolson.net
//documentation for this script at http://www.shawnolson.net/a/503/
function setCSSAttributes(color1) {

	var elements = new Array();
	elements.push( new Array('.oneproduct', 'background', color1) );
	elements.push( new Array('.columcontainer .leftmenubar a:hover, .leftmenubar a.active', 'color', color1) );
	elements.push( new Array('.menubar a:hover, a.active', 'color', color1) );
	elements.push( new Array('.listofprod li', 'background', color1) );
	elements.push( new Array('.leftlist a:hover, .leftlist a.active', 'background', color1) );
	elements.push( new Array('.columcontainer .leftmenubar a.active1', 'color', color1) );
	elements.push( new Array('.columcontainer .leftmenubar a.active2', 'color', color1) );
	elements.push( new Array('.columcontainer .leftmenubar a.active3', 'color', color1) );

	var cssRules;
	if (document.all) {
			cssRules = 'rules';
	}
	else if (document.getElementById) {
		cssRules = 'cssRules';
	}
	for (var S = 0; S < document.styleSheets.length; S++){
		for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
			for ( var T = 0; T < elements.length; T++ ) {
				if (document.styleSheets[S][cssRules][R].selectorText == elements[T][0]) {
					document.styleSheets[S][cssRules][R].style[elements[T][1]] = elements[T][2];
					elements.splice(T,1);
				}
			}
		}
	}
}

function clrFld(e,v) {
	if ( e && v ) {
		if ( e.value == v ) e.value = "";
	}
}
