document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/udm-resources/udm-custom.js"></scr'+'ipt>');
document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/udm-resources/udm-control.js"></scr'+'ipt>');
//document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/udm-resources/udm-style.js"></scr'+'ipt>');                
document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/sifr.js"></scr'+'ipt>'); 

//Erase the standard text in the textbox. If nothing is entered the standard text will be displayed again.

//the function starts when the whole site is loaded
window.onload = valueToogle;


//Label for the search field
var stValue ="Search term"

function valueToogle() {

	
	if (SearchTerm = document.getElementById('search_term')) {
		SearchTerm.value = stValue;
		SearchTerm.onfocus = emptyValue;
		SearchTerm.onblur = refillValue;
	}
}

function emptyValue() {
	if (SearchTerm.value == stValue) {
		SearchTerm.value = "";
		SearchTerm.style.backgroundColor = "#666666";
	}
}

function refillValue() {
	if (SearchTerm.value == "") {
		SearchTerm.value = stValue;
		SearchTerm.style.backgroundColor = "#777779";
	}
}





function toggle1(ele){
	if(ele.style.display == 'none'){
		ele.style.display = 'block'
	}else{
		ele.style.display = 'none'
	}	

}




function checkForm(ele){
	return true;
	
	if(!ele.itemcode.value){
		alert('Please insert Part Product Number');
		ele.itemcode.focus();
		return false;
	}

	if(ele.itemcode.value.length < 4){
		alert('Please insert string with more than 3 digits');
		ele.itemcode.focus();
		return false;
	}


return true;
}








