function isEmpty(s)
{
	return ((s == null) || (s.length == 0 ))
}
function isHTMLLink(s)
{
var result = "";
	
	result = s.substring(0, 4);
	if ( result == "http" )
		return true;
	else
		return false;
}
function validateForm(Form)
{
var missingList = "";
	
	if ( isEmpty(Form.LinkDesc.value)) {
		Form.LinkDesc.focus();
		missingList += "\tThe Description.\n";
	}
	if ( isEmpty(Form.httplink.value)) {
		Form.httplink.focus();
		missingList += "\tThe HTML Link.\n";
	}
	else
	{
		if ( !isHTMLLink(Form.httplink.value) )
		{
			Form.httplink.focus();
			missingList += "\tThe URL must begin with 'http'.\n";
		}
	}
	if (missingList == "" ) {
		return true;
	}
	else
	{
		alert( "The following required fields were not completed:\n\n" + missingList );
		return false;
	}
}
