function writeCheck() {

	if(!signform.title.value){
		alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		signform.title.focus();
		return false;
	}
	if(!signform.uname.value){
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		signform.uname.focus();
		return false;
	}

	if(!signform.content.value){
		alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		signform.content.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 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(!signform.passwd.value) {
   alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
   signform.passwd.focus();
   return;
   }
   signform.submit();
}



	function imgload() {
	//ÀÌ¹ÌÁö »çÀÌÁî Á¦ Á¶Á¤ ÇÑ´Ù.
		imgwidth  = document.imgphoto.width;
		imgheight = document.imgphoto.height;

		if(650 < imgwidth) {
			rewidth = 650;
			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(650 < imgwidth) {
			rewidth = 650;
			document.imgphoto_1.width = rewidth;
			widthpercent = ((imgwidth-rewidth)/imgwidth);
			reheight = parseInt(imgheight)*widthpercent;
			//document.imgphoto.height = reheight;
		}
	}







