function CheckForm() {

	var errorMsg = "";
	var errorMsgLong = "";

	var AtSym    = document.LinkForm.Email.value.indexOf('@');
	var Period   = document.LinkForm.Email.value.lastIndexOf('.');
	var Space    = document.LinkForm.Email.value.indexOf(' ');
	var Length   = document.LinkForm.Email.value.length - 1 ;
	
	if (document.LinkForm.Title.value.length < 3 ){
		errorMsg += "\n\tTitle\t\t\t- Enter a Title";
	}
	
	if (document.LinkForm.URL.value.length < 8 ){
		errorMsg += "\n\tHomepage URL\t\t- Enter the URL of your Homepage";
	}


	if ((AtSym < 1) ||                  
   	 (Period <= AtSym+1) || 
	    (Period == Length ) ||      
	    (Space  != -1))      
	   {  
	      errorMsg += "\n\tEmail Address \t\t- Enter a valid email address";
	   }
   
	if (document.LinkForm.Description.value.length < 3 ){
		errorMsg += "\n\tDescription\t\t- Enter a short Description of your Website";
	}
	
	if ((errorMsg != "") || (errorMsgLong != "")){
		msg = "_____________________________________________________________________\n\n";
		msg += "There are problems with the data you submitted\n";
		msg += "_____________________________________________________________________\n\n";
		msg += "You must fix the following fields: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n" + errorMsgLong);
		return false;
	}
	
	return true;
}
