// JavaScript Document
function full()
{

				
	//****************email validation**************
	// check if email field is blank
	var frm1=document.frm1
	//alert("dsbfhsdjklfhkldsjk");
		if (frm1.email.value=="")
			{
			alert("Please enter a value for the \"Email\" field.");
			frm1.email.focus();
			return(false);
			}
			
			
// test if valid email address, must have @ and .
	
	var checkEmail = "@.";
	var checkStr = frm1.email.value;
	var EmailValid = false;0000000000
	var EmailAt = false;
	var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
			ch = checkStr.charAt(i);
				for (j = 0;  j < checkEmail.length;  j++)
				{
					if (ch == checkEmail.charAt(j) && ch == "@")
						EmailAt = true;
					if (ch == checkEmail.charAt(j) && ch == ".")
						EmailPeriod = true;
		  			if (EmailAt && EmailPeriod)
				break;
      	  		if (j == checkEmail.length)
				break;
			}

				// if both the @ and . were in the string
				if (EmailAt && EmailPeriod)
				{
					EmailValid = true
					break;
				}
		}
			
			if (!EmailValid)
				{
					alert("Invalid email ID ! Please enter your valid email ID.");
					frm1.email.focus();
					return(false);
				}  
				// check to see if the field is blank
	
	if((frm1.message.value=="")||(frm1.message.value.indexOf('@',0) !=-1))		
		{
			alert("Please enter a message.");
			frm1.message.focus();
			return(false);
			}
			
			}

function Full2 (frm2)
{
// check to see if the field is blank
	
	if((frm2.name.value=="")||(frm2.name.value.indexOf('@',0) !=-1))		
		{
			alert("Please enter a name.");
			frm2.name.focus();
			return(false);
			}
				
	//****************email validation**************
	// check if email field is blank
		if (frm2.email.value == "")
			{
			alert("Please enter a value for the \"Email\" field.");
			frm2.email.focus();
			return(false);
			}

// test if valid email address, must have @ and .
	
	var checkEmail = "@.";
	var checkStr = frm2.email.value;
	var EmailValid = false;0000000000
	var EmailAt = false;
	var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
			ch = checkStr.charAt(i);
				for (j = 0;  j < checkEmail.length;  j++)
				{
					if (ch == checkEmail.charAt(j) && ch == "@")
						EmailAt = true;
					if (ch == checkEmail.charAt(j) && ch == ".")
						EmailPeriod = true;
		  			if (EmailAt && EmailPeriod)
				break;
      	  		if (j == checkEmail.length)
				break;
			}

				// if both the @ and . were in the string
				if (EmailAt && EmailPeriod)
				{
					EmailValid = true
					break;
				}
		}
			
			if (!EmailValid)
				{
					alert("Invalid email ID ! Please enter your valid email ID.");
					frm2.email.focus();
					return(false);
				}  
				
			
			if((frm2.country.value=="")||(frm2.country.value.indexOf('@',0) !=-1))		
		{
			alert("Please enter your country name.");
			frm2.country.focus();
			return(false);
			}
			
			//***************phone*********
		if (frm2.telephone.value =="")
		
		{	
		alert("Please enter your valid phone no.");
		frm2.telephone.focus();
		return(false);
	   }


	if (frm2.telephone.value !="")
	{
	if (isNaN(frm2.telephone.value))
		{	
		alert("Invalid Phone number ! Please enter your valid phone no.");
		frm2.telephone.focus();
		return(false);
	   }

	}
			
			// check to see if the field is blank
			
			if((frm2.shortdecription.value=="")||(frm2.shortdecription.value.indexOf('@',0) !=-1))		
		{
			alert("Please enter a short decription.");
			frm2.shortdecription.focus();
			return(false);
			}
			}
