function memberLogin(path) {
	openNewWindow(path+'/MemberLogin.do?redirect='+ window.top.location.href,'reg','resizable=1,scrollbars=1');
}

function submitSearch() {
	var keywordCtr=document.getElementById("keyword");
	document.forms[0].action="<%=langRootPath%>/searchAction.do?keyword="+keywordCtr.value;
	document.forms[0].submit();
}

function tab() {
	/*var type=document.activeElement.type;
	if (type == "select-one") {
		if ((event.keyCode != 38) && (event.keyCode != 40)) {		
			window.event.keyCode=9;
		}
	}else{
		if (event.keyCode==13)
		window.event.keyCode=9;
	}*/
}

function htmlEncode(strS){
	return(strS.replace(/&/g,"&").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ /g," ").replace(/\r\n/g,"<br\/>"));
}

function disableImageRightClick() {
	document.oncontextmenu = function(evt){
		evt = evt ? evt:(window.event?window.event:null);
		var obj = evt.srcElement ? evt.srcElement : evt.target;
		if (obj.tagName=="IMG") {
			return false;
		}
	}
}

function openImage(imgSrc){
	dcsMultiTrack("DCS.dcsuri","'+pictureFullPath+imgSrc+'.jpg");
	var newWin = window.open("","ZoomIn","resizable=yes,scrollbars=yes,height=640,width=840"); 
	newWin.document.open();
	newWin.document.write('<html><head></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	newWin.document.write('<script type='+'"text/javascript">');
	newWin.document.write('document.oncontextmenu = function(evt){');
	newWin.document.write('  return false;');
	newWin.document.write('}');
	newWin.document.write('</scr'+'ipt>'); 
	newWin.document.write('<img src="'+pictureFullPath+imgSrc+'.jpg">');
	newWin.document.write('</body></html>');
	newWin.document.close();
	newWin.focus();
}
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,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];}}
}
//-->