Event.observe(window,'load',init);

function init()
{
    var uxTxtCustomerName = $('uxTxtCustomerName');
    var form1 = $('form1');
    
    if (uxTxtCustomerName != null)
        uxTxtCustomerName.focus();
    
    if (form1 != null)
        Event.observe(form1,'submit',checkForm);
}

function checkForm(evt)
{
    var target = Event.element(evt);
    if (ControlsOK('inputBox'))
        return(true);
    else
    {
        Event.stop(evt);
        return(false);
    }
}
