function popitup(url) {
	newwindow=window.open(url,'name');
	if (window.focus) {newwindow.focus()}
	return false;
}

// call is: onclick="return popitup('URL', 'name')"


//opens a window based on hard coded dimensions passed from event handler
function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;} 
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.document.bgColor='black';
  win.window.focus();

}

// call is: onclick="return newWindow('url', 'page_name', w, h, 'feature=yes/no', 'feature=yes/no')"
