submitSearchKey = function(){
	var val = document.getElementById("selectIndustry").value;
	var word = document.getElementById("word").value;
	if(word != ""){
		document.getElementById("searchKey").submit();
	}
	else{
		document.getElementById("wordError").style.display = "block";
	}
}
testForm = function(){
	document.getElementById("wordError").style.display = "none";
	var val = document.getElementById("selectIndustry").value;
	var word = document.getElementById("word").value;
	if(val != "#" && word != ""){
		tomb = document.getElementById("submitKeyword");
		tomb.className = "activeSubmit";
		tomb.onclick = submitSearchKey;
	}
	else{
		tomb = document.getElementById("submitKeyword");
		tomb.className = "inactiveSubmit";
		tomb.onclick = null;
	}
}
initSearchKey = function(){

	if (document.getElementById("selectIndustry")) {
	
		document.getElementById("selectIndustry").onchange = testForm;
		document.getElementById("word").onmouseout = testForm;
		document.getElementById("word").onchange = testForm;
		testForm();
	}
}
addEvent(window, "load", initSearchKey);
//OnDOMLoad(initSearchKey, window);