function searchBoxFocused(defaultSearchLabel){
	var searchBoxInput = document.getElementById("searchQuery");
	
	if (searchBoxInput != null)
	{
		if(searchBoxInput.value == defaultSearchLabel)
		{
			searchBoxInput.value = '';
			searchBoxInput.style.fontStyle = '';
			searchBoxInput.style.color='#000000';
		}
	}
}

function searchBoxBlur(defaultSearchLabel){
	var searchBoxInput = document.getElementById("searchQuery");
	
	if (searchBoxInput != null)
	{
		if(searchBoxInput.value.replace(/(^\s*)|(\s*$)/g, '')=='') 
		{
			searchBoxInput.value=defaultSearchLabel;
	//		searchBoxInput.style.fontStyle ='Italic';
	//		searchBoxInput.style.color = "#a1a1a1";
			isInputqu = false;
		 }
		 else
		 {
			isInputqu = true;
		 }
	 }
}

function submitenter(myfield,e) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) {
		keycode = e.which;
	}
	else {
		return true;
	}

	if (keycode == 13){
	   myfield.form.submit();
	   return false;
	}
	else{
	   return true;
	}
}

function submitChange(myfield, defaultSearchLabel) {
	var searchBoxInput = document.getElementById("searchQuery");
	
	if (searchBoxInput != null)
	{
		if(searchBoxInput.value == defaultSearchLabel)
		{
			searchBoxInput.value = '';
			searchBoxInput.style.fontStyle = '';
			searchBoxInput.style.color='#000000';
		}
	}
	// bei wechsel des products die eingabe in industrie löschen.
	if(myfield.name == "product"){
		document.getElementById("industrie").value="";
	}
	myfield.form.submit();
}