function regAction(obj, reg_id, contactId, productKey, subproduct_id)
{
	var actionId = obj.options[obj.selectedIndex].value;
	obj.selectedIndex = 0;
	switch (actionId) {
		case "1":  // View Key
			var viewKeyWindow = dhtmlwindow.open("viewKeyWindow" + reg_id, "iframe", "popups/productKeyInfo.aspx?id=" + reg_id, "Product Key Info", "width=360px,height=260px,resize=0,scrolling=0,center=1");
			break;
		case "2":  // View EULA
			var viewEulaWindow = dhtmlwindow.open("viewEulaWindow" + reg_id, "iframe", "popups/viewEULA.aspx?id=" + reg_id, "End User License Agreement", "width=480px,height=360px,resize=1,scrolling=1,center=1");
			break;
		case "3":  // Add Support
			var viewSupportWindow = dhtmlwindow.open("viewSupportWindow" + reg_id, "iframe", "popups/support.aspx?id=" + reg_id, "Support Agreements", "width=320px,height=360px,resize=0,scrolling=0,center=1");
			break;
		case "4":  // Express Upgrade
			
			break;
		case "5":  // Merge Keys
			
			break;
		case "6":  // Enable SS Add-on
		    window.location.href = "/upgradedownload.aspx";
		//	var viewAddonWindow = dhtmlwindow.open("viewAddonWindow" + reg_id, "iframe", "popups/addOn.aspx?id=" + reg_id, "Add-on Products", "width=320px,height=360px,resize=0,scrolling=0,center=1");
			break;
		case "7":  // Un-retire Registration
			if (window.location.href.indexOf("retired") > -1) {
				if (!confirm("Un-retiring this product will place it back in your list of registrations.\nAre you sure you wish to un-retire this registration?"))
					return;
			} else {
				if (!confirm("Retiring this product will completely remove it from your registrations.\nAre you sure you wish to retire this registration?"))
					return;
			}
			var url = "default.aspx?action=retire&rid=" + reg_id;
			if (contactId)
				url += "&id=" + contactId;
			window.location.href = url;
			break;
		case "8":  // Decrement ePW Seat Count
			var decrementWindow = dhtmlwindow.open("decrementWindow" + reg_id, "iframe", "popups/decrement.aspx?id=" + reg_id, "Decrement Seat Count", "width=320px,height=280px,resize=0,scrolling=0,center=1");
			break;
		case "9":  // Firmware Updates (ScanFront)
			var firmwareWindow = dhtmlwindow.open("firmwareWindow" + reg_id, "iframe", "popups/scanfrontFirmware.aspx?id=" + reg_id, "Firmware Updates", "width=360px,height=260px,resize=0,scrolling=1,center=1");
			break;
		case "10":  // Request license
		    var requesturl = "popups/requestLicense.aspx?productkey=" + productKey + "&subproduct_id=" + subproduct_id;
			var requestLicenseWindow = dhtmlwindow.open("requestLicense" + reg_id, "iframe", requesturl, "Request License", "width=320px,height=360px,resize=0,scrolling=0,center=1");
			break;						
		case "12": // Download ePW Add-on
		    window.location.href = "/upgradedownload.aspx";
			//var viewAddonWindow = dhtmlwindow.open("viewPWAddonWindow" + reg_id, "iframe", "popups/ePWaddOn.aspx?id=" + reg_id, "Add-on Products", "width=320px,height=360px,resize=0,scrolling=0,center=1");
			break;
		case "17":  // Retire Registration
			if (!confirm("Retiring this product will completely remove it from your registrations.\nAre you sure you wish to retire this registration?"))
				return;
			var url = "default.aspx?action=retire&rid=" + reg_id;
			if (contactId)
				url += "&id=" + contactId;
			window.location.href = url;
			break;			
	}
}


