function galleryWindow(gallery, name) {
    var width = 600;
    var height = 550;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    window.open('gallery/'+gallery+'/index.html', name + 'Gallery', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=1, width='+width+', height='+height+', top='+top+', left='+left);
}



function changeAction(fld) {
    var name=fld.name;
    var value=fld.value;
    var expires=1;
    var path='/';
    domain='';
    secure='';

    // set time, it's in milliseconds
    var today = new Date();
    today.setTime( today.getTime() );

    // if the expires variable is set, make the correct
    // expires time, the current script below will set
    // it for x number of days, to make it for hours,
    // delete * 24, for minutes, delete * 60 * 24
    
    if ( expires )
    {
       expires = expires * 1000 * 60 * 60 * 24;
    }

    var expires_date = new Date( today.getTime() + (expires) );
    
    document.cookie = name + "=" +escape( value ) +
    ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
    ( ( path ) ? ";path=" + path : "" ) +
    ( ( domain ) ? ";domain=" + domain : "" ) +
    ( ( secure ) ? ";secure" : "" );
}