function confirm_url(msg, url){
	if (confirm(msg)) {
		location=url;
	}
}

function goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}




//-----
// ºÎºÐÀÎ¼â ±â´É

function printDiv (id) {
	if (document.all && window.print) {
		div2print = document.all[id];
		window.onbeforeprint = beforeDivs;
		window.onafterprint = afterDivs;
		window.print();
	}
}


function beforeDivs () {
	if (document.all) {
		objContents.style.display = 'none';
		objPrint.innerHTML = div2print.innerHTML;
	}
}


function afterDivs () {
	if (document.all) {
		objContents.style.display = 'block';
		objPrint.innerHTML = "";
	}
}


//-----
// ÀÚµ¿ ÅÇ
function autoTab(Obj, strLength, toTab) {
	if (Obj.value.length == strLength) {
		toTab.focus();
	}
}


//-----
// ÅøÆÁ
function showTooltip(user,ValueShow) {
	var mousex = window.event.x;        // ¸¶¿ì½º ÁÂÇ¥ÀÇ x À§Ä¡
	user.style.visibility = ValueShow;  // º¸ÀÏÁö ¾Èº¸ÀÏÁö ¿©ºÎ
	user.style.left = mousex + 10;       // ³ªÅ¸³¯ À§Ä¡ (left)
}