//-----------------------------------------------
//function cls_register_form()
//-----------------------------------------------
function on_over(obj,color) {
	obj.style.backgroundColor = color;
}

function on_out(obj) {
	obj.style.backgroundColor = '';
}
function OnlyNumber()  //¿µ¹®À» ÀÔ·Â¹ÞÁö ¾Ê°Ô ÇÏ´Â ¹æ¹ý
{
	if((event.keyCode<48)||(event.keyCode>57))
	{
		event.returnValue=false;
	}
}
function cls_register_form(){
	if(document.frm_register.opt.value == "order"){
		location.replace("http://notemaul.co.kr/order_data_select.asp");
		return;
	}

	location.replace("http://notemaul.co.kr/index.asp");
}


//----------------------------------------
//function login()
//----------------------------------------

function login(){

	if (document.frm_login.id.value == "")
	{
		alert("id¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frm_login.id.focus();
		return;
	}
	if (document.frm_login.pwd.value == "")
	{
		alert("password¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frm_login.pwd.focus();
		return;
	}

	document.frm_login.action="_login.asp";
	document.frm_login.submit();
}
//----------------------------------------
//function login()
//----------------------------------------

function update_password(){

	if (document.update_password.pwd1.value == "")
	{
		alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.update_password.pwd1.focus();
		return;
	}


	if (document.update_password.pwd2.value == "")
	{
		alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.update_password.pwd2.focus();
		return;
	}



	if (document.update_password.pwd2.value != document.update_password.pwd1.value)
	{
		alert("ÆÐ½º¿öµå°¡ ¼­·Î ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");
		document.update_password.pwd1.value = "";
		document.update_password.pwd2.value = "";
		document.update_password.pwd1.focus();
		return;
	}


	document.update_password.action="_update_password.asp";
	document.update_password.submit();
}



//----------------------------------------
//function cart_update()
//----------------------------------------

function cart_update(input,pid,updown)
{
	if(updown == 'down' && input.value == '1')
	{
		alert("1°³ÀÌ»ó ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		return;
	}
	var url = "_cart_update.asp?pid=" + pid + "&updown=" + updown
	location.replace(url);
	
}
























function MM_preloadImages() { //v3.0

	var d=document; 

	if(d.images){ 

		if(!d.MM_p){ 
			d.MM_p=new Array();
		}

		var i;
		var j=d.MM_p.length;
		var a=MM_preloadImages.arguments; 

		for(i=0; i<a.length; i++){

			if (a[i].indexOf("#")!=0){

				d.MM_p[j]=new Image;
				d.MM_p[j++].src=a[i];
			}
		}
	}

	load_process();
}


function MM_findObj(n, d) { //v3.0

	var p,i,x;  
	if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length){

		d=parent.frames[n.substring(p+1)].document; 
		n=n.substring(0,p);

	}
	if(!(x=d[n])&&d.all) x=d.all[n]; 

	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	
	return x;
}







function MM_nbGroup(event, grpName) { //v3.0

	var i;
	var img;
	var nbArr;
	var args=MM_nbGroup.arguments;

	if (event == "init" && args.length > 2) {

			if ((img = MM_findObj(args[2])) != null && !img.MM_init) {

					img.MM_init = true; 
					img.MM_up = args[3];
					img.MM_dn = img.src;

					if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
					nbArr[nbArr.length] = img;
					for (i=4; i < args.length-1; i+=2) {

						if ((img = MM_findObj(args[i])) != null){

							if (!img.MM_up) img.MM_up = img.src;
							img.src = img.MM_dn = args[i+1];
							nbArr[nbArr.length] = img;

						} 

					}
			}

	}


	
	else if (event == "over") {

			document.MM_nbOver = nbArr = new Array();
			for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
			if (!img.MM_up) img.MM_up = img.src;
			img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
			nbArr[nbArr.length] = img;
			}

	}
	
	else if (event == "out" ) {

			for (i=0; i < document.MM_nbOver.length; i++) {
			img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }

	} 

	else if (event == "down") {

			if ((nbArr = document[grpName]) != null)
			for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
			document[grpName] = nbArr = new Array();
			for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
			if (!img.MM_up) img.MM_up = img.src;
			img.src = img.MM_dn = args[i+1];
			nbArr[nbArr.length] = img;
			} 

	}


}









function load_process(){
	if (document.frm_register){
		if(document.frm_register.id){
			document.frm_register.id.focus();
		}
	}
	if (document.frm_login){
		document.frm_login.id.focus();
	}
	if (document.frm_review){
		document.frm_review.rating[2].focus();
	}
	if (document.bbs_write){
		document.bbs_write.writer.focus();
	}
	if (document.bbs_answer){
		document.bbs_answer.writer.focus();
	}
	if (document.bbs_delete){
		document.bbs_delete.password.focus();
	}
	if (document.bbs_modify){
		document.bbs_modify.password.focus();
	}
	if (document.qna_write){
		document.qna_write.writer.focus();
	}
	if (document.qna_answer){
		document.qna_answer.writer.focus();
	}
	if (document.qna_delete){
		document.qna_delete.password.focus();
	}
	if (document.qna_modify){
		document.qna_modify.password.focus();
	}
}




function search_brand(){
// ºê·£µåº° °Ë»ö
	var s_value
	s_value = document.frm_three_view.cbo_brand.value;
	if (s_value == 0){
		//DO NOTHING!
	}
	else {
		location.replace("http://notemaul.co.kr/pro_list.asp?s_value="+s_value+"&s_type=brand");
		//window.location = "pro_list.asp?s_value="+s_value+"&s_type=brand";
	}
}

function search_price(){
// °¡°Ýº° °Ë»ö
	var s_value
	s_value = document.frm_three_view.cbo_price.value;
	if (s_value == 0){
		//DO NOTHING!
	}
	else {
		location.replace("http://notemaul.co.kr/pro_list.asp?s_value="+s_value+"&s_type=price");
		//window.location = "pro_list.asp?s_value="+s_value+"&s_type=brand";
	}
}

function search_product(){
	var s_value;
	s_value = document.frm_search.s_value.value;
	if (s_value == "")
	{
		alert("°Ë»ö¾î¸¦ ³Ö¾îÁÖ¼¼¿ä!");
		document.frm_search.s_value.focus();
	}
	else
	{
		location.replace("http://notemaul.co.kr/pro_list.asp?s_value="+s_value+"&s_type=search");
	}
}






function delete_cart_item(pid){
	location.replace("http://notemaul.co.kr/_delete_cart_item.asp?pid="+pid);
}

function insert_into_cart(){
	var pid;
	var p_count;
	var p_color;
	pid = document.frm_into_cart.pid.value;
	p_count = document.frm_into_cart.cbo_p_count.value;

	if (document.frm_into_cart.cbo_p_color){
		p_color = document.frm_into_cart.cbo_p_color.value;
		location.replace("http://notemaul.co.kr/_insert_into_cart.asp?pid="+pid+"&p_count="+p_count+"&p_color="+p_color+"&from=out");
	}
	else {
		location.replace("http://notemaul.co.kr/_insert_into_cart.asp?pid="+pid+"&p_count="+p_count+"&p_color=&from=out");
	}

}

function move_into_cart(pid,color){

	if (color != '-'){
		location.replace("http://notemaul.co.kr/_insert_into_cart.asp?pid="+pid+"&p_count=1&p_color="+color+"&from=in");
	}
	else {
		location.replace("http://notemaul.co.kr/_insert_into_cart.asp?pid="+pid+"&p_count=1&p_color=&from=in");
	}

}

function update_cart(count){
	var i;
	var msg;
	var isOk;
	var hasMsg;
	var upCount;
	upCount = -1;
	isOk = "ok";
	msg = "";
	hasMsg = false;

	if (count == "-1")
	{
		return;
	}

	for(i=0;i<=count*3;i+=3){
		if(document.frm_cart.elements[i].value != document.frm_cart.elements[i+2].value){
			for( z=0 ; z<document.frm_cart.elements[i].value.length ; z++ )
			{
					if(z==0)
					{
						if(document.frm_cart.elements[i].value.charAt(z) <= '0' ||
						   document.frm_cart.elements[i].value.charAt(z) > '9'){
							document.frm_cart.elements[i].value 
							= document.frm_cart.elements[i+2].value 
							isOk = "no";
						}
					}
					else
					{
						if(document.frm_cart.elements[i].value.charAt(z) < '0' ||
						   document.frm_cart.elements[i].value.charAt(z) > '9'){
							document.frm_cart.elements[i].value 
							= document.frm_cart.elements[i+2].value 
							isOk = "no";
						}
					}
			}
			if(isOk == "ok"){
				msg = msg + document.frm_cart.elements[i+1].value + 
					  ((document.frm_cart.elements[i].value*1) + 100);
				hasMsg = true;
				upCount++;
			}
		}
	}

	if(isOk == "ok" && hasMsg == true){
		location.replace("http://notemaul.co.kr/_update_cart.asp?msg="+msg+"&count="+upCount);	
	}
	else{
		return;
	}

}


function insert_into_mybox(){
	var pid;
	var p_color;
	pid = document.frm_into_cart.pid.value;
	
	if (document.frm_into_cart.cbo_p_color){
		p_color = document.frm_into_cart.cbo_p_color.value;
		location.replace("http://notemaul.co.kr/_insert_into_mybox.asp?pid="+pid+"&p_color="+p_color);
	}
	else {
		location.replace("http://notemaul.co.kr/_insert_into_mybox.asp?pid="+pid+"&p_color=");
	}
}

function move_into_mybox(pid,p_color){
	
	if (p_color != '-'){
		location.replace("http://notemaul.co.kr/_insert_into_mybox.asp?pid="+pid+"&p_color="+p_color);
	}
	else {
		location.replace("http://notemaul.co.kr/_insert_into_mybox.asp?pid="+pid+"&p_color=");
	}
}

function delete_mybox_item(pid){
	location.replace("http://notemaul.co.kr/_delete_mybox_item.asp?pid="+pid);
}









function check_id() 
{
	var strid = document.frm_register.id.value;
	if (strid =="")
	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!");
		document.frm_register.id.focus();
		return;
	}

	var ASPName = "id_check.asp?id="+strid;

	browsing_window 
		= window.open(ASPName, "_idcheck","height=300,width=400,menubar=no,directories=no,resizable=no");
	browsing_window.focus();
}

function fill_addr(zip1,zip2,addr) {
	//opener.document.frm_registe.zipcode1.value = zip1;
	//opener.document.frm_register.zipcode2.value = zip2;
	//opener.document.frm_register.addr1.value = addr;
	//opener.document.frm_register.addr2.focus();
	opener.document.all.zipcode1.value = zip1;
	opener.document.all.zipcode2.value = zip2;
	opener.document.all.addr1.value = addr;
	opener.document.all.addr2.value = "";
	opener.document.all.addr2.focus();
	self.close();
	return;
}

function post_search_key_check(){
	var key;
	key = document.frm_post_search.key.value;
	if (key == ""){
		alert("µ¿À» ÀÔ·ÂÇÏ¼¼¿ä");
		document.frm_post_search.key.focus();
		return;
	}
	document.frm_post_search.action = "post_search_result.asp"
	document.frm_post_search.submit();
}


function post_search() {
	var ASPName = "/post_search.asp";

	post_win 
		= window.open(ASPName, "_idcheck","height=400,width=600,menubar=no,directories=no,resizable=no,scrollbars=yes");
	post_win.focus();
}

function close_id_check() {
	opener.document.frm_register.id.value = document.frm_register.id.value;
	self.close();
	opener.document.frm_register.pwd1.focus();
	return;
}


function join_member() {

	var id;
	var pwd1;
	var pwd2;
	var name;
	var junum1;
	var junum2;
	var zip1;
	var zip2;
	var addr1;
	var addr1;
	var tel1;
	var tel2;
	var tel3;
	var email;
	var cel1;
	var cel2;
	var cel3;

	id = document.frm_register.id.value;
	pwd1 = document.frm_register.pwd1.value;
	pwd2 = document.frm_register.pwd2.value;
	name = document.frm_register.name.value;
	junum1 = document.frm_register.junum1.value;
	junum2 = document.frm_register.junum2.value;
	zip1 = document.frm_register.zipcode1.value;
	zip2 = document.frm_register.zipcode2.value;
	addr1 = document.frm_register.addr1.value;
	addr2 = document.frm_register.addr2.value;
	tel1 = document.frm_register.tel1.value;
	tel2 = document.frm_register.tel2.value;
	tel3 = document.frm_register.tel3.value;
	email = document.frm_register.email.value;
	cel1 = document.frm_register.cel1.value;
	cel2 = document.frm_register.cel2.value;
	cel3 = document.frm_register.cel3.value;

	if (id == ""){
		alert("id¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.id.focus();
		return;
	}
	if (pwd1 == ""){
		alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.pwd1.focus();
		return;
	}
	if (pwd2 == ""){
		alert("ÆÐ½º¿öµåÈ®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.pwd2.focus();
		return;
	}
	if (pwd1 != pwd2){
		alert("'ºñ¹Ð¹øÈ£' ¿Í 'ºñ¹Ð¹øÈ£È®ÀÎ'ÀÌ ¼­·Î ÀÏÄ¡ÇÏÁö ¾ÊÀ¾´Ï´Ù.\n\n´Ù½Ã ÀÛ¼ºÇØ ÁÖ¼¼¿ä!");
		document.frm_register.pwd1.value="";
		document.frm_register.pwd2.value="";
		document.frm_register.pwd1.focus();
		return;
	}
	if (name == ""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.name.focus();
		return;
	}

	

	if (junum1 == ""){
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.junum1.focus();
		return;
	}
	if (!isNumber(junum1)){
		alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.junum1.value = "";
		document.frm_register.junum1.focus();
		return;
	}
	if (junum2 == ""){
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.junum2.focus();
		return;
	}
	if (!isNumber(junum2)){
		alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.junum2.value = "";
		document.frm_register.junum2.focus();
		return;
	}

	if (!fnRegCheck(junum1+junum2)){
		alert("Á¤È®ÇÑ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.junum1.value = "";
		document.frm_register.junum2.value = "";
		document.frm_register.junum1.focus();
		return;
	}


	
	if (zip1 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.zipcode1.focus();
		return;
	}
	if (!isNumber(zip1)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.zipcode1.value = "";
		document.frm_register.zipcode1.focus();
		return;
	}
	if (zip2 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.zipcode2.focus();
		return;
	}
	if (!isNumber(zip2)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.zipcode2.value = "";
		document.frm_register.zipcode2.focus();
		return;
	}
	if (addr1 == ""){
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.addr1.focus();
		return;
	}
	if (addr2 == ""){
		alert("»ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.addr2.focus();
		return;
	}

	if (tel1 == ""){
		alert("Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.tel1.focus();
		return;
	}
	if (!isNumber(tel1)){
		alert("Áö¿ª¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.tel1.value = "";
		document.frm_register.tel1.focus();
		return;
	}
	if (tel2 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.tel2.focus();
		return;
	}
	if (!isNumber(tel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.tel2.value = "";
		document.frm_register.tel2.focus();
		return;
	}
	if (tel3 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.tel3.focus();
		return;
	}
	if (!isNumber(tel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.tel3.value = "";
		document.frm_register.tel3.focus();
		return;
	}
	if (email == ""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.email.focus();
		return;
	}
	if ( email.indexOf('@') == -1 || email.indexOf('.') == -1 )
    {
        alert("Àß¸øµÈ EmailÁÖ¼ÒÀÔ´Ï´Ù.\nÁ¤È®ÇÑ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
        document.frm_register.email.value = "";
        document.frm_register.email.focus();
        return;
    }


	if (!isNumber(cel1)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.cel1.value = "";
		document.frm_register.cel1.focus();
		return;
	}
	if (!isNumber(cel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.cel2.value = "";
		document.frm_register.cel2.focus();
		return;
	}
	if (!isNumber(cel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_register.cel3.value = "";
		document.frm_register.cel3.focus();
		return;
	}

	document.frm_register.submit();

}


function change_member_info() {

	var pwd1;
	var pwd2;
	var zip1;
	var zip2;
	var addr1;
	var addr1;
	var tel1;
	var tel2;
	var tel3;
	var email;
	var cel1;
	var cel2;
	var cel3;

	pwd1 = document.frm_change_info.pwd1.value;
	pwd2 = document.frm_change_info.pwd2.value;
	zip1 = document.frm_change_info.zipcode1.value;
	zip2 = document.frm_change_info.zipcode2.value;
	addr1 = document.frm_change_info.addr1.value;
	addr2 = document.frm_change_info.addr2.value;
	tel1 = document.frm_change_info.tel1.value;
	tel2 = document.frm_change_info.tel2.value;
	tel3 = document.frm_change_info.tel3.value;
	email = document.frm_change_info.email.value;
	cel1 = document.frm_change_info.cel1.value;
	cel2 = document.frm_change_info.cel2.value;
	cel3 = document.frm_change_info.cel3.value;

	if (pwd1 == ""){
		alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.pwd1.focus();
		return;
	}
	if (pwd2 == ""){
		alert("ÆÐ½º¿öµåÈ®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.pwd2.focus();
		return;
	}
	if (pwd1 != pwd2){
		alert("'ºñ¹Ð¹øÈ£' ¿Í 'ºñ¹Ð¹øÈ£È®ÀÎ'ÀÌ ¼­·Î ÀÏÄ¡ÇÏÁö ¾ÊÀ¾´Ï´Ù.\n\n´Ù½Ã ÀÛ¼ºÇØ ÁÖ¼¼¿ä!");
		document.frm_change_info.pwd1.value="";
		document.frm_change_info.pwd2.value="";
		document.frm_change_info.pwd1.focus();
		return;
	}

	

	
	if (zip1 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.zipcode1.focus();
		return;
	}
	if (!isNumber(zip1)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.zipcode1.value = "";
		document.frm_change_info.zipcode1.focus();
		return;
	}
	if (zip2 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.zipcode2.focus();
		return;
	}
	if (!isNumber(zip2)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.zipcode2.value = "";
		document.frm_change_info.zipcode2.focus();
		return;
	}
	if (addr1 == ""){
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.addr1.focus();
		return;
	}
	if (addr2 == ""){
		alert("»ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.addr2.focus();
		return;
	}

	if (tel1 == ""){
		alert("Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.tel1.focus();
		return;
	}
	if (!isNumber(tel1)){
		alert("Áö¿ª¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.tel1.value = "";
		document.frm_change_info.tel1.focus();
		return;
	}
	if (tel2 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.tel2.focus();
		return;
	}
	if (!isNumber(tel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.tel2.value = "";
		document.frm_change_info.tel2.focus();
		return;
	}
	if (tel3 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.tel3.focus();
		return;
	}
	if (!isNumber(tel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.tel3.value = "";
		document.frm_change_info.tel3.focus();
		return;
	}
	if (email == ""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.email.focus();
		return;
	}
	if ( email.indexOf('@') == -1 || email.indexOf('.') == -1 )
    {
        alert("Àß¸øµÈ EmailÁÖ¼ÒÀÔ´Ï´Ù.\nÁ¤È®ÇÑ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
        document.frm_change_info.email.value = "";
        document.frm_change_info.email.focus();
        return;
    }


	if (!isNumber(cel1)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.cel1.value = "";
		document.frm_change_info.cel1.focus();
		return;
	}
	if (!isNumber(cel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.cel2.value = "";
		document.frm_change_info.cel2.focus();
		return;
	}
	if (!isNumber(cel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.frm_change_info.cel3.value = "";
		document.frm_change_info.cel3.focus();
		return;
	}

	document.frm_change_info.submit();

}

function isNumber(x)
{
    var isNum = true;

    for ( inx=0; inx < x.length; inx++ )
    {
        if (  x.charAt(inx) < '0' || x.charAt(inx) > '9' )
            isNum = false;
    }
    return isNum;
}
 
function fnRegCheck(strRegNo)
{
    if (strRegNo.length != 13)
    {
        //alert('\nÁÖ¹Îµî·Ï¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù.´Ù½Ã È®ÀÎÇØ ÁÖ¼¼¿ä');
        return false;
    }
 
    arrVal = new Array(13);
    var iLastid = 0, iMod=0,iMinus = 0, iLast = 0;
    iLastid    = parseFloat(strRegNo.substring(12, 13));

    arrVal[0]  = parseFloat(strRegNo.substring( 0, 1)) * 2;
    arrVal[1]  = parseFloat(strRegNo.substring( 1, 2)) * 3;
    arrVal[2]  = parseFloat(strRegNo.substring( 2, 3)) * 4;
    arrVal[3]  = parseFloat(strRegNo.substring( 3, 4)) * 5;
    arrVal[4]  = parseFloat(strRegNo.substring( 4, 5)) * 6;
    arrVal[5]  = parseFloat(strRegNo.substring( 5, 6)) * 7;
    arrVal[6]  = parseFloat(strRegNo.substring( 6, 7)) * 8;
    arrVal[7]  = parseFloat(strRegNo.substring( 7, 8)) * 9;
    arrVal[8]  = parseFloat(strRegNo.substring( 8, 9)) * 2;
    arrVal[9]  = parseFloat(strRegNo.substring( 9,10)) * 3;
    arrVal[10] = parseFloat(strRegNo.substring(10,11)) * 4;
    arrVal[11] = parseFloat(strRegNo.substring(11,12)) * 5;
    arrVal[12] = 0;

    for (var iCnt = 0; iCnt < 12 ;iCnt++)
    {
        arrVal[12] += arrVal[iCnt];
    }
       
    iMod = arrVal[12] %11;
    iMinus = 11 - iMod;
    iLast = iMinus % 10;

    if (iLast != iLastid)
    {
        //alert('\nÁÖ¹Îµî·Ï¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù.´Ù½Ã È®ÀÎÇØ ÁÖ¼¼¿ä');
        return false;
        //return true;
    }
    
    return true;
}



function review(){
	var writer;
	var title;
	var content;
	var email;
	writer = document.frm_review.review_writer.value;
	title = document.frm_review.review_title.value;
	content = document.frm_review.content.value;
	email = document.frm_review.email.value;
	
	if (title == ""){
		alert("'Á¦¸ñ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.frm_review.review_title.focus();
		return;
	}
	if (writer == ""){
		alert("'ÀÛ¼ºÀÚ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.frm_review.review_writer.focus();
		return;
	}
	if (content == ""){
		alert("'»óÇ°Æò'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.frm_review.content.focus();
		return;
	}
	if (email != ""){
		if ( email.indexOf('@') == -1 || email.indexOf('.') == -1 )
		{
			alert("Àß¸øµÈ EmailÁÖ¼ÒÀÔ´Ï´Ù.\nÁ¤È®ÇÑ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.frm_review.email.value = "";
			document.frm_review.email.focus();
			return;
		}
	}

	document.frm_review.action = "_review.asp";
	document.frm_review.submit();


}







function news_write(){
	var title;
	var content;
	var opt;
	title = document.news_write.title.value;
	content = document.news_write.content.value;
	opt = document.news_write.opt.value;

	if(opt == "0"){
		alert("¸Ó¸´±ÛÀ» ¼±ÅÃÇÏ¼¼¿ä!");
		document.news_write.opt.focus();
		return;
	}
	if(title == ""){
		alert("'Á¦¸ñ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.news_write.title.focus();
		return;
	}
	if(content == ""){
		alert("'³»¿ë'¶õÀ» ÀÛ¼ºÇØÁÖ¼¼¿ä!");
		document.news_write.content.focus();
		return;
	}

	document.news_write.action = "_news_write.asp";
	document.news_write.submit();
	return;
}




function news_change_cancel(){
	location.replace("http://notemaul.co.kr/news_list.asp");
}

function news_update(){
	var title;
	var content;
	title = document.news_update.title.value;
	content = document.news_update.content.value;

	if(title == ""){
		alert("'Á¦¸ñ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.news_update.title.focus();
		return;
	}
	if(content == ""){
		alert("'³»¿ë'¶õÀ» ÀÛ¼ºÇØÁÖ¼¼¿ä!");
		document.news_update.content.focus();
		return;
	}

	document.news_update.action = "_news_update.asp";
	document.news_update.submit();
	return;
}




















function bbs_write(){
	var title;
	var content;
	var password;
	var writer;
	title = document.bbs_write.title.value;
	content = document.bbs_write.content.value;
	password = document.bbs_write.password.value;
	writer = document.bbs_write.writer.value;

	if(writer == ""){
		alert("'ÀÛ¼ºÀÚ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_write.writer.focus();
		return;
	}
	if(title == ""){
		alert("'Á¦¸ñ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_write.title.focus();
		return;
	}
	if(content == ""){
		alert("'³»¿ë'¶õÀ» ÀÛ¼ºÇØÁÖ¼¼¿ä!");
		document.bbs_write.content.focus();
		return;
	}
	if(password == ""){
		alert("'ºñ¹Ð¹øÈ£'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_write.password.focus();
		return;
	}

	document.bbs_write.action = "_bbs_write.asp";
	document.bbs_write.submit();
	return;
}


function bbs_answer(){
	var title;
	var content;
	var password;
	var writer;
	title = document.bbs_answer.title.value;
	content = document.bbs_answer.content.value;
	password = document.bbs_answer.password.value;
	writer = document.bbs_answer.writer.value;

	if(writer == ""){
		alert("'ÀÛ¼ºÀÚ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_answer.writer.focus();
		return;
	}
	if(title == ""){
		alert("'Á¦¸ñ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_answer.title.focus();
		return;
	}
	if(content == ""){
		alert("'³»¿ë'¶õÀ» ÀÛ¼ºÇØÁÖ¼¼¿ä!");
		document.bbs_answer.content.focus();
		return;
	}
	if(password == ""){
		alert("'ºñ¹Ð¹øÈ£'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_answer.password.focus();
		return;
	}

	document.bbs_answer.action = "_bbs_answer.asp";
	document.bbs_answer.submit();
	return;
}

function bbs_answer_cancel(){
	location.replace("http://notemaul.co.kr/bbs_list.asp");
}


function bbs_change(){
	var password;
	password = document.bbs_modify.password.value;
	if(password == ""){
		alert("'ºñ¹Ð¹øÈ£'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_modify.password.focus();
		return;
	}

	document.bbs_modify.submit();
	return;
}

function bbs_change_cancel(){
	location.replace("http://notemaul.co.kr/bbs_list.asp");
}
function bbs_update(){
	var title;
	var content;
	var password;
	var writer;
	title = document.bbs_update.title.value;
	content = document.bbs_update.content.value;
	password = document.bbs_update.password.value;
	writer = document.bbs_update.writer.value;

	if(writer == ""){
		alert("'ÀÛ¼ºÀÚ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_update.writer.focus();
		return;
	}
	if(title == ""){
		alert("'Á¦¸ñ'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_update.title.focus();
		return;
	}
	if(content == ""){
		alert("'³»¿ë'¶õÀ» ÀÛ¼ºÇØÁÖ¼¼¿ä!");
		document.bbs_update.content.focus();
		return;
	}
	if(password == ""){
		alert("'ºñ¹Ð¹øÈ£'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_update.password.focus();
		return;
	}

	document.bbs_update.action = "_bbs_update.asp";
	document.bbs_update.submit();
	return;
}


function bbs_del(){
	var password;
	password = document.bbs_delete.password.value;
	if(password == ""){
		alert("'ºñ¹Ð¹øÈ£'¶õÀ» ±âÀÔÇØÁÖ¼¼¿ä!");
		document.bbs_delete.password.focus();
		return;
	}

	document.bbs_delete.submit();
	return;
}

function bbs_del_cancel(){
	location.replace("http://notemaul.co.kr/bbs_list.asp");
}
















function mouseOnTD(seq, bool)
{
	var oTD = eval("document.all.listXP" + seq);
	var len = oTD.length;
	var borderStyle = "1 solid slategray";
	
	if (bool){
		for(var i =0; i < len ; i++){
			//oTD[i].style.borderTop = borderStyle;
			//oTD[i].style.backgroundColor = "#f0f0f0";
			oTD[i].style.backgroundColor = "#000000";
			//oTD[i].style.borderBottom = borderStyle;
			oTD[i].style.cursor = "default";
		}
//		oTD[0].style.borderLeft = borderStyle;
//		oTD[0].style.backgroundColor = "#b6c9d9";
//		oTD[len-1].style.borderRight = borderStyle;
	}else{
		for(var i =0; i < len; i++){
			oTD[i].style.border = "";
			oTD[i].style.backgroundColor = "";
		}
//		oTD[0].style.backgroundColor = "";
	}
}







function login_order(){

	if (document.frm_login_order.id.value == "")
	{
		alert("id¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frm_login_order.id.focus();
		return;
	}
	if (document.frm_login_order.pwd.value == "")
	{
		alert("password¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frm_login_order.pwd.focus();
		return;
	}

	document.frm_login_order.action="_login_order.asp";
	document.frm_login_order.submit();
}











function order_m(by){

	var o_name;
	var o_email;
	var o_tel1;
	var o_tel2;
	var o_tel3;
	var o_cel1;
	var o_cel2;
	var o_cel3;

	var r_name;
	var zipcode1;
	var zipcode2;
	var addr1;
	var addr1;
	var r_tel1;
	var r_tel2;
	var r_tel3;
	var r_cel1;
	var r_cel2;
	var r_cel3;

	o_name = document.order_m.o_name.value;
	o_email = document.order_m.o_email.value;
	o_tel1 = document.order_m.o_tel1.value;
	o_tel2 = document.order_m.o_tel2.value;
	o_tel3 = document.order_m.o_tel3.value;
	o_cel1 = document.order_m.o_cel1.value;
	o_cel2 = document.order_m.o_cel2.value;
	o_cel3 = document.order_m.o_cel3.value;

	r_name = document.order_m.r_name.value;
	zipcode1 = document.order_m.zipcode1.value;
	zipcode2 = document.order_m.zipcode2.value;
	addr1 = document.order_m.addr1.value;
	addr2 = document.order_m.addr2.value;
	r_tel1 = document.order_m.r_tel1.value;
	r_tel2 = document.order_m.r_tel2.value;
	r_tel3 = document.order_m.r_tel3.value;
	r_cel1 = document.order_m.r_cel1.value;
	r_cel2 = document.order_m.r_cel2.value;
	r_cel3 = document.order_m.r_cel3.value;

	if (o_name == ""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_name.focus();
		return;
	}
	if (o_tel1 == ""){
		alert("Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_tel1.focus();
		return;
	}
	if (!isNumber(o_tel1)){
		alert("Áö¿ª¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_tel1.value = "";
		document.order_m.o_tel1.focus();
		return;
	}
	if (o_tel2 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_tel2.focus();
		return;
	}
	if (!isNumber(o_tel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_tel2.value = "";
		document.order_m.o_tel2.focus();
		return;
	}
	if (o_tel3 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_tel3.focus();
		return;
	}
	if (!isNumber(o_tel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_tel3.value = "";
		document.order_m.o_tel3.focus();
		return;
	}


	if (!isNumber(o_cel1)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_cel1.value = "";
		document.order_m.o_cel1.focus();
		return;
	}
	if (!isNumber(o_cel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_cel2.value = "";
		document.order_m.o_cel2.focus();
		return;
	}
	if (!isNumber(o_cel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_cel3.value = "";
		document.order_m.o_cel3.focus();
		return;
	}
	if (o_email == ""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.o_email.focus();
		return;
	}
	if ( o_email.indexOf('@') == -1 || o_email.indexOf('.') == -1 )
    {
        alert("Àß¸øµÈ ÀÌ¸ÞÀÏ ÁÖ¼ÒÀÔ´Ï´Ù.\nÁ¤È®ÇÑ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
        document.order_m.o_email.value = "";
        document.order_m.o_email.focus();
        return;
    }





	

	
	if (zipcode1 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.zipcode1.focus();
		return;
	}
	if (!isNumber(zipcode1)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.zipcode1.value = "";
		document.order_m.zipcode1.focus();
		return;
	}
	if (zipcode2 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.zipcode2.focus();
		return;
	}
	if (!isNumber(zipcode2)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.zipcode2.value = "";
		document.order_m.zipcode2.focus();
		return;
	}
	if (addr1 == ""){
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.addr1.focus();
		return;
	}
	if (addr2 == ""){
		alert("»ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.addr2.focus();
		return;
	}

	if (r_name == ""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_name.focus();
		return;
	}

	if (r_tel1 == ""){
		alert("Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_tel1.focus();
		return;
	}
	if (!isNumber(r_tel1)){
		alert("Áö¿ª¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_tel1.value = "";
		document.order_m.r_tel1.focus();
		return;
	}
	if (r_tel2 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_tel2.focus();
		return;
	}
	if (!isNumber(r_tel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_tel2.value = "";
		document.order_m.r_tel2.focus();
		return;
	}
	if (r_tel3 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_tel3.focus();
		return;
	}
	if (!isNumber(r_tel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_tel3.value = "";
		document.order_m.r_tel3.focus();
		return;
	}


	if (!isNumber(r_cel1)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_cel1.value = "";
		document.order_m.r_cel1.focus();
		return;
	}
	if (!isNumber(r_cel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_cel2.value = "";
		document.order_m.r_cel2.focus();
		return;
	}
	if (!isNumber(r_cel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_m.r_cel3.value = "";
		document.order_m.r_cel3.focus();
		return;
	}
	
	if(by == "bank"){
		document.order_m.action="by_bank.asp";
		document.order_m.submit();
	}
	else if(by == "card"){
		document.order_m.action="by_card.asp";
		document.order_m.submit();
	}
	else{
		document.order_m.action="by_point.asp";
		document.order_m.submit();
	}


}

function order_t(by){

	var o_name;
	var o_email;
	var o_tel1;
	var o_tel2;
	var o_tel3;
	var o_cel1;
	var o_cel2;
	var o_cel3;

	var r_name;
	var zipcode1;
	var zipcode2;
	var addr1;
	var addr1;
	var r_tel1;
	var r_tel2;
	var r_tel3;
	var r_cel1;
	var r_cel2;
	var r_cel3;

	o_name = document.order_t.o_name.value;
	o_email = document.order_t.o_email.value;
	o_tel1 = document.order_t.o_tel1.value;
	o_tel2 = document.order_t.o_tel2.value;
	o_tel3 = document.order_t.o_tel3.value;
	o_cel1 = document.order_t.o_cel1.value;
	o_cel2 = document.order_t.o_cel2.value;
	o_cel3 = document.order_t.o_cel3.value;

	r_name = document.order_t.r_name.value;
	zipcode1 = document.order_t.zipcode1.value;
	zipcode2 = document.order_t.zipcode2.value;
	addr1 = document.order_t.addr1.value;
	addr2 = document.order_t.addr2.value;
	r_tel1 = document.order_t.r_tel1.value;
	r_tel2 = document.order_t.r_tel2.value;
	r_tel3 = document.order_t.r_tel3.value;
	r_cel1 = document.order_t.r_cel1.value;
	r_cel2 = document.order_t.r_cel2.value;
	r_cel3 = document.order_t.r_cel3.value;

	if (o_name == ""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_name.focus();
		return;
	}
	if (o_tel1 == ""){
		alert("Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_tel1.focus();
		return;
	}
	if (!isNumber(o_tel1)){
		alert("Áö¿ª¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_tel1.value = "";
		document.order_t.o_tel1.focus();
		return;
	}
	if (o_tel2 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_tel2.focus();
		return;
	}
	if (!isNumber(o_tel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_tel2.value = "";
		document.order_t.o_tel2.focus();
		return;
	}
	if (o_tel3 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_tel3.focus();
		return;
	}
	if (!isNumber(o_tel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_tel3.value = "";
		document.order_t.o_tel3.focus();
		return;
	}


	if (!isNumber(o_cel1)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_cel1.value = "";
		document.order_t.o_cel1.focus();
		return;
	}
	if (!isNumber(o_cel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_cel2.value = "";
		document.order_t.o_cel2.focus();
		return;
	}
	if (!isNumber(o_cel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_cel3.value = "";
		document.order_t.o_cel3.focus();
		return;
	}
	if (o_email == ""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.o_email.focus();
		return;
	}
	if ( o_email.indexOf('@') == -1 || o_email.indexOf('.') == -1 )
    {
        alert("Àß¸øµÈ ÀÌ¸ÞÀÏ ÁÖ¼ÒÀÔ´Ï´Ù.\nÁ¤È®ÇÑ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
        document.order_t.o_email.value = "";
        document.order_t.o_email.focus();
        return;
    }





	

	
	if (zipcode1 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.zipcode1.focus();
		return;
	}
	if (!isNumber(zipcode1)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.zipcode1.value = "";
		document.order_t.zipcode1.focus();
		return;
	}
	if (zipcode2 == ""){
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.zipcode2.focus();
		return;
	}
	if (!isNumber(zipcode2)){
		alert("¿ìÆí¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.zipcode2.value = "";
		document.order_t.zipcode2.focus();
		return;
	}
	if (addr1 == ""){
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.addr1.focus();
		return;
	}
	if (addr2 == ""){
		alert("»ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.addr2.focus();
		return;
	}

	if (r_name == ""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_name.focus();
		return;
	}

	if (r_tel1 == ""){
		alert("Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_tel1.focus();
		return;
	}
	if (!isNumber(r_tel1)){
		alert("Áö¿ª¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_tel1.value = "";
		document.order_t.r_tel1.focus();
		return;
	}
	if (r_tel2 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_tel2.focus();
		return;
	}
	if (!isNumber(r_tel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_tel2.value = "";
		document.order_t.r_tel2.focus();
		return;
	}
	if (r_tel3 == ""){
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_tel3.focus();
		return;
	}
	if (!isNumber(r_tel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_tel3.value = "";
		document.order_t.r_tel3.focus();
		return;
	}


	if (!isNumber(r_cel1)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_cel1.value = "";
		document.order_t.r_cel1.focus();
		return;
	}
	if (!isNumber(r_cel2)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_cel2.value = "";
		document.order_t.r_cel2.focus();
		return;
	}
	if (!isNumber(r_cel3)){
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.order_t.r_cel3.value = "";
		document.order_t.r_cel3.focus();
		return;
	}
	
	if(by == "bank"){
		document.order_t.action="by_bank.asp";
		document.order_t.submit();
	}
	else{
		document.order_t.action="by_card.asp";
		document.order_t.submit();
	}
}


function complete_bank_order(){
	var s_name;
	s_name = document.complete_bank_order.s_name.value;

	if(document.complete_bank_order.bank.value == "0"){
		alert("ÀÔ±ÝÀºÇàÀ» ¼±ÅÃÇØÁÖ¼¼¿ä!");
		document.complete_bank_order.bank.focus();
		return;
	}

	if(s_name == ""){
		alert("ÀÔ±ÝÀÚ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
		document.complete_bank_order.s_name.focus();
		return;
	}

	document.complete_bank_order.action="_complete_bank_order.asp";
	document.complete_bank_order.submit();
}


function complete_card_order(){

	document.complete_card_order.action="_prepare_card_order.asp";
	document.complete_card_order.submit();

}







function trans_m(){

	if (document.trans_m.id.value == "")
	{
		alert("id¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.trans_m.id.focus();
		return;
	}
	if (document.trans_m.pwd.value == "")
	{
		alert("password¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.trans_m.pwd.focus();
		return;
	}

	document.trans_m.action="_trans_m.asp";
	document.trans_m.submit();
}


function trans_t(){

	if (document.trans_t.name.value == "")
	{
		alert("name¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.trans_t.name.focus();
		return;
	}
	if (document.trans_t.e_mail.value == "")
	{
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.trans_t.e_mail.focus();
		return;
	}
	if ( document.trans_t.e_mail.value.indexOf('@') == -1 
		|| document.trans_t.e_mail.value.indexOf('.') == -1 )
    {
        alert("Àß¸øµÈ ÀÌ¸ÞÀÏ ÁÖ¼ÒÀÔ´Ï´Ù.\nÁ¤È®ÇÑ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.trans_t.e_mail.value = "";
		document.trans_t.e_mail.focus();
        return;
    }

	document.trans_t.action="_trans_t.asp";
	document.trans_t.submit();
}



function password(){

	if (document.password.name.value == "")
	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä");
		document.password.name.focus();
		return;
	}
	if (document.password.id_num1.value == "")
	{
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.password.id_num1.focus();
		return;
	}
	if (document.password.id_num2.value == "")
	{
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.password.id_num2.focus();
		return;
	}
	if (!fnRegCheck(document.password.id_num1.value
		+document.password.id_num2.value)){
		alert("Á¤È®ÇÑ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		document.password.id_num1.value = "";
		document.password.id_num2.value = "";
		document.password.id_num1.focus();
		return;
	}

	document.password.action="_password.asp";
	document.password.submit();
}

function send_password(){
	if (document.send_password.e_mail.value == "")
	{
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.send_password.e_mail.focus();
		return;
	}
	if ( document.send_password.e_mail.value.indexOf('@') == -1 
		|| document.send_password.e_mail.value.indexOf('.') == -1 )
    {
        alert("Àß¸øµÈ ÀÌ¸ÞÀÏ ÁÖ¼ÒÀÔ´Ï´Ù.\nÁ¤È®ÇÑ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.send_password.e_mail.value = "";
		document.send_password.e_mail.focus();
        return;
    }

	document.send_password.action="_send_password.asp";
	document.send_password.submit();
}



function large_img_show(pid,src) {
	if(!src)src = '';
	var ASPName = "large_img_show.asp?pid=" + pid + "&src=" + src;

	post_win 
		= window.open(ASPName, "_idcheck","height=500,width=650,menubar=no,directories=no,resizable=no,scrollbars=no");
	post_win.focus();
}



function startBlink() {
    var objBlink = document.all.tags("BLINK")
    for (var i=0; i < objBlink.length; i++)
        objBlink[i].style.visibility = objBlink[i].style.visibility == "" ? "hidden" : ""
}

function init() {
    if (document.all)
        setInterval("startBlink()",1000)
}

window.onload = init;









