
//ポップアップ表示
function pop(){
    box.style.visibility = "hidden";
    width = 0;
    height = 0; 
    message = msg;
    //ウィンドウ位置設定
    x = event.clientX+document.body.scrollLeft+10; //左からの位置
    y = event.clientY+document.body.scrollTop+10; //上からの位置
    //ウィンドウセット
    box.style.left = x;
    box.style.top = y;
    box.innerHTML = msg;
    box.style.visibility = "visible";
    zoom();
}
//ポップアップズーム
function zoom(){
    //拡大
    width += 20;
    height += 10;
    box.style.width = width;
    box.style.height = height;
    if(width>=200 && height>=100){
    }
    else{
        zoom_timer = setTimeout("zoom()",1);
    }
}
//ポップアップを消す
function nonPop(){
    box.style.visibility = "hidden";
}

function com_win(url,windowname,width,height,top_p,left_p) {
 var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
 if (width) {
  if (window.screen.width > width)
   features+=", left="+left_p;
  else width=window.screen.width;
  features+=", width="+width;
 }
 if (height) {
  if (window.screen.height > height)
   features+=", top="+top_p;
  else height=window.screen.height;
  features+=", height="+height;
 }
 window.open(url,windowname,features);
}
