function CkImageVal(value){
                            var oInput = event.srcElement;
                            var fname = oInput.value;

                            if((/(.jpg|.jpeg|.gif|.png)$/i).test(fname))
                                oInput.parentElement.children[0].src = fname;
                            else
                                alert('이미지는 gif, jpg, png 파일만 가능합니다.');

                            var imgInfo        = new Image();
                            imgInfo.onload    = img_Load;
                            imgInfo.src        = value;
                        }
                        function img_Load(){
                            var imgSrc, imgWidth, imgHeight, imgFileSize;
                            var maxFileSize;
                            maxFileSize    = 50000000;
                            imgSrc            = this.src;
                            imgWidth        = this.width;
                            imgHeight        = this.height;
                            imgFileSize    = this.fileSize;

                            if (imgSrc == "" || imgWidth > 100){
                                alert('가로 600 픽셀을 초과하는 이미지파일을 가져올 수 없습니다.');
                                return;
                            }

                            if (imgFileSize > maxFileSize){
                                alert('선택하신 그림 파일은 허용 최대크기인 ' + maxFileSize/1024 + ' KB 를 초과하였습니다.');
                                return;
                            }
                        }

+ Recent posts