/*===========================
coder : leeseungik
date : 2004-02-13
description : tooltip
============================*/
var arr_icon;
var arr_help;
arr_icon = new Array();
arr_help = new Array();
arr_help[1] = 'ȸÀÇ';
arr_icon[1] = 'wz_sort/icon/1/1.gif';
arr_help[2] = 'Çà»ç';
arr_icon[2] = 'wz_sort/icon/2/2.gif';
arr_help[3] = '¸ðÀÓ';
arr_icon[3] = 'wz_sort/icon/3/3.gif';
arr_help[4] = '¼ºñ½º';
arr_icon[4] = 'wz_sort/icon/4/4.gif';
arr_help[5] = '°øÈÞÀÏ';
arr_icon[5] = 'wz_sort/icon/5/5.gif';
// text1 ³¯Â¥
// text2 Á¦¸ñ
// text3 ¹®°Ç¼ö
// text4 ¾ÆÀÌÄܳѹö
function showtip(disply,text1,text2,text3,text4,year_text, month_text, day_text, week_text) {
var textstr;
var disply;
tooltip.style.display="";
menu_query = "&thisdate=" + year_text +"-"+ month_text + "&thisweek=" + week_text + "&thisday=" + day_text
menu_url3 = "javascript:location.href='/asp/calendar/index.html?k=4&w=3" + menu_query + "'";
textstr="";
if(text1 || text1!=""){
textstr= textstr + "
" + arr_help[text4] + " " + text1 +" |  |
|
";
}
if(text2 || text2!=""){
textstr= textstr + ""+ text2 + " |
";
}
if(text3 || text3!=""){
textstr= textstr + "ÃÑ " + arr_help[text4] + " " + text3 +" °Ç |
";
}
// textstr= textstr + "  |
";
//textstr="";
textstr="";
tooltip.innerHTML=textstr;
if(disply=='visible'){
tooltip.style.visibility='visible';
}else{
tooltip.style.visibility='hidden';
}
_tmpx = event.clientX + parseInt(document.all["tooltip"].offsetWidth);
_tmpy = event.clientY + parseInt(document.all["tooltip"].offsetHeight);
_marginx = document.body.clientWidth - _tmpx;
_marginy = document.body.clientHeight - _tmpy ;
if(_marginx < 0)
_tmpx = event.clientX + document.body.scrollLeft + _marginx ;
else
_tmpx = event.clientX + document.body.scrollLeft ;
if(_marginy < 0)
_tmpy = event.clientY + document.body.scrollTop + _marginy + 10;
else
_tmpy = event.clientY + document.body.scrollTop ;
// ·¹À̾î À§Ä¡ Á¶Àý ºÎºÐ
tooltip.style.posLeft = _tmpx - 795;
tooltip.style.posTop = _tmpy - 390;
}
function hidetip() {
tooltip.style.visibility='hidden';
}
function menutip(disply ,year_text, month_text, day_text, week_text) {
var textstr;
var disply;
tooltip.style.display="";
if(month_text < 10 ){
month_text = "0" + month_text
}
if(day_text < 10 ){
day_text = "0" + day_text
}
menu_query = "&thisdate=" + year_text +"-"+ month_text + "&thisweek=" + week_text + "&thisday=" + day_text
menu_url1 = "javascript:location.href='/05cal/?w=1" + menu_query + "'";
menu_url2 = "javascript:location.href='/05cal/?w=2" + menu_query + "'";
menu_url3 = "javascript:location.href='/05cal/?w=3" + menu_query + "'";
menu_url4 = "javascript:location.href='/05cal/?w=4" + menu_query + "'";
deco = " style='cursor:hand' onMouseOver=\"this.style.backgroundColor='#83A3C6';this.style.color='#ffffff'\" onMouseOut=\"this.style.backgroundColor='';this.style.color=''\" ";
textstr=" ¸Þ ´º |
";
textstr= textstr + " ¿ù°£º¸±â |
";
textstr= textstr + " ÁÖ°£º¸±â |
";
textstr= textstr + " ÀÏ°£º¸±â |
";
textstr= textstr + " »õ·Î°íħ |
";
textstr="";
//textstr="";
tooltip.innerHTML=textstr;
if(disply=='visible'){
tooltip.style.visibility='visible';
}else{
tooltip.style.visibility='hidden';
}
_tmpx = event.clientX + parseInt(document.all["tooltip"].offsetWidth);
_tmpy = event.clientY + parseInt(document.all["tooltip"].offsetHeight);
coffirm(_tmpx);
_marginx = document.body.clientWidth - _tmpx;
_marginy = document.body.clientHeight - _tmpy ;
if(_marginx < 0)
_tmpx = event.clientX + document.body.scrollLeft + _marginx ;
else
_tmpx = event.clientX + document.body.scrollLeft ;
if(_marginy < 0)
_tmpy = event.clientY + document.body.scrollTop + _marginy +10;
else
_tmpy = event.clientY + document.body.scrollTop ;
tooltip.style.posLeft=_tmpx-15;
tooltip.style.posTop=_tmpy-10;
}
function non_menu(year_text, month_text, day_text, week_text, code){
if(month_text < 10 ){
month_text = "0" + month_text
}
if(day_text < 10 ){
day_text = "0" + day_text
}
menu_query = "&code=" + code + "&thisdate=" + year_text +"-"+ month_text + "&thisweek=" + week_text + "&thisday=" + day_text
location.href="index.html?k=4&w=3" + menu_query + "";
}