function updateRatioDropdown(side,ratio) {
    var target = (side == 'w') ? $('ratio_height') : $('ratio_width');
    var changed = (side == 'w') ? $('ratio_width') : $('ratio_height');

    target.selectedIndex = changed.selectedIndex;
}

function checkRatio()
{

}

function convertPixelsToInches(value)
{
    return eval(value/150);
}

function convertInchesToPixels(value)
{
    return eval(value*150);
}


// return the highest possible pixes we can print
function getMaxPrintPixels(w,h)
{
    return ((w * h) * 5) / 150;
}
