function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\\\s)"+searchClass+"(\\\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
function scFormValidate(){
	var error = 0;
	var clarr = getElementsByClass("option",document,"div");
	for(var i=0;i<clarr.length;i++){
		if(clarr[i].firstChild.tagName=="select" || clarr[i].firstChild.selectedIndex==0){
			clarr[i].firstChild.style.backgroundColor = "#EEDDE3";
			error += 1;
		} else {
			clarr[i].firstChild.style.backgroundColor = "#ffffff";
		}
	}
	if(error>0){
		return false;
	}
}
