function windowopener(theURL,winName,features) {
  Win=window.open(theURL,winName,features);
  Win.focus();
}

// with fixed position
function windowopener(theURL,winName,features, pop_x, pop_y) {
	features = features+',top='+pop_y+',screenY='+pop_y+',left='+pop_x+',screenX='+pop_x;
	win=window.open(theURL,winName,features);
	win.focus();
}
