function popup(url,wd,ht,opt) {
	window.open(url,'win','width='+wd+',height='+ht+',scrollbars='+opt);
}

function showCalendar(objStr) {
	popup('/common/cal.jsp?objStr='+ objStr,231,145,'n');
}

function mainPopup(lang,no) {
	var pop_url = "";
	if (lang=="K") {
		pop_url = "/kor/popup.jsp?popNo="+ no;
	} else {
		pop_url = "/eng/popup.jsp?popNo="+ no;
	}
	popup(pop_url,468,460,'1')
}

function pop1(url,name,width,height){ 
	window.open(url,name,'width='+width+',height='+height+',scrollbars=no')
}

// calendar_small
function calv(cal) {
	document.getElementById(cal).style.display ='';
}
function calh(cal) {
	document.getElementById(cal).style.display ='none';
}

function goCustoms() {
	window.open('http://www.customs.go.kr/kcshome/jsp/johoe/PCGA010.jsp','win','width=700,height=400,scrollbars=yes');
}

//e-service help
function help(url) {
	window.open(url,'win','width=766,height=557,scrollbars=no');
}

// calendar
var wx;
var wy;
function getIt() {
	wx = window.event.clientX;
	wy = window.event.clientY;
}

function init() {
	document.onmousemove = getIt;
}

function msg_show(msg) {
	idw = showmsg.style.pixelWidth;
	clw = document.body.clientWidth;
	idw = clw - idw - 10;
	showmsg.style.pixelLeft = document.body.scrollLeft + wx - 5 + '';
	showmsg.style.pixelTop = document.body.scrollTop + wy - 55 + '';

	if (showmsg.style.pixelLeft > idw)
		showmsg.style.pixelLeft = idw;
		sp_msg.innerHTML = msg;
		showmsg.style.visibility = "visible";
}

function msg_hide() {
	showmsg.style.visibility = "hidden";
}

window.onload = init;

// faq
function view(what){
  
	if (document.getElementById(what).style.display=='none'){
		document.getElementById(what).style.display='';
	}
	else{
		document.getElementById(what).style.display='none';
	}
}

// company & business
function viewdiv(index,num) {

	for (i=1; i<=num; i++) {
	if (index == i) {
		thisMenu = document.getElementById("div_"+index).style;
		thisMenu.display = "";
	}
	else {
		otherMenu = document.getElementById("div_"+i).style;
		otherMenu.display = "none";
	}
	}
}


function objectTagWrite(strObjectTag){
    document.write(strObjectTag);
    strObjectTag = "";
}
