function isEmpty1()
{
 var x=document.gb.name.value;
 var y=document.gb.comment.value;
 var z=document.gb.zip.value;
 var c=document.gb.country.value;
 var em=document.gb.email.value;
 var a=document.gb.Address.value;

 if(x=="")
 {
  alert("The name field is empty.")
  document.gb.name.select();
  document.gb.name.focus();
  return false;
 }
 else
 { 
  var i=0;
  for(i=0;i<x.length;i++)
  {
   if(x.charAt(i)<'A' || x.charAt(i)>'Z')
   {
    if(x.charAt(i)<'a' || x.charAt(i)>'z') 
    {
     if(!((x.charAt(i)=='.') || (x.charAt(i)==' ')  ))
     {
     alert("Only alphabets, a space and a . are allowed in the name field.");
     document.gb.name.select();
     document.gb.name.focus();
     return false;
     }
    }
   }
  }
 }


if(x!="")
{
x=x.toLowerCase();

	if(x.indexOf("http")!=-1 || x.indexOf("www")!=-1)
	{
	     alert("urls not accepted.")
 	     document.gb.name.select();
	     document.gb.name.focus();
	     return false;
	}
}


if(document.gb.Address.value=="")
 {
  alert("The address field is empty.")
  document.gb.Address.select();
  document.gb.Address.focus();
  return false;
 }


if(a!="")
{
a=a.toLowerCase();

	if(a.indexOf("http")!=-1 || a.indexOf("www")!=-1)
	{
	     alert("urls not accepted.")
 	     document.gb.Address.select();
	     document.gb.Address.focus();
	     return false;
	}
}


if(a!= "")
{
a=a.toLowerCase();

    if((a.indexOf("<")!=-1 && a.indexOf(">")!=-1) || (a.indexOf("&gt;")!=-1 && a.indexOf("&lt;")!=-1))
	{
         alert("html tags are not accepted.")
 	     document.gb.Address.select();
	     document.gb.Address.focus();
             return false;
    }
}


if(z!= "")
{
var i=0;
for(i=0;i<z.length;i++)
{
if(z.charAt(i)<'A' || z.charAt(i)>'Z')
{
if(z.charAt(i)<'a' || z.charAt(i)>'z')
{
if(z.charAt(i) < '0'|| z.charAt(i) > '9') 
{
if(!((z.charAt(i)=='-') || (z.charAt(i)==' ')))
{
alert("Special symbols are not allowed in the zip/pin code field.");
document.gb.zip.select();
document.gb.zip.focus();
return false;
}
}
}
}
}
}


if(z!="")
{
z=z.toLowerCase();

	if(z.indexOf("http")!=-1 || z.indexOf("www")!=-1)
	{
	     alert("urls not accepted.")
 	     document.gb.zip.select();
	     document.gb.zip.focus();
	     return false;
	}
}



 if(c=="")
 {
  alert("The country field is empty.")
  document.gb.country.select();
  document.gb.country.focus();
  return false;
 }
 else
 {
  var i=0;
  for(i=0;i<c.length;i++)
  {
    if(c.charAt(i) >='0' && c.charAt(i) <= '9') 
   {
     alert("Numbers are not allowed in the country field.");
     document.gb.country.select();
     document.gb.country.focus();
     return false;
     }
    }
  }

if(c!="")
{
c=c.toLowerCase();

	if(c.indexOf("http")!=-1 || c.indexOf("www")!=-1)
	{
	     alert("urls not accepted.")
 	     document.gb.country.select();
	     document.gb.country.focus();
	     return false;
	}
}


if(document.gb.country.value!="")
{
var str=document.gb.country.value
str=str.toLowerCase()

    if((str.indexOf("<")!=-1 && str.indexOf(">")!=-1) || (str.indexOf("&gt;")!=-1 && str.indexOf("&lt;")!=-1))
	{
         alert("html tags are not accepted.")
 	     document.gb.country.select();
	     document.gb.country.focus();
         return false;
    }
}



if(em=="")
 {
  alert("Please enter proper email address.");
  document.gb.email.select();
  document.gb.email.focus();
  return false;
 }
 if(em.indexOf("@") == -1)
 {
  alert(" Please enter proper email address.");
  document.gb.email.select();
  document.gb.email.focus();
  return false;
 }
 if(em.indexOf(".") == -1)
 {
  alert(" Please enter proper email address.");
  document.gb.email.select();
  document.gb.email.focus();
  return false;
 }

if(y == "" || isNaN(y)==false)
 {
  alert(" Please enter proper comment.");
  document.gb.comment.select();
  document.gb.comment.focus();
  return false;
 }


if(document.gb.comment.value!="")
{
var str=document.gb.comment.value
str=str.toLowerCase()

    if((str.indexOf("<")!=-1 && str.indexOf(">")!=-1) || (str.indexOf("&lt;")>0 && str.indexOf("&gt;")>0))
    {
         alert("html tags are not accepted.")
 	     document.gb.comment.select();
	     document.gb.comment.focus();
         return false;
    }
}

if(y!="")
{
y=y.toLowerCase();

	if(y.indexOf("http")!=-1 || y.indexOf("www")!=-1)
	{
	     alert("urls not accepted.")
 	     document.gb.comment.select();
	     document.gb.comment.focus();
	     return false;
	}
}

return true;
}


