function filter(imagename,objectsrc) {
    if (document.images) {
        document.images[imagename].src=eval(objectsrc+".src")
    }
}

function image_enlarge(tyre_id, pic) {
    w = 80;
    h = 80;
    _left = 50;
    _top = 50;
    features = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=" + w + ",height=" + h + ",top=" + _top + ",left=" + _left;
    w = window.open('image.php?tyre_id=' + tyre_id + '&pic=' + pic, '_blank', features);
}

function image_enlarge_disc(disc_id, pic) {
    w = 80;
    h = 80;
    _left = 50;
    _top = 50;
    features = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=" + w + ",height=" + h + ",top=" + _top + ",left=" + _left;
    w = window.open('image.php?disc_id=' + disc_id + '&pic=' + pic, '_blank', features);
}


