function VerifyTips()
{
	if(document.Form4.txtFrom.value == "" || document.Form4.txtFrom.value.indexOf("@") < 2 || document.Form4.txtFrom.value.indexOf(".") < 2)
	{
		alert("Vennligst tast inn en gyldig e-post adresse!");
		document.Form4.txtFrom.focus();
		return false;
	}
	else if(document.Form4.txtTo.value == "" || document.Form4.txtTo.value.indexOf("@") < 2 || document.Form4.txtTo.value.indexOf(".") < 2)
	{
		alert("Vennligst tast inn en gyldig e-post adresse!");
		document.Form4.txtTo.focus();
		return false;
	}
	return true;
}	


function Erase(ID)
{
	if(ID == 1)
	{
		if(document.Form.txtName.value == "Skriv inn navn")
		{
			document.Form.txtName.select();
			document.Form.txtName.style.color = '#000000';
		}
	}
	else if(ID == 2)
	{
		if(document.Form.txtEmail.value == "Skriv inn e-post her")
		{
			document.Form.txtEmail.select();
			document.Form.txtEmail.style.color = '#000000';
		}
	}
	else if(ID == 3)
	{
		if(document.Form.txtDesc.value == "Hva henvendelsen gjelder")
		{
			document.Form.txtDesc.select();
			document.Form.txtDesc.style.color = '#000000';
		}
	}
}

function Reverse(ID)
{
	if(ID == 1)
	{
		if(document.Form.txtName.value == "")
		{
			document.Form.txtName.value = "Skriv inn navn";
			document.Form.txtName.style.color = '#999999';
		}
	}
	else if(ID == 2)
	{
		if(document.Form.txtEmail.value == "")
		{
			document.Form.txtEmail.value = "Skriv inn e-post her";
			document.Form.txtEmail.style.color = '#999999';
		}
	}
	else if(ID == 3)
	{
		if(document.Form.txtDesc.value == "")
		{
			document.Form.txtDesc.value = "Hva henvendelsen gjelder";
			document.Form.txtDesc.style.color = '#999999';
		}
	}
}

function Erase3(FormName,ElemName,Text)
{
	if(document.forms[FormName].elements[ElemName].value == Text)
	{
		document.forms[FormName].elements[ElemName].select();
		document.forms[FormName].elements[ElemName].style.color = '#333333';
	}
}

function Reverse3(FormName,ElemName,Text)
{
	if(document.forms[FormName].elements[ElemName].value == "" || document.forms[FormName].elements[ElemName].value == Text)
	{
		document.forms[FormName].elements[ElemName].value = Text;
		document.forms[FormName].elements[ElemName].style.color = '#aaaaaa';
	}
}

