// JavaScript Document	function officedepotPopup(popupName) {		var swidth = screen.width;	  	var sheight = screen.height;	  	var width; var height;		var URL;	  	switch(popupName) {			case 'contest':		  		width = 611; height = 680;		  		/*URL = './enter.html';*/				URL = './unavailablecontest.html';			break;			case 'staf':			case 'smart':			case 'tv_ad':			case 'adopt':		  		width = 595; height = 300;		  		URL = './sendtoafriend.html?src=' + popupName;			break;			case 'feedback':		  		width = 595; height = 490;		  		URL = './feedback.html';			break;			case 'rules':		  		width = 655; height = 680;		  		URL = './rules.html';			break;			case 'stayinformedsuccess':		  		width = 595; height = 300;		  		URL = './stayinformedsuccess.html';			break;			case 'stayinformedfail':		  		width = 595; height = 300;		  		URL = './stayinformedfail.html';			break;		}		window.open(URL,'_blank','scrollbars=yes,width=' + width + ',height=' + height + ',top=' + calcTop(sheight,height) + ',left=' + calcLeft(swidth,width));	}		/** Helper function to calculate where to position a popup so it is centered vertically   * sheight - height of the screen display   * height - height of the popup window   **/	function calcTop(sheight, height) {	  return sheight/2 - height/2;	}	/** Helper function to calculate where to position a popup so it is centered horizontally	   * swidth - width of the screen display	   * width - width of the popup window	   **/	function calcLeft(swidth, width) {	  return swidth/2 - width/2;	}	