function writeCheck() { if(isBlank(signform.title.value)) { alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); signform.title.focus(); return false; } if(isBlank(signform.uname.value)) { alert("À̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); signform.uname.focus(); return false; } if(isBlank(signform.content.value)) { alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); signform.content.focus(); return false; } //ÆÄÀÏ Ã¼Å© ÇÑ´Ù. if(signform.fileadd.value) { var obj = signform.fileadd; var no = obj.value.lastIndexOf("."); var file_name = obj.value.substr(no+1, 3); if ((file_name.toUpperCase() == "HTML") || (file_name.toUpperCase() == "PHP") || (file_name.toUpperCase() == "HTM") ) { alert("html, htm, php ÆÄÀÏÀº ÷ºÎ ºÒ°¡´É ÇÕ´Ï´Ù."); signform.fileadd.focus(); return false; } } /* //À̹ÌÁö üũ ÇÑ´Ù. if(signform.fileadd.value) { if(!Check_Img(signform.fileadd)) { alert("À̹ÌÁö Æ÷¸ËÀº jpg ¿Í gif ¸¸ °¡´ÉÇÕ´Ï´Ù."); signform.fileadd.focus(); return false; } }*/ return true; } //end function function isBlank(str) { str = str.replace(/\s/g, ''); return (str.length==0); } //À̹ÌÁö Æ÷¸Ë üũ ÇÔ¼ö function Check_Img(obj) { var no = obj.value.lastIndexOf("."); var file_name = obj.value.substr(no+1, 3); if (!((file_name.toUpperCase() == "JPG") || (file_name.toUpperCase() == "GIF"))) { return false; } return true; } // °Ô½ÃÆÇ ±Û »èÁ¦ ÇÑ´Ù (ÆäÀÌÁö¼ö,°Ô½Ã¹°¹øÈ£) function contentDel(page,num,search,key,tablelink){ ref =tablelink+"_delete_ok.php?page="+page+"&num="+num+"&search="+search+"&key="+key+"&tablelink="+tablelink; temp = confirm("±ÛÀ» »èÁ¦ ÇÏ°Ú½À´Ï±î?"); if(temp == true) { window.location = ref; } else { return; } } function searchCheck(){ if(!signform.key.value){ alert("°Ë»öÇÒ ³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä"); signform.key.focus(); return false; } return true; } //»èÁ¦Çϱ⠰˻ö function checkPass() { if(isBlank(signform.passwd.value)) { alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä!'); signform.passwd.focus(); return; } signform.submit(); } function imgload() { //À̹ÌÁö »çÀÌÁî Á¦ Á¶Á¤ ÇÑ´Ù. imgwidth = document.imgphoto.width; imgheight = document.imgphoto.height; if(600 < imgwidth) { rewidth = 600; document.imgphoto.width = rewidth; widthpercent = ((imgwidth-rewidth)/imgwidth); reheight = parseInt(imgheight)*widthpercent; //document.imgphoto.height = reheight; } } function imgload_1() { //À̹ÌÁö »çÀÌÁî Á¦ Á¶Á¤ ÇÑ´Ù. imgwidth_1 = document.imgphoto_1.width; imgheight_1 = document.imgphoto_1.height; if(600 < imgwidth) { rewidth = 600; document.imgphoto_1.width = rewidth; widthpercent = ((imgwidth-rewidth)/imgwidth); reheight = parseInt(imgheight)*widthpercent; //document.imgphoto.height = reheight; } } //ºÐ·ù º°·Î ¸®½ºÆ® Ãâ·Â Çϱâ $PHP_SELF',this.value); function selChange(tablename,value) { //ºÐ·ù Ç׸ñ ¼±ÅÃµÈ °ªÀ» ±¸ÇÑ´Ù. ref = tablename+"?vmode="+value; window.location= ref; } //end modeChange