function setStyle(row, backgroundColor, textColor) {
	if (backgroundColor == '' || typeof(row.style) == 'undefined') {
		return false;
	}
	if (typeof(document.getElementsByTagName) != 'undefined') {
		var theCells = row.getElementsByTagName('td');
	}
	else if (typeof(row.cells) != 'undefined') {
		var theCells = row.cells;
	}
	else {
		return false;
	}

	var rowCellsCnt  = theCells.length;
	for (var c = 0; c < rowCellsCnt; c++) {
		theCells[c].style.backgroundColor = backgroundColor;
		theCells[c].style.color = textColor;
	}
	
	return true;
}

function viewExamples(viewWhat) {
	var table1 = document.getElementById('idMultifamily');
	var table2 = document.getElementById('idBusiness');
	
	if( viewWhat == "multifamily" ) {
		if(table1.className == "samplesShow") {
			table1.className = "samplesHide";
		} else {
			table1.className = "samplesShow";
			table2.className = "samplesHide";
		}
	} else {
		if(table2.className == "samplesShow") {
			table2.className = "samplesHide";
		} else {
			table1.className = "samplesHide";
			table2.className = "samplesShow";
		}
	}
}