function GoMenu(name) {
	var strUrl = eval(name);
			
	if (strUrl == "") {
		alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
		return;
	} else {
		document.location.href = strUrl;
	}
}
		
function PopUp(url, w, h, s) {
		LeftPosition = (screen.width) ? (screen.width-w)/0 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/0 : 0;	
		var win = window.open(url, "popup", "left="+LeftPosition+",top="+TopPosition+", scrollbars="+s+",height="+h+",width="+w);
		win.focus();
}

function PopUp1(url, w, h, s) {
		LeftPosition = (screen.width) ? (screen.width-w)/0 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/0 : 0;	
		var win = window.open(url, "popup1", "left="+LeftPosition+",top="+TopPosition+", scrollbars="+s+",height="+h+",width="+w);
		win.focus();
}
		
function ObjNullChk(obj, msg){
	if(obj.value.replace(/^\s*/,'').replace(/\s*$/,'')==""){
		alert(msg);
		obj.focus();
		return true;
	}else{
		return false;
	}
}

function ImageFileCheck ( field , info ){ 
	if ( field.value != "" ) {
		var maxi = field.value.length;
		var ext = field.value.substring(maxi-3, maxi);
		ext = ext.toLowerCase();

		if (ext != "gif" && ext != "jpg") {
			alert(info + "Àº(´Â) gif È¤Àº jpg ±×¸²¸¸ »ç¿ëÇØÁÖ¼¼¿ä.");
			return false;
		}
	}
	return true;
}

//===================================
//	µû¿ÈÇ¥¿Í ½Ö µû¿ÈÇ¥
//===================================
function CheckEnglishOnly(field, info){
	var ln = field.value.length;
	var chSpecial = false;

	for (var i=0; i<ln; ++i) {
		var ch = field.value.charAt(i);
		if (ch == '"' || ch == "'" || ch == "%") chSpecial = true;
	}
	
	if(chSpecial) {
		alert(info + "¶õÀº [¿Üµû¿ÈÇ¥,½Öµû¿ÈÇ¥,%]µîÀÇ ±âÈ£´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		field.focus();
		return false;
	}
	else
		return true;
}



function hidestatus(){
	window.status=''
	return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus

function bluring()
{ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
		document.body.focus(); 
}
document.onfocusin=bluring;

//===================================
//	¸Þ´º ½ºÅ©¸³Æ®
//===================================
function MouseEvent(no, val)
{
	eval('layer_menu'+no).style.visibility = val;
}

//===================================
//	¼³¹®Á¶»ç
//===================================
function viewPoll()
{
	var url = "/common/poll_01.asp";
	var pollwin = window.open(url,"poll_form","resizable=no, toolbar=no, status=no, menubar=no, scrollbars=yes, width=10, height=10, top=100, left=100");
	pollwin.focus();
}

//===================================
//	cookie ¼³Á¤
//===================================
function setCookie( name, value, expiredays ) 
{ 
  var todayDate = new Date(); 
  todayDate.setDate( todayDate.getDate() + expiredays ); 
  document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
}

function getCookie( name )
{
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length )
	{
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie )
		{
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
				endOfCookie = document.cookie.length;
				return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
	}
	return "";
}

//===================================
//	Áñ°Ü Ã£±â
//===================================
function bookmark(){
	window.external.AddFavorite('http://www.hanaoj.com', 'ÀÎÃµÃ»³âÀÎÅÏ½Ê')
}

function goboard(obj)
{
	//alert(obj)
	if (obj == "registration") { location.href = "/member/member.asp"; }//È¸¿ø°¡ÀÔ
	else if (obj == "idsearch") { location.href = "/member/idsearch.asp"; }//¾ÆÀÌµðºñ¹øÃ£±â

	else if (obj == "m_p_info") { location.href = "/mypage/personal_info.asp"; }//°³ÀÎÈ¸¿ø ±âº»Á¤º¸
	else if (obj == "m_p_Resume_Mng") { location.href = "/mypage/personal_resume_list.asp"; }//ÀÌ·Â¼­ °ü¸®
	else if (obj == "m_p_Resume_Stat_Upd") { location.href = "/mypage/personal_resume_regist.asp"; }//°³ÀÎÈ¸¿ø ±âº»Á¤º¸
	else if (obj == "m_p_Resume_Stat_Edit") { location.href = "/mypage/personal_resume_status.asp"; }//ÀÌ·Â¼­ ¼³Á¤»óÅÂ
	else if (obj == "m_p_Resume_Print") { location.href = "/mypage/resume_print.asp"; }//ÀÌ·Â¼­ ÀÎ¼â
	else if (obj == "m_p_Int_Stat") { location.href = "/mypage/personal_internship.asp"; }//Ã»³âÀÎÅÏ½ÊÇöÈ²
	else if (obj == "m_p_JM_M_List") { location.href = "/mypage/personal_recruit.asp"; }//½ºÅ©·¦ÇÑ Ã¤¿ë°ø°í
	else if (obj == "m_p_JM_M_Data") { location.href = "/mypage/personal_recruitdata.asp"; }//½ºÅ©·¦ÇÑ Ãë¾÷ÀÚ·á
	else if (obj == "m_p_qna") { location.href = "#"; }//¹®ÀÇÇÏ±â

	else if (obj == "b_p_info") { location.href = "/mypage/company_info.asp"; }//±â¾÷È¸¿ø ±âº»Á¤º¸
	else if (obj == "b_p_Recr_mng") { location.href = "/mypage/company_recruit.asp"; }//Ã¤¿ë°ø°í °ü¸®
	else if (obj == "b_p_Recr_Upd") { location.href = "/mypage/company_recruitregist.asp"; }//Ã¤¿ë°ø°í µî·Ï
	else if (obj == "b_p_Int_Stat") { location.href = "/mypage/company_internship.asp"; }//Ã»³âÀÎÅÏ½Ê ÇöÈ²
	else if (obj == "b_p_JM_M_List") { location.href = "/mypage/company_manlist.asp"; }//ÀÎÀçÁ¤º¸
	else if (obj == "b_p_qna") { location.href = "#"; }//¹®ÀÇÇÏ±â

//Ã¤¿ëÁ¤º¸
	else if (obj == "rc_job") { location.href = "/recruit/job.asp"; }//¾÷Á÷Á¾º° 
	else if (obj == "33") { location.href = "/recruit/job_view.asp"; }//¾÷Á÷Á¾º° »ó¼¼º¸±â
	else if (obj == "32") { location.href = "/recruit/print.asp"; }//ÀÎ¼âÆË¾÷
	else if (obj == "rc_area") { location.href = "/recruit/area.asp"; }//Áö¿ªº° 
	else if (obj == "rc_station") { location.href = "/recruit/station.asp"; }//¿ª¼¼±Çº°
	else if (obj == "rc_business") { location.href = "/recruit/business.asp"; }//±â¾÷ºÐ·ùº° 
	else if (obj == "rc_grade") { location.href = "/recruit/grade.asp"; }//ÇÐ·Âº°
	else if (obj == "rc_major") { location.href = "/recruit/major.asp"; }//Àü°øº° 
	else if (obj == "rc_employ") { location.href = "/recruit/employ.asp"; }//°í¿ëÇüÅÂº° 
	else if (obj == "rc_language") { location.href = "/recruit/language.asp"; }//¿Ü±¹¾îº°
	else if (obj == "rc_pay") { location.href = "/recruit/pay.asp"; }//¿¬ºÀº° 

//ÀÎÀçÁ¤º¸
	else if	(obj == "ml_job")	{ location.href = "/manlist/job.asp"; }
	else if	(obj == "0")	{ location.href = "/manlist/job_view.asp"; }
	else if	(obj == "0")	{ location.href = "/manlist/print.asp"; }
	else if	(obj == "ml_area")	{ location.href = "/manlist/area.asp"; }
	else if	(obj == "ml_grade")	{ location.href = "/manlist/grade.asp"; }
	else if	(obj == "ml_major")	{ location.href = "/manlist/major.asp"; }
	else if	(obj == "ml_career")	{ location.href = "/manlist/career.asp"; }
	else if	(obj == "ml_language")	{ location.href = "/manlist/language.asp"; }


//ÀÎÅÏ Âü¿©¾È³»
	else if (obj == "pt_p_info") { location.href = "/participate/p_info.asp"; }//°³ÀÎÂü¿©¾È³»
	else if (obj == "pt_p_join") { location.href = "/support/internship_join_list.asp"; }//°³ÀÎÂü°¡½ÅÃ»
	else if (obj == "pt_b_info") { location.href = "/participate/b_info.asp"; }//±â¾÷Âü¿©¾È³»
	else if (obj == "pt_b_join") { location.href = "/support/internship_join_list.asp"; }//±â¾÷Âü°¡½ÅÃ»


//Âü°¡½ÅÃ»
	else if	(obj == "sp_i_Info")			{ location.href = "/support/internship_info.asp"; }
	else if	(obj == "sp_i_Info")			{ location.href = "/support/internship_info.asp"; }
	else if	(obj == "sp_i_Course")		{ location.href = "/support/internship_course.asp"; }
	else if	(obj == "sp_i_Active")		{ location.href = "/support/internship_active.asp"; }
	else if	(obj == "sp_i_Partner")		{ location.href = "/support/internship_partner.asp"; }
	else if	(obj == "sp_i_Schedule")  { location.href = "/support/internship_schedule.asp"; }
	else if	(obj == "53")						{ location.href = "/support/internship_schedule_view.asp"; }
	else if	(obj == "sp_i_Now")			{ location.href = "/support/internship_now.asp"; }
	else if	(obj == "sp_i_Join_l")			{ location.href = "/support/internship_join_list.asp"; }
	else if	(obj == "sp_i_Join_b_rg")	{ location.href = "/support/internship_join_b_reg.asp"; }
	else if	(obj == "56")						{ location.href = "/support/b_end.asp"; }
	else if	(obj == "sp_i_Join_p_rg")	{ location.href = "/support/internship_join_p_reg.asp"; }
	else if	(obj == "57")						{ location.href = "/support/p_end.asp"; }
	else if	(obj == "sp_i_Success")	{ location.href = "/support/internship_success.asp"; }
	else if	(obj == "59")						{ location.href = "/support/internship_success_view.asp"; }
	else if	(obj == "sp_j_Info")			{ location.href = "/support/jobfestival_info.asp"; }
//	else if	(obj == "sp_j_Festival")		{ location.href = "/support/jobfestival_info.htm"; }
	else if	(obj == "sp_j_Festival")		{ location.href = "/support/jobfestival_info.asp"; }
	else if	(obj == "sp_j_Women")		{ location.href = "/support/jobfestival_women.asp"; }
	else if	(obj == "sp_j_Silver")			{ location.href = "/support/jobfestival_silver.asp"; }
	else if	(obj == "sp_j_Handicap")	{ location.href = "/support/jobfestival_handicap.asp"; }


	else if	(obj == "eb_Ow_biz")	{ location.href = "/community/list.asp?b_idx=27"; }
	else if	(obj == "eb_No_biz")	{ location.href = "/community/list.asp?b_idx=28"; }
	else if	(obj == "63")	{ location.href = "/edubiz/view.asp"; }


	else if	(obj == "rd_ns_news")	{ location.href = "/community/list.asp?b_idx=6"; }
	else if	(obj == "65Ãë¾÷ÀÚ·á½Ç")	{ location.href = "/rec_data/news_view.asp"; }
	else if	(obj == "rd_ns_column")	{ location.href = "/community/list.asp?b_idx=7"; }
	else if	(obj == "")	{ location.href = "/rec_data/column_view.asp"; }

	else if	(obj == "p66")	{ location.href = "/rec_data/iam.asp"; }
	else if	(obj == "")	{ location.href = "/rec_data/iam2.asp"; }
	else if	(obj == "rd_im_sample")	{ location.href = "/community/list.asp?b_idx=8"; }
	else if	(obj == "p68")	{ location.href = "/rec_data/sample_view.asp"; }
	else if	(obj == "rd_im_pass")	{ location.href = "/community/list.asp?b_idx=9"; }
	else if	(obj == "p70")	{ location.href = "/rec_data/pass_view.asp"; }
	else if	(obj == "rd_im_value")	{ location.href = "/community/list.asp?b_idx=10"; }
	else if	(obj == "")	{ location.href = "/rec_data/value_view.asp"; }

	else if	(obj == "p72")	{ location.href = "/rec_data/interview_view.asp"; }
	else if	(obj == "rd_iv_what")	{ location.href = "/community/list.asp?b_idx=12"; }
	else if	(obj == "")	{ location.href = "/rec_data/what_view.asp"; }
	else if	(obj == "rd_iv_best")	{ location.href = "/rec_data/best1.asp"; }
	else if	(obj == "")	{ location.href = "/rec_data/best2.asp"; }
	else if	(obj == "")	{ location.href = "/rec_data/best3.asp"; }
	else if	(obj == "")	{ location.href = "/rec_data/best4.asp"; }


	else if	(obj == "p74")	{ location.href = "/rec_data/waytogo.asp"; }
	else if	(obj == "p75")	{ location.href = "/rec_data/waytogo_view.asp"; }
	else if	(obj == "rd_wg_competition")	{ location.href = "/community/list.asp?b_idx=14"; }
	else if	(obj == "p77")	{ location.href = "/rec_data/competition_view.asp"; }
	else if	(obj == "rd_wg_culture")	{ location.href = "/community/list.asp?b_idx=15"; }
	else if	(obj == "p79")	{ location.href = "/rec_data/culture_view.asp	"; }


	else if	(obj == "rd_im_iam")	{ location.href = "/community/list.asp?b_idx=8"; }
	else if	(obj == "rd_iv_info")	{ location.href = "/community/list.asp?b_idx=11"; }
	else if	(obj == "rd_wg_spec")	{ location.href = "/community/list.asp?b_idx=13"; }

// Ä¿¹Â´ÏÆ¼
	else if	(obj == "ct_notice")	{ location.href = "/community/list.asp?b_idx=16"; }
	else if	(obj == "ct_event")	{ location.href = "/community/list.asp?b_idx=17"; }
	else if	(obj == "ct_media")	{ location.href = "/community/list.asp?b_idx=21"; }
	else if	(obj == "ct_nletter")	{ location.href = "/community/list.asp?b_idx=18"; }
	else if	(obj == "ct_faq")	{ location.href = "/customer/faq.asp"; }
	else if	(obj == "ct_qna")	{ location.href = "/community/list.asp?b_idx=19"; }
	else if	(obj == "ct_poll")	{ location.href = "/customer/poll.asp"; }
	else if	(obj == "ct_tip")	{ location.href = "/community/list.asp?b_idx=20"; }

	else if	(obj == "c_paper_Data_b")	{ location.href = "/community/list.asp?b_idx=25"; }
	else if	(obj == "c_paper_Data_p")	{ location.href = "/community/list.asp?b_idx=29"; }
	else if	(obj == "c_Atd_Album")	{ location.href = "/community/list.asp?b_idx=24"; }

	else if	(obj == "c_notice")	{ location.href = "/community/list.asp?b_idx=4"; }


	//else { alert(obj); }
}
