// JavaScript Document
var mX =0;
var mY = 0;
function showPic(ID, url) {
	document.getElementById('preview_img').src=url;
	
	document.getElementById('preview').style.top = (mY-200)+'px';
	document.getElementById('preview').style.left = (mX-200)+'px';
	document.getElementById('preview').style.display = 'block';
	document.getElementById('report').href = 'javascript:reportImage('+ID+');';

}

function reportImage(id) {
	document.getElementById('s').value='report';
	document.getElementById('iID').value=id;
	document.gallery_form.submit();
}

function updateMausPosition(e) {

	mX = (document.all) ? window.event.x + document.documentElement.scrollLeft : e.pageX;
	mY = (document.all) ? window.event.y + document.documentElement.scrollTop  : e.pageY;

  }
  
function mypopup(url, width, height, name)
{
	
	if(name==undefined) name='neu';
    window.open(url, name, "width="+width+",height="+height+",scrollbars=yes,resizable=no,toolbar=no,status=no menubar=no,location=no,directories=no,top=0,left=0");
}
  
 document.onmousemove = updateMausPosition;