// common js functions

function winMove(X,Y)
	{
	self.moveTo( (screen.width-X+10) / 2,(screen.height-Y-36) / 2);
	}

function popupJob(id)
	{
	job = window.open('popup_job.php?job='+id,'popup','resizable=1,toolbar=no,location=no,scrollbars=1,status=no,menubar=no,width=400,height=400');
	if (window.focus)
		job.focus();
	}

function showImg(pic)
	{
	asd = window.open("showimg.php?pic="+pic,"img","toolbar=no,location=no,status=no,menubar=no,width=400,height=400");
	if (window.focus)
		asd.focus();
	}

function popSize()
	{
	resizeTo(document.images[0].width+10, document.images[0].height+36);
	}

function popMove()
	{
	moveTo( (screen.width-document.images[0].width+10) / 2,(screen.height-document.images[0].height-59) / 2);
	}

function popup(id)
	{
	window.open('popup.php?col='+id,'popup','resizable=1,toolbar=no,location=no,scrollbars=1,status=no,menubar=no,width=400,height=400');
	}