function validate_gig_form()
{
    valid = true;

    if ( document.gig_form.date.value == "" || document.gig_form.venue.value == "" || document.gig_form.city.value == "" || document.gig_form.time.value == "")
    {
        alert ( "Please complete all fields marked with *." );
        valid = false;
    }   
    

    return valid;
}



function validate_page_form()
{
    
}



function validate_news_form()
{
    valid = true;

    if ( document.news_form.date.value == "" || document.news_form.title.value == "")
    {
        alert ( "Please complete all fields marked with *." );
        valid = false;
    }   
    

    return valid;
}

function popup(page) 
{
     window.open(page,'newwindow','scrollbars=yes,status=no,width=417,height=350,title="Popup"')
}


function validate_mailing_form()
{
    valid = true;

    if ( document.mailing_form.email.value == "" || document.mailing_form.email.value == " " )
    {
        alert ( "Please complete all fields marked with *." );
        valid = false;
    }   
    

    return valid;
}


function validate_sendall_form()
{
    valid = true;

    if ( document.sendall_form.content.value == "" || document.sendall_form.subject.value == "" )
    {
        alert ( "Please complete all fields marked with *." );
        valid = false;
    }   
    

    return valid;
}


function validate_photo_album_form()
{
    valid = true;

    if ( document.photo_album_form.title.value == "" || document.photo_album_form.date.value == "" )
    {
        alert ( "Please complete all fields marked with *." );
        valid = false;
    }   
    

    return valid;
}

function validate_photo_form ( )
{
    valid = true;

    if ( document.photo_form.image.value == "" || document.photo_form.desc.value == "" )
    {
        alert ( "Please make sure all details marked with * are complete." );
        valid = false;
    }   
    else if(document.photo_form.desc.value.length>150)
    {
        alert ( "Your message must be less than 150 characters." );
        valid = false;
    }
    

    return valid;
}

function validate_contactform ( )
{
    valid = true;

    if ( document.contact_form.name.value == "" || document.contact_form.message.value == "" )
    {
        alert ( "Please make sure all details marked with * are complete." );
        valid = false;
    }   
    else if(document.contact_form.message.value.length>400)
    {
        alert ( "Your message must be less than 400 characters." );
        valid = false;
    }
    

    return valid;
}


function validate_artist_form()
{
    valid = true;

    if ( document.artist_form.name.value == "" )
    {
        alert ( "Please complete all fields marked with *." );
        valid = false;
    }   
    

    return valid;
}