function submitter()
{
    go=1;
    if(this.document.getElementById("login").username.value=='') { go=0;this.document.getElementById("login").username.style.background = '#D1E0F0'; }
    if(this.document.getElementById("login").password.value=='') { go=0;this.document.getElementById("login").password.style.background = '#D1E0F0'; }
    
    if(go==0)
    {
        alert('U heeft niet alle benodigde velden ingevuld. Vul de gearceerde velden alsnog in.');
    }
    else
    {
        this.document.getElementById("login").submit();
    }
}


function mycarousel_itemLoadCallback(carousel, state)
{
    // Check if the requested items already exist
    if (carousel.has(carousel.first, carousel.last)) {
        return;
    }
    jQuery.get(
        'http://www.praktijkinfo.nl/data/inc/carousel_images.inc.php', 
        { 
            first: carousel.first,
            last: carousel.last
        },
        function(xml) {
            mycarousel_itemAddCallback(carousel, carousel.first, carousel.last, xml);
        },
        'xml'
    );
};
function mycarousel_itemAddCallback(carousel, first, last, xml)
{
    // Set the size of the carousel
    carousel.size(parseInt(jQuery('total', xml).text()));
    jQuery('image', xml).each(function(i) {
        carousel.add(first + i, mycarousel_getItemHTML(jQuery(this).text()));
    });
};
/**
 * Item html creation helper.
 */
function mycarousel_getItemHTML(url)
{
    return '<img src="' + url + '" width="175" height="131" alt="" />';
};

