var pop
function popup(url,p)//opens a winow in pop up with param: p
{
	if(pop!=null)pop.close()
	pop=window.open(url,"pop",p)
	pop.focus()
}