function prepare_form()
{
	var inputs = document.getElementsByTagName('input');

	for(var i = 0, n = inputs.length; i < n ; ++i)
	{
		var theInput = inputs[i];
		if(theInput.type == 'text')
		{
			theInput.defaultValue = theInput.value;
			theInput.onfocus = function(){if(this.value == this.defaultValue) this.value = '';}
			theInput.onblur  = function(){if(this.value == '') this.value = this.defaultValue;}
		}
	}

	var areas = document.getElementsByTagName('textarea');
	for(var j = 0, nn = areas.length; j < nn ; ++j)
	{
		var theArea = areas[j];
		theArea.defaultValue = theArea.value;
		theArea.onfocus = function(){if(this.value == this.defaultValue) this.value = '';}
		theArea.onblur  = function(){if(this.value == '') this.value = this.defaultValue;}
	}
	
}

function submit_send_form()
{
	var inputs = document.getElementsByTagName('input');
	for(var i = 0, n = inputs.length; i < n ; ++i)
	{
		var theInput = inputs[i];
		if(theInput.value == theInput.defaultValue) theInput.value = '';
	}

	var areas = document.getElementsByTagName('textarea');
	for(var j = 0, nn = areas.length; j < nn ; ++j)
	{
		var theArea = areas[j];
		if(theArea.value == theArea.defaultValue)theArea.value = '';
	}

	document.forms[0].submit();
}

