    function imgResizeCustom(which,maxWidth){
		var imgTagid = document.getElementById(which);
        var width = eval("document."+which+".width");
        var height = eval("document."+which+".height");
        var temp = 0; 
        var max_width= maxWidth;   // 이미지의 최대 크기    
		
		//alert("which : " + which + " width : " + width + " height : " + height + " max_width : " + max_width + "\n " + imgTagid.width);

        if ( width > max_width ) {  // 이미지가 maxWidth보다 크다면 너비를 maxWidth으로 맞우고 비율에 맞춰 세로값을 변경한다.      
           height = height/(width / max_width);
           eval("document."+which+".width = max_width");     
           eval("document."+which+".height = height");
        }     
    }
	
	function imgResizeView(which){
        var width = eval("document."+which+".width");
        var height = eval("document."+which+".height");
        var temp = 0; 
        var max_width= 300;   // 이미지의 최대 크기     
        
        if ( width > max_width ) {  // 이미지가 600보다 크다면 너비를 600으로 맞우고 비율에 맞춰 세로값을 변경한다.      
           height = height/(width / max_width);
           eval("document."+which+".width = max_width");     
           eval("document."+which+".height = height");
        }     
    }

    function imgResizeList(which){
        var width = eval("document."+which+".width");
        var height = eval("document."+which+".height");
        var temp = 0; 
        var max_width= 100;   // 이미지의 최대 크기     

        if ( width > max_width ) {  // 이미지가 600보다 크다면 너비를 600으로 맞우고 비율에 맞춰 세로값을 변경한다.      
           height = height/(width / max_width);
           eval("document."+which+".width = max_width");     
           eval("document."+which+".height = height");
        }     
    }

    function imgResizePhotoList(which){
        var width = eval("document."+which+".width");
        var height = eval("document."+which+".height");
        var temp = 0; 
        var max_width= 81;   // 이미지의 최대 크기     

        if ( width > max_width ) {  // 이미지가 600보다 크다면 너비를 600으로 맞우고 비율에 맞춰 세로값을 변경한다.      
           height = height/(width / max_width);
           eval("document."+which+".width = max_width");     
           eval("document."+which+".height = height");
        }     
    }

    function imgResizeBlob(which){
        var width = eval("document."+which+".width");
        var height = eval("document."+which+".height");
        var temp = 0; 
        var max_width= 120;   // 이미지의 최대 크기     
        
        if ( width > max_width ) {  // 이미지가 600보다 크다면 너비를 600으로 맞우고 비율에 맞춰 세로값을 변경한다.      
           height = height/(width / max_width);
           eval("document."+which+".width = max_width");     
           eval("document."+which+".height = height");
        }     
    }
 
    function imgResizeZone(which){
        var width = eval("document."+which+".width");
        var height = eval("document."+which+".height");
        var temp = 0; 
        var max_width = 120;   // 이미지의 최대 크기     
        
        if ( width > max_width ) {  // 이미지가 600보다 크다면 너비를 600으로 맞우고 비율에 맞춰 세로값을 변경한다.      
           height = height/(width / max_width);
           eval("document."+which+".width = max_width");     
           eval("document."+which+".height = height");
        }     
    }

