
// ÆäÀÌÁö focus blur
function bluring(){
	if (event.srcElement!=null) {
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}
}

//ÆË¾÷ È­¸é Áß¾Ó¿¡ ¶ç¿ì±â
function Win_pop(newwin,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
if(w=='100%') w=window.availWidth;
winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=no,scrollbars=no,toolbars=no,status=no,menu=no';
win = window.open(newwin, null, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function wording(num){
	var obj=document.getElementById('table01');
	var trs=obj.getElementsByTagName('tr');
	for(var i=0; i<trs.length; i++){
		if(trs[i].className=="wordingOnOff"){
			trs[i].style.display='none';
		}
	}
	var onofftr=eval(document.getElementById("wording"+num));
	if(onofftr.style.display==''){
		onofftr.style.display='none';
	}else if(onofftr.style.display=='none'){
		onofftr.style.display='';
	}
}

function searchPost(){ 	
	var pwin = window.open('/common/ZipCode.jsp', 'pwin','width=400, height=300')
	pwin.focus();	
}

function setPost(p1,p2){ 	
		document.wfrm.zipcode.value = p1;
        document.wfrm.addr1.value=p2;
		document.wfrm.addr2.focus();
}

function popupImg(filename ,size ,height){

	if(size > 800 ){ size = 800 ;}
	if(height > 700 ){ size = 700 ;}
	
	var win =window.open("","","width="+size+" height="+height);	
	win.document.write("<body scroll=auto topmargin=0 leftmargin=0><img src='"+filename+"' style='cursor:hand' onclick='self.close();'></body>");
	win.focus();
}