// this defaults the width, height, top, right etc for the window, with option to show the top menu bars 
function popupWin(url,showbars){
	thecode = "thewin = window.open(url, 'popupwindow',";
	thecode += '"width=650,height=620,top=100,left=520,copyhistory,scrollbars,resizable';
	// whether or not to show the menu bars
	if (showbars){
		thecode += ",location,toolbar,menubar";
	}
	thecode += '")';
	eval(thecode);
	if(thewin){
		thewin.focus();
	}
}

// this option to show the top menu bars NO DEFAULTS all features must be passed in sample list of most features: 
// width=250,height=250,top=100,left=50,resizable,scrollbars,status,copyhistory,location,toolbar,menubar
function popupWinAll(url,features,thename){
	thecode = "thewin = window.open(url, thename,";
	thecode += '"' + features + '")';
	eval(thecode);
	if(thewin){
		thewin.focus();
	}
}




