function focusIt(){
	document.sendExe.subject.focus();
}
function focusIt1(){
	document.editsend.subject.focus();
}
function checkIt(){
	if (!document.sendExe.subject.value){
		alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.subject.focus();
		return;
	}	
	if (!document.sendExe.writer.value){
		alert('ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.writer.focus();
		return;
	}
	if (!document.sendExe.pw.value){
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.pw.focus();
		return;
	}
	if (!document.sendExe.comment.value){
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.comment.focus();
		return;
	}
	if(!document.sendExe.email.value){
		alert("EmailÀ» ÀÔ·ÂÇÏ¼¼¿ä");
		document.sendExe.email.focus();
		return;
    }else{
		var mail = document.sendExe.email.value; 
		var mail_array = mail.split("@"); 
		
		if(mail_array[1] == 'hanmail.net' || mail_array[1] == 'daum.net') { 
			alert("ÇÑ¸ÞÀÏÀº ¾ÈµË´Ï´Ù. ´Ù¸¥ E-mailÀ» Àû¾îÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			document.sendExe.email.focus();
			return;
		}else{
			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
            
			if (!filter.test(mail)) {
				alert("EmailÀ» Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä!!!!!!!");
				document.sendExe.email.focus();
				return; 
			}


		}
	}
	/*if (!document.sendExe.tel.value){
		alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.tel.focus();
		return;
	}*/
	
	
	document.sendExe.submit();
}

function checkIt_notice(){
	if (!document.sendExe.subject.value){
		alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.subject.focus();
		return;
	}	
	if (!document.sendExe.writer.value){
		alert('ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.writer.focus();
		return;
	}
	if (!document.sendExe.pw.value){
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.pw.focus();
		return;
	}
	if (!document.sendExe.comment.value){
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.comment.focus();
		return;
	}

	document.sendExe.submit();
}

function editExe_notice(){
	if (!document.editsend.subject.value){
		alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.subject.focus();
		return;
	}	
	if (!document.editsend.writer.value){
		alert('ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.writer.focus();
		return;
	}
	if (!document.editsend.pw.value){
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.pw.focus();
		return;
	}
	if (!document.editsend.comment.value){
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.comment.focus();
		return;
	}

	document.editsend.submit();
}

function checkIt_photo(){
	if (!document.sendExe.subject.value){
		alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.subject.focus();
		return;
	}	
	if (!document.sendExe.writer.value){
		alert('ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.writer.focus();
		return;
	}
	if (!document.sendExe.pw.value){
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.pw.focus();
		return;
	}
	if (!document.sendExe.comment.value){
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.comment.focus();
		return;
	}
	if(!document.sendExe.email.value){
		alert("EmailÀ» ÀÔ·ÂÇÏ¼¼¿ä");
		document.sendExe.email.focus();
		return;
    }else{
		var mail = document.sendExe.email.value; 
		var mail_array = mail.split("@"); 
		
		if(mail_array[1] == 'hanmail.net' || mail_array[1] == 'daum.net') { 
			alert("ÇÑ¸ÞÀÏÀº ¾ÈµË´Ï´Ù. ´Ù¸¥ E-mailÀ» Àû¾îÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			document.sendExe.email.focus();
			return;
		}else{
			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
            
			if (!filter.test(mail)) {
				alert("EmailÀ» Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä!!!!!!!");
				document.sendExe.email.focus();
				return; 
			}


		}
	}
	if (!document.sendExe.file.value){
		alert('»çÁøÀ» ¼±ÅÃÇÏ¼¼¿ä!');
		document.sendExe.file.focus();
		return;
	}
	/*if (!document.sendExe.tel.value){
		alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.sendExe.tel.focus();
		return;
	}*/
	
	
	document.sendExe.submit();
}
function editExe(){
	if (!document.editsend.subject.value){
		alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.subject.focus();
		return;
	}
	
	if (!document.editsend.writer.value){
		alert('ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.writer.focus();
		return;
	}
	if (!document.editsend.pw.value){
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.pw.focus();
		return;
	}
	if (!document.editsend.comment.value){
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.comment.focus();
		return;
	}
	if(!document.editsend.email.value){
		alert("EmailÀ» ÀÔ·ÂÇÏ¼¼¿ä");
		document.editsend.email.focus();
		return;
    }else{
		var mail = document.editsend.email.value; 
		var mail_array = mail.split("@"); 
		
		if(mail_array[1] == 'hanmail.net' || mail_array[1] == 'daum.net') { 
			alert("ÇÑ¸ÞÀÏÀº ¾ÈµË´Ï´Ù. ´Ù¸¥ E-mailÀ» Àû¾îÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			document.editsend.email.focus();
			return;
		}else{
			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
            
			if (!filter.test(mail)) {
				alert("EmailÀ» Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä!!!!!!!");
				document.editsend.email.focus();
				return; 
			}


		}
	}
	/*if (!document.editsend.tel.value){
		alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.editsend.tel.focus();
		return;
	}*/
	
	document.editsend.submit();
}

function comment_Exe(){

	if (!document.commentExe.writer.value){
		alert('ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.commentExe.writer.focus();
		return;
	}
	if (!document.commentExe.pw.value){
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');
		document.commentExe.pw.focus();
		return;
	}
	if (!document.commentExe.comment.value){
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!');
		document.commentExe.comment.focus();
		return;
	}

	document.commentExe.submit();
}

function com_del(str1,str2,str3,str4) {
qa = confirm('Á¤¸»·Î »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?');
if(qa)
	location='comdelExe.php?parent='+str1+'&page='+str2+'&no='+str3+'&code='+str4;
else
false;
}