function clearText(id)
  {	
    var mn = document.form1.elements[id];
	if ((mn.value=="your name")||(mn.value=="your email")) {mn.value="";}
	return;
  }
function clearField(name)
  {
    var fn = eval("document.form1." + name);
	if ((fn.value=="")||(fn.value.length <5)){return;}
	else
	{
		var firstpart = fn.value.substring(0,4);
		if ((firstpart=="your")||(firstpart=="Tele")||(firstpart=="find")) {fn.value="";}
		return;
	}
  }

function isValidEmail2(str) 
{	// function tests for valid email address - quite a good check
	ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
	for(i=0; i < str.length ;i++)
	{
		if(ok.indexOf(str.charAt(i))<0)
		{ 
			return (false);
		}	
	} 
	if (document.images) 
	{
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (!str.match(re) && str.match(re_two)) 
		{
			return (-1);		
		} 
	}
}

