function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

//comment
function commentOn (value, This) {
	if (value=="1") {
		This.style.background="url('./images/img_cm01_on.gif') no-repeat 11px 6px";
		This.style.backgroundColor="#fef0e5";
	}
	else if (value=="2") {
		This.style.background="url('./images/img_cm02_on.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#fef0e5";
	}
	else if (value=="3") {
		This.style.background="url('./images/img_cm03_on.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#fef0e5";
	}
	else if (value=="4") {
		This.style.background="url('./images/img_cm04_on.gif') no-repeat 10px 11px";
		This.style.backgroundColor="#fef0e5";
		This.style.width="94%";
	}
}

function commentOut (value, This) {
	if (value=="1") {
		This.style.background="url('./images/img_cm01.gif') no-repeat 11px 6px";
		This.style.backgroundColor="#ffffff";
	}
	else if (value=="2") {
		This.style.background="url('./images/img_cm02.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#ffffff";
	}
	else if (value=="3") {
		This.style.background="url('./images/img_cm03.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#ffffff";
	}
	else if (value=="4") {
		This.style.background="url('./images/img_cm04.gif') no-repeat 10px 11px";
		This.style.backgroundColor="#ffffff";
	}
}

function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.src+"',sizeMethod='image');"
	objsrc='';
	return '';
}

function chk_contact() {
	var form=document.form;
	if (form.contact1.value=="") {
		alert("please type a valid Name.");
		form.contact1.focus();
		return false;
	}
	else if (form.contact2.value=="") {
		alert("please type a valid E-mail.");
		form.contact2.focus();
		return false;
	}
	else if (form.contact3.value=="") {
		alert("please type a valid Phone Number.");
		form.contact3.focus();
		return false;
	}
	else { return true; }
}

function gnbOn(value) {
	document.getElementById("subgnb"+value).style.display="";
	document.getElementById("tabgnb"+value).className="on";
}

function gnbOut(value, chkpage) {
	document.getElementById("subgnb"+value).style.display="none";
	if (chkpage=="1") {
		document.getElementById("tabgnb"+value).className="on";
	}
	else {
		document.getElementById("tabgnb"+value).className="none";
	}
}
