function validate_form2(thisform) 
{
with (thisform)
{
var nonamemsg2 = String.fromCharCode(1576,1585,1580,1575,1569,32,1573,1583,1582,1575,1604,32,1575,1604,1575,1587,1605);
var nofnamemsg2= String.fromCharCode(1576,1585,1580,1575,1569,32,1573,1583,1582,1575,1604,32,1575,1587,1605,32,1589,1583,1610,1602,1603);
var noemailmsg2 = String.fromCharCode(1576,1585,1580,1575,1569,32,1573,1583,1582,1575,1604,32,1575,1604,1576,1585,1610,1583,32,1575,1604,1573,1604,1603,1578,1585,1608,1606,1610);
var emailerrormsg2 = String.fromCharCode(1576,1585,1580,1575,1569,32,1571,1583,1582,1575,1604,32,1575,1604,1576,1585,1610,1583,32,1575,1604,1573,1604,1603,1578,1585,1608,1606,1610,32,1576,1591,1585,1610,1602,1577,32,1589,1581,1610,1581,1577);
var thankyoumsg2 = String.fromCharCode(1604,1602,1583,32,1578,1605,32,1573,1585,1587,1575,1604,32,1575,1604,1605,1608,1602,1593,32,1604,1589,1583,1610,1602,1603);
if (validate_required2(sender_name,nonamemsg2)==false)
	{sender_name.focus();return false;}
else if (validate_required2(friend_name,nofnamemsg2)==false)
	{friend_name.focus();return false;}
else if (validate_required2(email,noemailmsg2)==false)
	{email.focus();return false;}
else if (validate_email2(email,emailerrormsg2)==false)
	{email.focus();return false;}
else {alert(thankyoumsg2);
return true;}
}

function validate_required2(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false;}
else {return true}
}
}

function validate_email2(field,alerttxt)
{
with (field)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2) 
  {alert(alerttxt);return false;}
else {return true;}
}
}
}