function checkfield(loginform)
{
	ok=true
	var xx=document.getElementById("validatecode").value;
	 if(loginform.Description.value=="")
	{
		alert("Please Enter Description.")
		loginform.Description.focus()
		ok=false
	}
	  else if(loginform.Name.value=="")
	{
		alert("Please Enter The Name.")
		loginform.Name.focus()
		ok=false
	}
	  
    else if (loginform.Email.value == "")
	{
		alert("Please enter a value for the Email field.");
		loginform.Email.focus();
		ok=false
	}
	else if (!isEmailAddr(loginform.Email.value))
	{
		alert("Please enter a complete Email address in the form: yourname@yourdomain.com");
		loginform.Email.focus();
		ok=false
	}
	 else if(loginform.Phone.value=="")
	{
		alert("Please Enter The Phone.")
		loginform.Phone.focus()
		ok=false
	}
			else if (loginform.city.value == "")
	{
		alert("Please specify your city/State.");
		loginform.city.focus();
		ok=false
	}
   	else if (loginform.Country.value == "")
	{
		alert("Please Select your Country.");
		loginform.Country.focus();
		ok=false
	}
   
		else if(loginform.validation.value=="")
	{
		alert("Please Enter The Validation code.")
		loginform.validation.focus()
		ok=false
	}
	else if(loginform.validation.value!=xx)
	{
		alert("Please Enter The Validation code as shown in the Left.")
		loginform.validation.focus()
		ok=false
	}
	return ok
}

function ValidateNum(input,event){
			var keyCode = event.which ? event.which : event.keyCode;
			if(parseInt(keyCode)>=48 && parseInt(keyCode)<=57){
				return true;
			}
			return false;
		}
function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
	var pindex = theStr.indexOf(".",index);
	if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}// JavaScript Document
