<!--
/***********************************************************************************
	This fuction will make sure that no empty field are submitted
***********************************************************************************/
function CheckClassifiedFields()
{
	if (document.secondform.Category.options[document.secondform.Category.selectedIndex].value=="")
	{
		alert("Please choose a category that best describes your Ad.");
		document.secondform.Category.focus();
		return false;
	}
	if (document.secondform.Title.value == "")
	{
		alert("Please enter the title of your Ad.");
		document.secondform.Title.focus();
		return false;
	}
	if (document.secondform.Contact.value == "")
	{
		alert("Please enter the name of the Contact person for your Ad.");
		document.secondform.Contact.focus();
		return false;
	}
	if (document.secondform.email.value == "")
	{
		alert("Please enter the e-mail address of the Contact person..");
		document.secondform.email.focus();
		return false;
	}
	if (document.secondform.email.value != "")	// check for a valid e-mail address format
	{
		var str = document.secondform.email.value
		var filter=/^.+@.+\..{2,3}$/
		
		if (filter.test(str))
			;
		else
		{
			alert("Please enter a valid E-Mail address!");
			document.secondform.email.focus();
			return false;
		}
	}
	
	if (document.secondform.Description.value == "")
	{
		alert("Please enter the description of your Ad.");
		document.secondform.Description.focus();
		return false;
	}
	return true;
}
-->	