// OPEN SIZED WINDOW FOR SCREENSHOTS
function openWindow(url,name,width,height) {
		props = 'height='+height+',width='+width+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1';
		popupWin = window.open(url, name, props);   
}

openWin = function(url,name,width,height,xpos,ypos,chrome,scroll) {
	var x, y, w, h, moveX=0, moveY=0, features="";
	chrome = chrome ? "yes" : "no";
	scroll = scroll ? "yes" : "no";
	features += "toolbar="+chrome+",location="+chrome+",status="+chrome+",menubar="+chrome;
	features += ",scrollbars="+scroll+",resizable="+scroll;
	if(width) features += ",width="+width;
	if(height) features += ",height="+height;
	if(xpos && window.screen){
		w = window.screen.availWidth;
		width = parseInt(width);
		switch(xpos){
			case "left": x = 0; break;
			case "center": x = (w-width)/2; break;
			case "right": x = w-width; break;
			default: x = xpos;
			}
		features += ",screenX="+x+",left="+x;
		var moveX = x;
		}
	if(ypos && window.screen){
		h = window.screen.availHeight;
		height = parseInt(height);
		switch(ypos){
			case "top": y = 0; break;
			case "middle": y = (h-height)/2; break;
			case "bottom": y = h-height; break;
			default: y = ypos;
			}
		features += ",screenY="+y+",top="+y;
		var moveY = y;
		}
	openWinReference = window.open(url,name,features);
	if(moveX || moveY){
		// position the window for browsers that don't recognize screenX, screenY
		openWinReference.moveTo(moveX,moveY);
		}
	}

// -->
