
function clearText(thisform, thistag) {
	eval("if (document." + thisform + "." + thistag + ".value == document." + thisform + ".defaultText.value) document." + thisform + "." + thistag + ".value = '';");
}
		
function changeColor(thistag, color, expandorno) {
	styleObj=document.getElementById(thistag).style;
	styleObj.backgroundColor=color;
	if (color == '#F2F2F2')
		styleObj.border='1px solid #DFDFDF';
	else
		styleObj.border='1px solid #FFFFFF';
	if (expandorno == 'expand') {
		thistag = thistag + "Expanded";
		styleObjExpand = document.getElementById(thistag).style;
		styleObjOpp = document.getElementById('defaultExpanded').style;
		if (styleObjExpand.display == 'none') {
			styleObjOpp.display = 'none';
			styleObjExpand.display = '';
		}
	   	else {
			styleObjOpp.display = '';
			styleObjExpand.display='none';
		}
	}
}

function simpleChangeColor(thistag, color) {
	styleObj=document.getElementById(thistag).style;
	styleObj.backgroundColor=color;
}

function simpleExpand(thistag, expandorno) {
	style = document.getElementById(thistag).style;
	styleExp = document.getElementById(thistag + "Expanded").style;
	if (expandorno == 'expand') {
		style.display = 'none';
		styleExp.display = '';
	}
	else if (expandorno == 'hide') {
		style.display = '';
		styleExp.display = 'none';
	}
}		