// Make Popup Windows
function popup( url, w, h, windowName, r, st, s, l, m, t) {
	
//	var zipSplit = url.split("/screensaver/")[1];

//	if(zipSplit == undefined){
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
		window.open(url, windowName, 'height=' +h+ ', width=' +w+ ', resizable=' +r+ ', status= ' +st+ ', scrollbars=' +s+ ', location=' +l+ ', menubar=' +m+  ', toolbar= ' +t+ ', left='+winl+', top='+wint);
//	}else{
//		document.location = url;
// 	}


  // Close Prev Pops
  
  /*
  try {
    win.close();
  } catch(e) {    
  }
  
  // Fudge Height
  // h += 15;
  // Set Too Center
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  // Call popup
  win = window.open(url, windowName, 'height=' +h+ ', width=' +w+ ', resizable=' +r+ ', status= ' +st+ ', scrollbars=' +s+ ', location=' +l+ ', menubar=' +m+  ', toolbar= ' +t+ ', left='+winl+', top='+wint);
  // Focus
  win.focus();  
  */


}
