function validation ()
{
	function is_numeric(value)
	{
		var numaric = value;
		for(var j=0; j<numaric.length; j++)
		{
			var value = numaric.charAt(j);
			var hh = value.charCodeAt(0);
			if(hh > 47 && hh<58)
			{
			}
			else
			{
				return false;
			}
		}
		 return true;
	}
	
	if(document.frmContactUS.txtName.value == "")
	{
		alert("Please enter name");
		document.frmContactUS.txtName.focus();
		return false;
	}

	/*if(document.frmContactUS.txtAddress.value == "")
	{
		alert("Please enter address");
		document.frmContactUS.txtAddress.focus();
		return false;
	}*/
	
	if(document.frmContactUS.txtCity.value == "")
	{
		alert("Please enter city");
		document.frmContactUS.txtCity.focus();
		return false;
	}
	/*if(document.frmContactUS.txtZip.value == "")
	{
		alert("Please enter zip");
		document.frmContactUS.txtZip.focus();
		return false;
	}
	else if (isNaN(document.frmContactUS.txtZip.value))
	{
		alert("Please enter valid zip,zip code should be numeric");
		document.frmContactUS.txtZip.focus();
		return false;
	}	*/

	if((document.frmContactUS.txtEmail.value == "") || (document.frmContactUS.txtEmail.value == "enter e-mail address here"))
	{
		alert("Please enter e-mail address");		
		document.frmContactUS.txtEmail.focus();	
		return false;
	}
	else
	{
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.frmContactUS.txtEmail.value))
		{
			
		}
		else
		{
			alert("Enter valid e-mail address")
			document.frmContactUS.txtEmail.focus();	
			return (false);
		}
	}
	
	if((document.frmContactUS.txtPhone.value == ""))
	{
		alert("Please enter your phone number");
		document.frmContactUS.txtPhone.focus();
		return false;	
	}
	else{
		if (/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/.test(document.frmContactUS.txtPhone.value))
		{
			
		}
		else
		{
			alert("Please enter valid phone number");
			document.frmContactUS.txtPhone.focus();	
			return false;
		}
	}
/*	else
	{
		if(is_numeric(document.frmLeftContact.txtPhone.value)==false)
		{
		alert("Please enter valid phone number,phone number should be numeric");
		document.frmLeftContact.txtPhone.focus();
		return false;
		}
	}	*/
	if(document.frmContactUS.txtComments.value == "")
	{
		alert("Please enter comments");
		document.frmContactUS.txtComments.focus();
		return false;
	}
}
function trim( str )
{
   return str.replace(/^\s*|\s*$/g,"");
}
function validationLeftContact ()
{
	function is_numeric(value)
	{
		var numaric = value;
		for(var j=0; j<numaric.length; j++)
		{
			var value = numaric.charAt(j);
			var hh = value.charCodeAt(0);
			if(hh > 47 && hh<58)
			{
			}
			else
			{
				return false;
			}
		}
		 return true;
	}
	
	if(document.frmLeftContact.txtLeftName.value == "")
	{
		alert("Please enter name");
		document.frmLeftContact.txtLeftName.focus();
		return false;
	}
	if(document.frmLeftContact.txtLeftCity.value == "")
	{
		alert("Please enter city");
		document.frmLeftContact.txtLeftCity.focus();
		return false;
	}

	if((document.frmLeftContact.txtLeftEmail.value == "") || (document.frmLeftContact.txtLeftEmail.value == "enter e-mail address here"))
	{
		alert("Please enter e-mail address");		
		document.frmLeftContact.txtLeftEmail.focus();	
		return false;
	}
	else
	{
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.frmLeftContact.txtLeftEmail.value))
		{
			
		}
		else
		{
			alert("Enter valid e-mail address")
			document.frmLeftContact.txtLeftEmail.focus();	
			return (false);
		}
	}
	
	if((document.frmLeftContact.txtLeftPhone.value == ""))
	{
		alert("Please enter your phone number");
		document.frmLeftContact.txtLeftPhone.focus();
		return false;	
	}
	else{
		if (/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/.test(document.frmLeftContact.txtLeftPhone.value))
		{
			
		}
		else
		{
			alert("Please enter valid phone number");
			document.frmLeftContact.txtLeftPhone.focus();	
			return false;
		}
	}

	if(document.frmLeftContact.txtLeftComments.value == "")
	{
		alert("Please enter comments");
		document.frmLeftContact.txtLeftComments.focus();
		return false;
	}
	
	return jcap();

//  End -->
 }


