/***** °øÅë Çì´õ *****/
function gomain(){
	location.href = "/index.asp";
}


/***** ±¤°í µî·Ï *****/

	//step 1
	function regi_step1(){
		location.href = "../register/regi_step1.asp";
	}
	//step 2
	function regi_step2(){
		location.href = "../register/regi_step2.asp";
	}
	//step 3
	function regi_step3(){
		location.href = "../register/regi_step3.asp";
	}
	//step 4
	function regi_step4(){
		location.href = "../register/regi_step4.asp";
	}	
	
	//Txt Banner
	function regitxt_step2(){
		location.href = "../register/regitxt_step2.asp";
	}
	//Txt Banner
	function regitxt_result(){
		location.href = "../register/regitxt_result.asp";
	}
	//Txt Banner À§Ä¡ È®ÀÎ
	function txt_position() {
		window.open('../register/regitxt_position.asp', '', 'width=344,height=450,top=0,left=0');
	}			

	//ÇÃ·£¸®½ºÆ® º¸±â
	function plan_list(){
		var total_budget_temp = document.form.total_budget_temp.value.replace(",","");
		
		if (total_budget_temp < 500000) {
			alert("Èñ¸Á±¤°íºñ´Â 50¸¸¿ø ÀÌ»óÀ¸·Î ±âÀçÇØ ÁÖ¼¼¿ä.");
			retrun;
		}
		
		if (document.form.ad_site_total_num.value > 0) {
		    var site_chk_num = 0;
	        for (k=0;k<document.form.ad_site_total_num.value;k++) {
		        if (document.form.ad_site[k].checked == true) {
			        site_chk_num++;
		        }
	        }
        	
	        if (site_chk_num == 0) {
		        alert("±¤°íÇÒ »çÀÌÆ®¸¦ Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
		        return;
	        }
	    }
	    
	    if (document.form.campaign_name.value == "") {
	        alert("Ä·ÆäÀÎ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
	        document.form.campaign_name.focus();
	        return;
	    }
	    
	    if (document.form.campaign_double.value == "n") {
			alert("Ä·ÆäÀÎ¸í Áßº¹È®ÀÎÀ» ÇØ ÁÖ¼¼¿ä.");
			return;
	    }
	    
	    if (document.form.campaign_name.value != document.form.campaign_name_tmp.value) {
			alert("½ÂÀÎ¹ÞÀº Ä·ÆäÀÎ¸í°ú ÀÔ·ÂµÈ Ä·ÆäÀÎ¸íÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.\nÄ·ÆäÀÎ¸í Áßº¹È®ÀÎÀ» ´Ù½ÃÇØ ÁÖ¼¼¿ä.");
			return;
	    }
	    
	    document.form.submit();
		
		//location.href = "../register/plan_list.asp";
	}
	
	
	//express 2
	function regi_express2(){
		//location.href = "../register/regi_express2.asp";
		
		if (document.form.search_cpm.value == "") {
		    alert("Èñ¸Á ±¤°íºñ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		    document.form.search_cpm.focus();
		    return;
		}
		
		t1 = document.form.search_cpm.value;
		t1 = t1.replace(/,/gi,"");
	
		for (i=0;i<t1.length;i++) {
			if (t1.charAt(i) < '0' || t1.charAt(i) > '9') {
				alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä.");
				document.form.search_cpm.focus();
				return;
			}
		}
		
		if (t1 < 500000) {
			alert("Èñ¸Á±¤°íºñ´Â 50¸¸¿ø ÀÌ»óÀ¸·Î ±âÀçÇØ ÁÖ¼¼¿ä.");
			document.form.search_cpm.focus();
			return;
		}
		
		if (document.form.search_keyword.value == "") {
		    alert("»óÇ° Å°¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		    document.form.search_keyword.focus();
		    return;
		}
		
		if (document.form.campaign_term.value == "") {
		    alert("±¤°í ÁýÇà ±â°£À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		    document.form.campaign_term.focus();
		    return;
		}
		
		var position_chk_num = 0;
	    for (k=0;k<document.form.ad_position.length;k++) {
		    if (document.form.ad_position[k].checked == true) {
			    position_chk_num++;
		    }
	    }
    	
	    if (position_chk_num == 0) {
		    alert("±¤°í À§Ä¡¸¦ Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
		    return;
	    }
	    
	    var target_chk_num = 0;
	    for (k=0;k<document.form.target_group.length;k++) {
		    if (document.form.target_group[k].checked == true) {
			    target_chk_num++;
		    }
	    }
    	
	    if (target_chk_num == 0) {
		    alert("±¤°í Å¸°ÙÀ» Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
		    return;
	    } else if (target_chk_num > 3) {
	        alert("±¤°í Å¸°ÙÀ» 3°³±îÁö¸¸ ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
	        return;
	    }
	    
	    document.form.submit();
	}	


/***** ±¤°í °ü¸® *****/

	//ÇÃ·£ ¸®½ºÆ®
	function manage_plan(){
		location.href = "../manage/manage_plan.asp";
	}
	//½ÂÀÎ ¸®½ºÆ®
	function manage_approval(){
		location.href = "../manage/manage_approval.asp";
	}
	//°ÔÀç ¸®½ºÆ®
	function manage_run(){
		location.href = "../manage/manage_run.asp";
	}
	//°ÔÀç ¿Ï·á ¸®½ºÆ®
	function manage_done(){
		location.href = "../manage/manage_done.asp";
	}
	//»èÁ¦ ¸®½ºÆ®
	function manage_delete(){
		location.href = "../manage/manage_delete.asp";
	}
	

/***** ÅØ½ºÆ®±¤°í °ü¸® *****/

	//ÇÃ·£ ¸®½ºÆ®
	function managetxt_tender(){
		location.href = "../manage/managetxt_bid.asp";
	}
	//½ÂÀÎ ¸®½ºÆ®
	function managetxt_pay(){
		location.href = "../manage/managetxt_pay.asp";
	}
	//°ÔÀç ¸®½ºÆ®
	function managetxt_run(){
		location.href = "../manage/managetxt_run.asp";
	}
	//°ÔÀç ¿Ï·á ¸®½ºÆ®
	function managetxt_done(){
		location.href = "../manage/managetxt_done.asp";
	}
	//»èÁ¦/Ãë¼Ò ¸®½ºÆ®
	function managetxt_delete(){
		location.href = "../manage/managetxt_del.asp";
	}



/***** ±¤°í ¸®Æ÷Æ® *****/

	//¸®Æ÷Æ® ¿ä¾à
	function report_sum(){
		location.href = "../report/report_sum.asp";
	}

	

/***** ±¤°íÁÖ È¸¿ø°¡ÀÔ / ¼öÁ¤ / ·Î±×ÀÎ *****/

	//step 1
	function join_step1(){
		location.href = "../member/join_step1.asp";
	}
	//step 2
	function join_step2(){
		location.href = "../member/join_step2.asp";
	}
	//step 3
	function join_step3(){
		location.href = "../member/join_step3.asp";
	}
	//¼öÁ¤
	function mem_modify(){
		location.href = "../member/mem_modify.asp";
	}
	//¿ìÆí¹øÈ£ °Ë»ö
	function zip_search() {
		window.open('../member/zip_search.asp', '', 'width=400,height=300,top=0,left=0');
	}	
	//¾ÆÀÌµð Áßº¹È®ÀÎ
	function iddupcheck() {
		window.open('../member/iddupcheck.asp', '', 'width=400,height=250,top=0,left=0');
	}
	
	//¾ÆÀÌµð Áßº¹È®ÀÎ
	function iddupchkresult() {
		location.href = "../member/iddupchkresult.asp";
	}
	
	//ÈÞ´ëÆù ÀÎÁõ
	function certify() {
		window.open('../member/certify.asp', '', 'width=400,height=250,top=0,left=0');
	}	
	
	//¾ÆÀÌµð Ã£±â
	function search_id() {
		window.open('../member/search_id.asp', '', 'width=400,height=320,top=0,left=0');
	}	

	//¾ÆÀÌµð Ã£±â °á°ú
	function search_id_result() {
		location.href = "../member/search_id_result.asp";
	}	
	
	//¾ÆÀÌµð Ã£±â °á°ú SMS·Î È®ÀÎÇÏ±â
	function search_id_sms() {
		location.href = "../member/search_id_sms.asp";
	}	
	
	//¾ÆÀÌµð Ã£±â °á°ú SMS·Î È®ÀÎÇÏ±â
	function search_id_sms_result() {
		location.href = "../member/search_id_sms_result.asp";
	}	
	
	//ºñ¹Ð¹øÈ£ Ã£±â
	function search_pw() {
		window.open('../member/search_pw.asp', '', 'width=400,height=320,top=0,left=0');
	}	
	
	//·Î±×ÀÎ
	function login() {
		location.href = "../member/login.asp";
	}	
		
	
	
	
/***** ÇÖ ÆÐÅ°Áö *****/

	function hotpackage(){
		location.href = "../hotpackage/hotpackage.asp";
	}	
	
	
		

/***** °øÁö»çÇ× *****/

	//°øÁö»çÇ× ¸®½ºÆ®
	function notice_list(){
		location.href = "../bbs/notice_list.asp";
	}
	//°øÁö»çÇ× ÀÐ±â
	function notice_view(idx){
		location.href = "../bbs/notice_view.asp?idx="+idx;
	}	



/***** ¿ìÃø¹è³Ê *****/

	//¾Öµå ÀÍ½ºÃ¼ÀÎÁö¶õ?
	function adexchange(){
		location.href = "../guide/adexchange.asp";
	}
	//¹è³Ê°ßÀû ¹®ÀÇ
	function ad_inquiry(){
		location.href = "../ad_inquiry/ad_inquiry.asp";
	}		
	//ÀÚÁÖ ¹¯´Â Áú¹®
	function faq_a(){
		location.href = "../footer/faq_a.asp";
	}
	function faq_b(){
		location.href = "../footer/faq_b.asp";
	}
	function faq_c(){
		location.href = "../footer/faq_c.asp";
	}
	function faq_d(){
		location.href = "../footer/faq_d.asp";
	}
	function faq_h(){
		location.href = "../footer/faq_h.asp";
	}
	function faq_m(){
		location.href = "../footer/faq_m.asp";
	}
	function faq_q(){
		location.href = "../footer/faq_q.asp";
	}
	function faq_s(){
		location.href = "../footer/faq_s.asp";
	}
	function faq_t(){
		location.href = "../footer/faq_t.asp";
	}

/***** Ç²ÅÍ *****/

	//È¸»ç¼Ò°³
	function introduction(){
		location.href = "../footer/company.asp";
	}
	//¾Öµå ÀÍ½ºÃ¼ÀÎÁö ÀÌ¿ë¾à°ü
	function termsofuse(){
		location.href = "../footer/f_termsofuse.asp";
	}
	//°³ÀÎÁ¤º¸ Ãë±Þ¹æÄ§
	function privacy(){
		location.href = "../footer/f_privacy.asp";
	}	
	//Contact us
	function contactus(){
		location.href = "../footer/contactus.asp";
	}
