//validation of applicationForm
function validateApplicationForm()
{
    try
    {
        if(document.getElementById('strName').value == '')
        {
            alert('You must enter your name.');
            document.getElementById('strName').focus();
            return;
        }
        if(document.getElementById('strPosition').value == '')
        {
            alert('You must enter what position you apply as.');
            document.getElementById('strPosition').focus();
            return;
        }
        if(document.getElementById('strPhone').value == '')
        {
            alert('You must enter your phone number.');
            document.getElementById('strPhone').focus();
            return;
        }        
        document.getElementById('submitButton').click();
        return;
    }
    catch(err)
    {
        alert('An error occured when the application was beeing stored.');
        return;
    }
}
