﻿// sizes and sets a standard popup window
function popupWindow(filename, type) {
		
	var w;
	var h;
	
	switch(type)
	{
		case "raterecipe":
			w = "500";
            h = "295";
			break;
		
		case "emailrecipe":
			w = "490";
			h = "490";
			break;
	    
	    case "prodlocator":
			w = "575";
			h = "480";
			break;
		
		case "shopinfo":
			w = "538";
			h = "400";
			break;
		
		case "printrecipe46":
			w = "475";
			break;
		
		case "printrecipe57":
			w = "475";
			h = "475";
			break;
			
		case "printrecipe810":
			w = "475";
			h = "700";
			break;
	}
	
	popup_window = window.open( filename, "popup_window", "left=20,top=20,width=" + w + ",height=" + h + ",resizable=yes,scrollbars=1,toolbar=0,status=0,location=0,directories=0,menubar=0");
	popup_window.focus();
}

function getSelectedButton(buttonGroup){
	for (var i = 0; i < buttonGroup.length; i++) {
		if (buttonGroup[i].checked) {
			return i
		}
	}
	return 0
}

function hideselect(element) { }
function showselect (element) { }
