io non l'avrei proprio fatto cosi, comunque credo che il problema sia che non tutti i browser usano complete per gestire il caricamento delle immagini e, comunque, non alla stessa maniera. Fallo così:

Codice PHP:
<script language="javascript" type="text/javascript">
<!--
window.onload = function(){
    var 
max_width 250;
    var 
max_height 400;
    if (
document.images) {
        for (
0document.images.lengthi++) {
        
            if (
document.images[i].width 450) {
                var 
imagetoprocess document.images[i];
                var 
old_width imagetoprocess.width;
                var 
old_height imagetoprocess.height;
                
imagetoprocess.width max_width;
                
imagetoprocess.height Math.round(old_height max_width old_width);
            }
        }
    }
}
//-->
</script>