/******** START DHTML windows code *************************
DESCRIPTION: It makes DHTML "DiscontinuingWST" window. (any platform)
    		Resubmits the page when changing shipping methods
TECH NOTES:
-----------------------------------------------------------------------------
-uses code from DHTMLWindowLib.js
-called from onload(DiscontinuingWST.OpenWindow()) on subscriptions.aspx?prodid=WST&pcat=302
-creates a DHTML Window
-----------------------------------------------------------------------------
PARAMETERS:

RETURNS:
   
*************************************************/
var paramsDiscontinuingWST =  	
{	
   BorderWidth : 0, 
   CloseBoxHeight : 11, 
   CloseBoxSrc : '/gfx/closebox_small.gif', 
   CloseBoxWidth : 11, 
   ContentColor : '#F9EC99', 
   ContentHTML : '<b><i>Walking With the Saints</i><br><br> <u>Subscription Discontinued</u></b><br><br>This monthly 12-issue publication will run from March 2007 through February 2008. It is no longer available as a subscription. If you would like to order individual back issues choose from the <a href=\"http:\/\/catalog.americancatholic.org\/category_all.aspx?pcat=302\">complete list</a>.</b> <br><br> Back issues will continue to be available after February 2008.', 
   ContentPadding : 13, 
   Height : 250, 
   InnerBorderColor : '#6b8ec6', 
   OuterBorderWidth : 0, 
   Resizable : 'None', 
   ResizeBoxHeight : 0, 
   ResizeBoxSrc : '', 
   StatusBarHeight : 15, 
   StatusBarHTML : '&nbsp<a href=\"/help.aspx\" target=\"_blank\"><img src=\"/gfx/question_icon.gif\" width=\"15\" height=\"15\" border=\"0\"></a> ', 
   StatusBarText : 'HELP', 
   StatusBarAlign : 'left', 
   StatusColor : '#CBD2E6', 
   TitleBarHeight : 15, 
   TitleBarText : 'Subscription Discontinued', 
   TitleBarAlign : 'left', 
   TitleColor : '#383897', 
   Width : 270, 
   TitleFontWeight : 'normal', 
   ContentFontSize : 11, 
   ContentFontColor : '#000000', 
   Id  : 'DiscontinuingWST'
} 
var DiscontinuingWST = new FerantDHTMLWindow(paramsDiscontinuingWST); 

/******** END DHTML windows code *************************/


/******** START checkShippingMethod FUNCTION *************************
DESCRIPTION: Pops up DHTML window in SelectingAShippingMethod.js if Shipping Method is:
				UPS 2 Day Air
				UPS Next Day Air
				UPS Next Day Air Saver
TECH NOTES:
-----------------------------------------------------------------------------
-uses code from DHTMLWindowLib.js
-uses code from DHTML Window above
-creates a DHTML Window
-----------------------------------------------------------------------------
PARAMETERS:

RETURNS:
   
*************************************************/
		function checkShippingMethod(objForm){ 
			// Loop from zero to the one minus the number of radio button selections
			for (counter = 0; counter < document.ship_via.rChooseShippingMethod.length; counter++)
				{
				 if (document.ship_via.rChooseShippingMethod[counter].checked==true)
				 var ichecked = counter; 
				}

			if (document.ship_via.rChooseShippingMethod[ichecked].value == '2DA') // UPS 2 Day Air
			{
			ShippingMethod.OpenWindow();
			}
			else if (document.ship_via.rChooseShippingMethod[ichecked].value == 'NDA') // UPS Next Day Air
	        {
			ShippingMethod.OpenWindow();
			}
			else if (document.ship_via.rChooseShippingMethod[ichecked].value == 'NDS') // UPS Next Day Air Saver
	        {
			ShippingMethod.OpenWindow();
			}
			else
	        {
			//no popup			
			} 
         }

/******** END checkShippingMethod FUNCTION *************************/




