function validatemember()
{	
	var s1=getVal('memname');
	var s2=getVal('email');
	var s3=getVal('countryname');
	var s4=getVal('contactno');
	var s5=document.getElementById('terms').checked;
	
	if(s1=="" || s1=="Your Name")
	{
		alert("Name field is empty.");
		return false;
	}
	if(s2=="" || s2=="Email Address")
	{
		
		alert("Email address field is empty.");
		
		return false;
	}
	if(s2!="" || s2 != "Email Address")
	{
		if((emailverify(s2)) == false)
		{
			alert("Invalid email address.");
			return false;
		}
		
	}
	if(s3=="" || s3=="Country")
	{
		alert("Country Name field is empty.");
		return false;
	}
	if((IsNum(s4)) == false)
		{
			alert("Invalid contact no.");
			return false;
		}
	if(s5==false)
	{
		alert("You must agree with terms & conditions ");
		return false;
	}
	return true;
}


function validateenquiry()
{	
	var s1=getVal('fullname');
	var s2=getVal('email');
	var s3=getVal('address');
	var s4=getVal('contactno');
	
	
	if(s1=="")
	{
		alert("Name field is empty.");
		return false;
	}
	if(s3=="")
	{
		alert("Address field is empty.");
		return false;
	}
	if(s2=="")
	{
		
		alert("Email address field is empty.");
		
		return false;
	}
	if(s2!="")
	{
		if((emailverify(s2)) == false)
		{
			alert("Invalid email address.");
			return false;
		}
		
	}
	if(s4=="")
	{
		
		alert("Contact no. field is empty.");
		
		return false;
	}
	if(s4!="")
	{
	
		if((IsNum(s4)) == false)
			{
				alert("Invalid contact no.");
				return false;
			}
	}
	return true;
}
