function clearInputField(field,defaultValue){
	if(field && field.type=="text"){
		if(field.value==defaultValue) field.value="";
			if(!field.onblur){
			field.onblur=function(){
				if(this.value=="") this.value=defaultValue;
			}
		}
	}
}

function clearTextarea(field,defaultValue){
	if(field && field.type=="textarea"){
		if(field.value==defaultValue) field.value="";
			if(!field.onblur){
			field.onblur=function(){
				if(this.value=="") this.value=defaultValue;
			}
		}
	}
}

function submitform(object) {
	object.form.submit();
}

function disableButton(object,is) {
	object.value = 'Bitte warten...';
	if(!is) {
	object.form.submit();
	object.disabled = 'true';
	 }
}

function displayInline(objectname) {
	document.getElementById(objectname).style.display = 'inline';
}

function showdiv(div)
{
	document.getElementById('big1').style.display = 'none';
	document.getElementById('small1').style.display = 'none';
	document.getElementById('small2').style.display = 'none';
	document.getElementById('small3').style.display = 'none';
	document.getElementById('small4').style.display = 'none';

	document.getElementById(div).style.display = 'block';
}

function confirmBox(path)
{
	result = confirm('Wirklich löschen?');

	if(result)
	{
		window.location.href = path;
	}
}
