<!-- hide script from old browsers

 function Category()
 {
    if (document.theform.category.value == '')
    {
       alert("Please Enter the Category Title");
       document.theform.category.focus();
       return false;
    }
    if (document.theform.description.value == '')
    {
       alert("Please Enter A Description");
       document.theform.description.focus();
       return false;
    }
    if (document.theform.name.value == '')
    {
       alert("Please Enter your Business/Personal Name");
       document.theform.name.focus();
       return false;
    }
    if (document.theform.email.value == '')
    {
       alert("Please Enter your Email Address");
       document.theform.email.focus();
       return false;
    }
    return true;
 }

 function Editorial()
 {
    if (document.theform.description.value == '')
    {
       alert("Please Enter A Description");
       document.theform.description.focus();
       return false;
    }

    return true;
 }

 function Listing()
 {
    if (document.theform.categoryid.selectedIndex == 0)
    {
       alert("Please Select The Category");
       document.theform.categoryid.focus();
       return false;
    }
    if (document.theform.customerid.selectedIndex == 0)
    {
       alert("Please Select The Customer");
       document.theform.customerid.focus();
       return false;
    }
    if (document.theform.type.selectedIndex == 0)
    {
       alert("Please Select The Type of Listing");
       document.theform.type.focus();
       return false;
    }
    if (document.theform.title.value == '')
    {
       alert("Please Enter the Title");
       document.theform.title.focus();
       return false;
    }
	if (document.theform.title.value.length > 45)
    {
       alert("Please enter a Title that is less than 45 Characters");
       document.theform.title.focus();
       return false;
    }
    if (document.theform.description.value == '')
    {
       alert("Please Enter A Description");
       document.theform.description.focus();
       return false;
    }
	if (document.theform.description.value.length > 140)
    {
       alert("Please enter a Description that is less than 140 Characters");
       document.theform.description.focus();
       return false;
    }
    if (document.theform.country.selectedIndex == 0)
    {
       alert("Please Select The Country");
       document.theform.country.focus();
       return false;
    }
    return true;
 }

 function Frontend_Listing()
 {
    if (document.theform.categoryid.selectedIndex == 0)
    {
       alert("Please Select The Category");
       document.theform.categoryid.focus();
       return false;
    }
    if (document.theform.title.value == '')
    {
       alert("Please Enter the Title");
       document.theform.title.focus();
       return false;
    }
	if (document.theform.title.value.length > 45)
    {
       alert("Please enter a Title that is less than 45 Characters");
       document.theform.title.focus();
       return false;
    }
    if (document.theform.description.value == '')
    {
       alert("Please Enter A Description");
       document.theform.description.focus();
       return false;
    }
	if (document.theform.description.value.length > 140)
    {
       alert("Please enter a Description that is less than 140 Characters");
       document.theform.description.focus();
       return false;
    }
    if (document.theform.country.selectedIndex == 0)
    {
       alert("Please Select The Country");
       document.theform.country.focus();
       return false;
    }
    if (document.theform.city.value == '')
    {
       alert("Please Enter A City");
       document.theform.city.focus();
       return false;
    }
    if (document.theform.suburb.value == '')
    {
       alert("Please Enter A Suburb");
       document.theform.suburb.focus();
       return false;
    }    
    return true;
 }

 function Customer()
 {
    if (document.theform.firstname.value == '')
    {
       alert("Please Enter Your First Name");
       document.theform.firstname.focus();
       return false;
    }
    if (document.theform.lastname.value == '')
    {
       alert("Please Enter Your Last Name");
       document.theform.lastname.focus();
       return false;
    }
    if (document.theform.email.value == '')
    {
       alert("Please Enter Your Email");
       document.theform.email.focus();
       return false;
    }
    if (document.theform.telephone.value == '')
    {
       alert("Please Enter Your Telephone");
       document.theform.telephone.focus();
       return false;
    }
    return true;
 }

 function Advertisement()
 {
    if (document.theform.firstname.value == '')
    {
       alert("Please Enter Your First Name");
       document.theform.firstname.focus();
       return false;
    }
    if (document.theform.lastname.value == '')
    {
       alert("Please Enter Your Last Name");
       document.theform.lastname.focus();
       return false;
    }
    if (document.theform.email.value == '')
    {
       alert("Please Enter Your Email");
       document.theform.email.focus();
       return false;
    }
	if (document.theform.country.selectedIndex == 0)
    {
       alert("Please Select The Country");
       document.theform.country.focus();
       return false;
    }
    if (document.theform.telephone.value == '')
    {
       alert("Please Enter Your Telephone");
       document.theform.telephone.focus();
       return false;
    }
    if (document.theform.title.value == '')
    {
       alert("Please Enter the Title");
       document.theform.title.focus();
       return false;
    }
	return true;
 }
// end hiding script from old browsers -->

