
<!-- 
    
function is_not_empty(item, msg)
{
        if (item.value.length > 0)
                return true
        else
        {
                alert("Please fill in your " + msg)
                return false
        }
}

function is_email(item)
{
        var mhkos = item.value.length
        var papaki = item.value.indexOf("@")
        var teleia = item.value.lastIndexOf(".")

        if (mhkos>4 && papaki>0 && teleia>papaki+1)
                return true

        alert("Please fill in a proper e-mail so we can contact you")
        return false
}



function form_ok(f)
{
        if  (  is_not_empty(f.Name, "Name") && 
//          //  is_not_empty(f.Minimum_Budget_in_dollars, "Minimum Budget") &&
//            is_number(f.Minimum_Budget_in_dollars, "Minimum Budget") &&
//            is_more_than(f.Minimum_Budget_in_dollars, 50, "Sorry, we don't accept requests with minimum budget less than $50") &&
//            is_not_empty(f.Maximum_Budget_in_dollars, "Maximum Budget") &&
//            is_number(f.Maximum_Budget_in_dollars, "Maximum Budget") &&
//            is_more_than(f.Maximum_Budget_in_dollars, parseInt(f.Minimum_Budget_in_dollars.value), "The maximum budget must be greater than the minimum") &&
          
            is_email(f.Email) && is_not_empty(f.departureMonth1, "Departure Month") &&  is_not_empty(f.departureDay1, "Departure Day") && is_not_empty(f.departureYear1, "Departure Year") &&is_not_empty(f.package, "Package"))
                return true

        return false
}

    
    

-->

