function stat(aString) {
  d=document; 
  d.write('<img src="http://stats.theinternetone.net/cgi-bin/s.py?name=www.444.net&page='+aString); 
  d.write('&referrer='+escape(document.referrer)+'" width="1" height="1">'); 
}

function Form_Validator(theForm) {
	var oError = new Error();

	//Email *************************************************************
	var goodEmail = theForm.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\..{2,2}))$)\b/gi);
	if (goodEmail) 	{
	   good = true
	} else {
	   alert('Please enter a valid e-mail address.')
	   theForm.email.focus()
	   theForm.email.select()
	   return (false);
   	}
  
  
	var is_checked = theForm.tos.checked;
	if (is_checked == false) {
	  	alert('You have to agree with terms and conditions first.');
	  	return (false);
	}

  	// FirstName *************************************************************
  	if (theForm.fname.value == '') {
	    alert('Please enter your First name.');
    	theForm.fname.focus();
    	return (false);
  	}
   
	if (theForm.lname.value == '') {
	    alert('Please enter your Last name.');
    	theForm.lname.focus();
    	return (false);
  	}
   
	if (theForm.address.value == '') {
	    alert('Please enter your Address.');
    	theForm.address.focus();
    	return (false);
  	}
  
	if (theForm.city.value == '') {
	    alert('Please enter your City.');
	    theForm.city.focus();
	    return (false);
  	}

	if (theForm.country.value == '') {
	    alert('Please enter your Country.');
	    theForm.country.focus();
    	return (false);
	}

	if (theForm.siteName.value == '') {
	    alert('Please enter your Site Name.');
	    theForm.siteName.focus();
	    return (false);
	}

	if (theForm.URL.value == '') {
	    alert('Please enter your Site URL.');
	    theForm.URL.focus();
	    return (false);
	}
}
