/******** START DHTML windows code *************************
DESCRIPTION: It makes DHTML "DiscontinuingJHP" window. (any platform)
    		Resubmits the page when changing shipping methods
TECH NOTES:
-----------------------------------------------------------------------------
-uses code from DHTMLWindowLib.js
-called from onload(DiscontinuingJHP.OpenWindow()) on subscriptions.aspx?prodid=JHP&pcat=289
-creates a DHTML Window
-----------------------------------------------------------------------------
PARAMETERS:

RETURNS:
   
*************************************************/
var paramsDiscontinuingJHP =  	
{	
   BorderWidth : 0, 
   CloseBoxHeight : 11, 
   CloseBoxSrc : '/gfx/closebox_small.gif', 
   CloseBoxWidth : 11, 
   ContentColor : '#F9EC99', 
   ContentHTML : '<b><i>Jesus: A Historical Portrait</i> subscription to be discontinued.</b><br><br>This monthly 12-issue publication will run from March 2006 through February 2007. Back (past) issues will be mailed all at once when subscribing to this newsletter. If only two or three issues remain and you are placing a bulk order (20 or more) it would be cheaper to order the back issues instead of this subscription.</b> <br><br> Back issues will continue to be available after February 2007.', 
   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  to be discontinued', 
   TitleBarAlign : 'left', 
   TitleColor : '#383897', 
   Width : 270, 
   TitleFontWeight : 'normal', 
   ContentFontSize : 11, 
   ContentFontColor : '#000000', 
   Id  : 'DiscontinuingJHP'
} 
var DiscontinuingJHP = new FerantDHTMLWindow(paramsDiscontinuingJHP); 

/******** 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 *************************/




