// °øÅëºÎºÐ
function window_open(page,name,width,height){
	option='top=0px,left=0px,width='+width+',height='+height+',scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no';
	window.open(page,name,option);
}
function send_mail(mail_adr){
	page='/new_html/eng/common/email.asp?a_email='+mail_adr;
	window_open(page,'email',620,550);
}
function view_sitemap(){
	page='/new_html/eng/common/sitemap.asp';
	window_open(page,'sitemap',620,415);
}
function goto_page(url){
	opener.document.location.href(url);
	window.close();
}
function check_tomail(){
	if(document.contact.a_email.value=='undefined'){
		window.alert('Error : NOT Appoint a person in charge');
		self.close();
	}
}
function check_email(form){
	if(form.m_name.value==''){
		window.window.alert('Please input the NAME');
		form.m_name.focus();
		return false;
	}
	if(form.m_email.value==''){
		window.alert('Please input the EMAIL');
		form.m_email.focus();
		return false;
	}
	else{
		if(isEmail(form.m_email.value)==false){
			window.alert('EMAIL address is wrong');
			form.m_email.focus();
			return false;
		}
	}
	if(form.m_title.value==''){
		window.alert('Please input the SUBJECT');
		form.m_title.focus();
		return false;
	}
	if(form.m_content.value==''){
		window.alert('Please input the MESSAGE');
		form.m_content.focus();
		return false;
	}
	if(!confirm('Do you want to send the MESSAGE?')) return false;
	return true;
}
function isEmail(str){
	var supported=0;
	if(window.RegExp){
		var tempStr='a';
		var tempReg=new RegExp(tempStr);
		if(tempReg.test(tempStr)) supported=1;
	}
	if(!supported) return (str.indexOf('.')>2)&&(str.indexOf('@')>0);
	var r1=new RegExp('(@.*@)|(\\.\\.)|(@\\.)|(^\\.)');
	var r2=new RegExp('^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$');
	return (!r1.test(str) && r2.test(str));
}

// ¸ÞÀÎÈ­¸é
function load_Images(){
	if(document.getElementById) document.getElementById('hidepage').style.visibility='hidden';
	else{
		if(document.layers) document.hidepage.visibility='hidden';
		else document.all.hidepage.style.visibility='hidden';
	}
}

// ±â¾÷¼Ò°³
function view_map(){
	page='/new_html/eng/about/map_zoom.asp';
	window_open(page,'map',800,670);
}

// ±â¼ú°³¹ß
var old_menu='';
function menu_click(new_menu){
	if(old_menu!=new_menu){
		if(old_menu!='') old_menu.style.display='none' ;
		new_menu.style.display='block';
		old_menu=new_menu;
	}
}

// ÅõÀÚÁ¤º¸
function view_chart(){
	page='http://chart.solon.co.kr/SolonVersionControler.aspx?co_id=006060';
	window_open(page,'chart',320,220);
}

// °í°´Áö¿ø
function check_contact(form){
	if(form.m_name.value==''){
		window.alert('Please input the NAME')
		form.m_name.focus();
		return false;
	}
	if(form.m_email.value==''){
		window.alert('Please input the EMAIL')
		form.m_email.focus();
		return false;
	}
	else{
		if(isEmail(form.m_email.value)==false){
			window.alert('EMAIL address is wrong');
			form.m_email.focus();
			return false;
		}
	}
	if(form.m_title.value==''){
		window.alert('Please input the SUBJECT')
		form.m_title.focus();
		return false;
	}
	if(form.m_content.value==''){
		window.alert('Please input the MESSAGE')
		form.m_content.focus();
		return false;
	}
	if(!confirm('Do you want to send the PROPOSAL?')) return false;
	return true;
}

// °Ô½ÃÆÇ
function check_search(form){
	if(form.str2.value==''){
		window.alert('Please input the KEYWORD');
		form.str2.focus();
		return false;
	}
}