<script LANGUAGE="javascript">
tl = null;
is_clicked = false;
function mymove(){
tl.style.pixelLeft=event.x+document.body.scrollLeft-10;
tl.style.pixelTop=event.y+document.body.scrollTop-10;
document.onmousedown=end
}
function start(lay){
if(is_clicked == false)
{
tl = document.getElementById(lay);
is_clicked = true;
document.onmousemove=mymove
}else{
is_clicked = false;
document.onmousedown=end
}
}
function end(){
//tl = null;
document.onmousemove=end
}
function lay_zindex(this_l)
{
zindex2 = this_l.style.zIndex;
lay_zindex_un_all();
this_l.style.zIndex = zindex2 + 20000 ;
}
function lay_display(this_l)
{
document.getElementById(this_l).style.display = 'none';
}
function lay_zindex_un_all()
{
limit = <?=$cut_page?> ;
for(i = 1; i <= limit ; i ++)
{
str = 'lay_'+i;
lay_zindex_un(str);
}
for(i = 1; i <= 20 ; i ++)
{
str = 'lay_notice_'+i;
lay_zindex_un(str);
}
}
function lay_zindex_un(this_l2)
{
if(document.getElementById(this_l2) != null)
{
this_l3 = document.getElementById(this_l2);
zindex = this_l3.style.zIndex;
if(zindex > 20000 )
{
this_l3.style.zIndex = zindex % 20000 ;
}
}
}
/*
function lay_center(this_l)
{
tx = document.getElementById(this_l)
var left_x = (screen.width - tx.style.width)/2;
var top_y = (screen.height - tx.style.height)/3;
tx.style.pixelLeft=left_x;
tx.style.pixelTop=top_y;
}
*/
</script>