<!--
function checkForm() {
	
	if (document.artForm.name.value==''){
		alert("Please enter your name");
		return false;
	}
	
	if (document.artForm.email.value==''){
		alert("Please enter your email address");
		return false;
	}
	if (validateEmail(document.artForm.email.value)==false){
		alert("Please enter a valid email address");
		return false;
	}	
	
	if (document.artForm.article.value==''){
		alert("Please enter the article");
		return false;
	}	
	
	if (document.artForm.copyright[0].checked==false && document.artForm.copyright[1].checked==false){
		alert("Please answer whether you own the copyright to the article");
		return false;
	}
	
	if (document.artForm.published[0].checked==false && document.artForm.published[1].checked==false){
		alert("Please answer whether the article is published elsewhere or do you intend to publish (Including your own site)");
		return false;
	}		
	
return true;
}

function validateEmail(email)
{
    var splitted = email.match("^(.+)@(.+)$");
    if(splitted == null) return false;
    if(splitted[1] != null )
    {
      var regexp_user=/^\"?[\w-_\.]*\"?$/;
      if(splitted[1].match(regexp_user) == null) return false;
    }
    if(splitted[2] != null)
    {
      var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
      if(splitted[2].match(regexp_domain) == null) 
      {
	    var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
	    if(splitted[2].match(regexp_ip) == null) return false;
      }// if
      return true;
    }
return false;
}

//-->
