// JavaScript Document
function tellFriend()
{
	//alert("Inside tell a Friend");
	sWidth = screen.availWidth;

	sHeight = screen.availHeight;



	winWidth = 650;

	winHeight = 375;



	sLeft = (sWidth - winWidth) / 2;

	sTop = (sHeight - winHeight) / 2;


	var bname = navigator.appName;
	if (bname.search(/netscape/i) == 0)
   {
	window.open("tell-a-friend.php", "VisaTaxes.com", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");


   }
else if (bname.search(/microsoft/i) == 0)
   {
	window.open("tell-a-friend.php", "VisaTaxes", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
   }
else
{
	window.open("tell-a-friend.php", "VisaTaxes.com", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
}


return;
}
var flag1=0;
var flag2=0;
var flag3=0;
var flag4=0;



function checkyourName()
{
		var yourName=document.getElementById('yourName').value;
		if(yourName!="")
		{
			flag1=1;
			document.getElementById('result1').innerHTML = '<font  color="#00CC33" size="-2">OK</font>';	
		}
		else
		{
			flag1=0;
			document.getElementById('result1').innerHTML = '<font  color="#CC0000" size="-2">Enter Your Name</font>';	
		}
}

function checkfriendName()
{
		var yourName=document.getElementById('friendName').value;
		if(yourName!="")
		{
			flag2=1;

			document.getElementById('result3').innerHTML = '<font  color="#00CC33" size="-2">OK</font>';	
		}
		else
		{
			flag2=0;
			document.getElementById('result3').innerHTML = '<font  color="#CC0000" size="-2">Enter Your Friend\'s Name</font>';	
		}

}
function checkyourEmail()
{
		var email=document.getElementById('yourEmail').value;
		if(email!="")
		{
			flag3=1;
			
			document.getElementById('result2').innerHTML = '<font  color="#00CC33" size="-2">OK</font>';	
		}
		else
		{
			flag3=0;
			document.getElementById('result2').innerHTML = '<font  color="#CC0000" size="-2">Enter Your Email</font>';	
		}

}
function checkfriendEmail()
{
		var email=document.getElementById('friendEmail').value;
		if(email!="")
		{
			flag4=1;
			document.getElementById('result4').innerHTML = '<font  color="#00CC33" size="-2">OK</font>';	
		}
		else
		{
			flag4=0;
			document.getElementById('result4').innerHTML = '<font  color="#CC0000" size="-2">Enter Your Friend\'s Email</font>';	
		}

}

function checkSend()
{
		var email1=document.getElementById('yourEmail').value;
		var email2=document.getElementById('friendEmail').value;
		if((email1!="")&&(email2!=""))
		{
				return true;
		}
		else
		{
				alert("Email Fields are Mandatory");
				return false;
		}
		
}