$(document).ready(function() { 

    // bind contact form using ajaxForm 
    $('#contactForm').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '#contact', 
        // success identifies the function to invoke when the server response 
        // has been received; here we apply a fade-in effect to the new content 
        success: function() { 
            $('.sent').hide();
            $('#contact').fadeIn('slow'); 
        } 
    }); 

    // bind contact form using ajaxForm 
    $('#applyonline').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '#applied', 
        // success identifies the function to invoke when the server response 
        // has been received; here we apply a fade-in effect to the new content 
        success: function() { 
            $('#app').hide();
            $('#applied').fadeIn('slow'); 
        } 
    });
});

function closewindow()
 {
 }

function logon()
 {
   var pw;
   pw = $("input#pw").val();
   $("#logon").load('library/cms.php?t=logon&pw=' + pw);
 }