//open window once
var newWindow=true
function w(winName,W,H,L,T,features){
if(screen){
	leftPos=0
	topPos=0	
}
	if(newWindow.open){newWindow.close()}
	newWindow=window.open(winName,'name','width='+W+',height='+H+',left='+L+',top='+T+'+'+features+'')
	newWindow.focus()
}

var newWindow=true
function miniWin(winName,W,H,L,T,features){
if(screen){
	leftPos=0
	topPos=0	
}
	if(newWindow.open){newWindow.close()}
	newWindow=window.open(winName,'name','width='+W+',height='+H+',left='+L+',top='+T+'+'+features+'')
	newWindow.focus()
}
