<!--
//PROTOTYPE OBJECT FORM////////////////////////////////////////////////////////////////////////////////////
//PROTOTYPE OBJECT FORM////////////////////////////////////////////////////////////////////////////////////
//PROTOTYPE OBJECT FORM////////////////////////////////////////////////////////////////////////////////////

//CONSTRUCTOR//////////////////////////////////////////////////////////////////////////////////////////////
function objectForm(id_input,text_over)
{
this.id_input = document.getElementById(id_input);
this.text_over = text_over;
this.id_input.value = this.text_over;
this.showText();
this.hideText();
}

//FUNCTION//////////////////////////////////////////////////////////////////////////////////////////////////
objectForm.prototype.initText=function()
{
	if(this.id_input.value =='')
	{
	this.id_input.value = this.text_over;
	}
}

objectForm.prototype.emptyText=function()
{
	if(this.id_input.value == this.text_over)
	{
	this.id_input.value = '';
	}
}

objectForm.prototype.showText=function()
{
	var reference = this;
	this.id_input.onfocus = function()
	{
	reference.emptyText();
	}
}

objectForm.prototype.hideText=function()
{
	var reference = this;
	this.id_input.onblur = function()
	{
	reference.initText();
	}
}
-->