/******** START DHTML windows code *************************
DESCRIPTION: It makes DHTML "DiscontinuingSFS" window. (any platform)
    		Resubmits the page when changing shipping methods
TECH NOTES:
-----------------------------------------------------------------------------
-uses code from DHTMLWindowLib.js
-called from onload(DiscontinuingSFS.OpenWindow()) on subscriptions.aspx?pcat=168&prodid=SFS
-creates a DHTML Window
-----------------------------------------------------------------------------
PARAMETERS:

RETURNS:
   
*************************************************/
var paramsDiscontinuingSFS =  	
{	
   BorderWidth : 0, 
   CloseBoxHeight : 11, 
   CloseBoxSrc : '/gfx/closebox_small.gif', 
   CloseBoxWidth : 11, 
   ContentColor : '#F9EC99', 
   ContentHTML : '<b><i>Scripture from Scratch</i> subscription to be discontinued after 2005.</b><br><br>St. Anthony Messenger Press is discontinuing subscriptions to <i>Scripture from Scratch</i> with the December 2005 issue. When you order a <i>Scripture from Scratch</i> subscription the price will be prorated for the number of issues remaining for 2005. <br><br> Back issues will continue to be available. A final <i>Scripture From Scratch</i> Sourcebook will be available in January 2006.', 
   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 prorated', 
   TitleBarAlign : 'left', 
   TitleColor : '#383897', 
   Width : 270, 
   TitleFontWeight : 'normal', 
   ContentFontSize : 11, 
   ContentFontColor : '#000000', 
   Id  : 'DiscontinuingSFS'
} 
var DiscontinuingSFS = new FerantDHTMLWindow(paramsDiscontinuingSFS); 

/******** 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 *************************/




