function OnCurrentPageLoad()
{
	if (document.getElementById) document.getElementById('form1').onsubmit = ValidateForm;
}

function ValidateForm()
{
	if (document.getElementById)
	{
		var email = document.getElementById('email');
		var Text = document.getElementById('Text');
		var message = '';
		
		if (email.value == '') message += "- Email address\n";
		if (Text.value == '') message += "- Your requirements, items for sale\n";
		
		if (message.length > 0)
		{
			message = "Please complete the following fields:\n-------------------------------------------\n\n" + message;
			alert(message);
			return false;
		}
		else return true;				
	}
}

window.onload = OnCurrentPageLoad;