//-======================ÆË¾÷À©µµ¿ì °ü·Ã

function openwins(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);


}

function openwind(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);


}


function openwin_noframe(url,width,height,hori,vert)
{
	var url;
	var width;
	var height;
	var hori;
	var vert;

	id=window.open(url,"","fullscreen=1,toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0' ");
	id.resizeTo(width,height);
	id.moveTo(hori,vert);
}
//=======================================================





//-------------À©µµ¿ìÀÇ ¿òÁ÷ÀÓÀ» Á¦¾îÇÏ´Â ½ºÅ°¸³Æ® 
var x = 0
var y = 0
drag  = 0
move  = 0
var d_x = 0
var d_y = 0 
window.document.onmousemove = mouseMove
window.document.onmousedown = mouseDown
window.document.onmouseup   = mouseUp
window.document.ondragstart = mouseStop
function mouseUp(){
         move = 0      
}

function mouseDown(){
	 if(drag){
            click_x = window.event.x - parseInt(dragObj.style.right)
	    click_y  = window.event.y - parseInt(dragObj.style.bottom)
            move      = 1
	}
}

function mouseMove(){
	 if(move){
            d_x       = window.event.x - click_x
            d_y       = window.event.y - click_y
            self.moveBy(d_x,d_y) 
	}
}

function mouseStop(){
	 window.event.returnValue = false
}
//--------------------------------------------------------