<!--
function chknotnull(x)
{
	myflag=false
	if (x=="")
		return false;
	else
	{
		for (i=0;i<x.length;i++)
		{
			if (x.charAt(i).indexOf(" ")<0)
				myflag=true;
		}
		return myflag;
	}
return true;
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Please enter your correct email address.")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Please enter your correct email address.")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Please enter your correct email address.")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Please enter your correct email address.")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Please enter your correct email address.")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Please enter your correct email address.")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Please enter your correct email address.")
		    return false
		 }

 		 return true					
}

function Entry(){
  if(document.form.title[5].checked){
	if (!chknotnull(document.form.titleothers.value)){
	    alert("Please enter your title.");
    	document.form.titleothers.focus();
	    return (false);		
	}
  }
  if(!chknotnull(document.form.familyname.value)){
    alert("Please enter your family name.");
    document.form.familyname.focus();
    return (false);
  }
  if(!chknotnull(document.form.firstname.value)){
    alert("Please enter your first name.");
    document.form.firstname.focus();
    return (false);
  }
  if(!chknotnull(document.form.nationality.value)){
    alert("Please enter your nationality.");
    document.form.nationality.focus();
    return (false);
  }
  if(!chknotnull(document.form.jobtitle.value)){
    alert("Please enter your job title.");
    document.form.jobtitle.focus();
    return (false);
  }
  if(!chknotnull(document.form.organisation.value)){
    alert("Please enter your organisation.");
    document.form.organisation.focus();
    return (false);
  }  
  if(!chknotnull(document.form.address1.value)){
    alert("Please enter your address.");
    document.form.address1.focus();
    return (false);
  }  
  if(!chknotnull(document.form.zipcode.value)){
    alert("Please enter your zip code.");
    document.form.zipcode.focus();
    return (false);
  }  
  if(document.form.country.value== "- select -"){
    alert("Please enter your country.");
    document.form.country.focus();
    return (false);
  }
  if(!chknotnull(document.form.tel_countrycode.value)){
    alert("Please enter your country code.");
    document.form.tel_countrycode.focus();
    return (false);
  }
  if(!chknotnull(document.form.tel.value)){
    alert("Please enter your phone number.");
    document.form.tel.focus();
    return (false);
  }
  if(!chknotnull(document.form.fax_countrycode.value)){
    alert("Please enter your fax country code.");
    document.form.fax_countrycode.focus();
    return (false);
  }
  if(!chknotnull(document.form.fax.value)){
    alert("Please enter your fax number.");
    document.form.fax.focus();
    return (false);
  }
  if(!chknotnull(document.form.email.value)){
    alert("Please enter your email address.");
    document.form.email.focus();
    return (false);
  }
    if (echeck(document.form.email.value)==false){
	document.form.email.focus()
	return (false);
  } 
  return (true);
}
//-->