<!--
winHeight = 500;
winWidth  = 250;

function DoHelp( context )
{
    HelpContext = new String( context );
	DirectoryLevel = 2;

	header="<html><head><title>Help</title>\n<script language=javascript>\n<!--\nfunction back(url)\n {\n window.opener.location.href=url;\n }\n //-->\n</script></head>\n";
	footer="<FORM><INPUT TYPE=button value=close onClick='self.close();'></FORM>\n</html>\n";

	if ( HelpContext.indexOf( "MasterSearch" ) != -1 ) 
	{
		DirectoryLevel = 2;
                winHeight=650;

		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - Search Results </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>You are viewing the results of your search.\n"+
		"You may also choose a product category from our <A HREF=\"javascript:back('/onlineshop/shop.html')\"> \n"+
		"storefront</a> to find the item you are looking for.\n"+
		" Here are some search tips that can help make your searches more effective: <p>\n"+
		" Use the <b>Search By...</b> field to search by either product description (e.g. \"catheter\") or \n"+
		" product code (e.g. \"H4124\").  By default, the search is set to search by product description.\n"+
		"<p>If you enter a search string with more than one word, the search \n"+
		" results will only show items that have all of your search words in the description.  You should \n"+
		" only enter one product code when you are searching by product code.  Of course you can enter a partial\n"+
		"code. For example, searching for product code \"H4\" will result in all items with  product codes beginning\n"+
		" with \"H4\".  <p> Note: All searches are case insensitive.\n";
	}
	else if  ((HelpContext.indexOf( "onlineshop" ) != -1) && (HelpContext.indexOf( "onlineshop" ) != -1) )
	{
		DirectoryLevel = 2;
                winHeight=500;

		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - Online Shop </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>You are in the online shop.\n"+  
		"  Currently you may order products from \n"+
		" Hollister and Convatec, as well as our two exclusive brands, SG3 and Amici.\n"+
		" You may choose a product category from our <A HREF=\"javascript:back('/onlineshop/shop.html')\"> \n"+
		"storefront</a> or use the search function at the top left of the page.  By setting the <b>Search By...</b> field, you may \n"+
		"search either by product description or product code. </font>\n";
	}
	else if ( HelpContext.indexOf( "home" ) != -1 )
	{
		DirectoryLevel = 1;
		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - OstomyWeb.com </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>Welcome to OstomyWeb.com. \n"+
		"Please choose one of the links in the Site Map, which is on the left \n"+
		"side of your browser.  </font>\n";
	}
    else if( HelpContext.indexOf( "ViewCart" ) != -1 )
	{
		DirectoryLevel = 2;
                winHeight=500;

		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - View Cart </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>You are viewing the contents of your\n"+
		" shopping cart. Any item can be removed from your cart by clicking the 'Remove' button.\n"+
		" The 'Empty Cart' button will remove all items from your shopping cart. If you have completed\n"+
                " your shopping, click the 'Checkout' button to submit your order.\n"+
                " To go back to the previous page, press your browser's 'Back' button. To go to the main\n"+
                " online store page, press the 'Storefront' button.</font>\n";
	}
    else if( HelpContext.indexOf( "Checkout" ) != -1 )
	{
		DirectoryLevel = 2;
                winHeight=650;

		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - Checkout </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>From the 'Checkout' page \n"+
		" enter your personal and shipping information. All fields marked with an '*' are\n"+
		" required. If your personal and shipping information is the same, check the box\n"+
                " marked 'Shipping and billing address are the same' and you will not have to re-enter the information.\n"+
                " Once all the required information has been filled in, press the 'Next Step'\n"+
                " button to proceed to the next step of the checkout where you will be given the\n"+
                " opportunity to verify that all the information was correctly entered.\n" +
                " <P>NOTE</B>: Checkout cannot proceed if your shopping cart is empty.</font>\n";
	}
    else if( HelpContext.indexOf( "ConfirmOrder" ) != -1 )
	{
		DirectoryLevel = 2;
                winHeight=550;

		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - Confirm Order </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>From the 'Confirm Order' page \n"+
		"the shipping and payment information will be displayed for your confirmation. \n"+
		"Carefully ensure that all the information was correctly entered. To change any information, press your browser's 'Back' button.\n"+
                "If the information is correct, and you are ready to submit your order, press the 'Submit Order' button.\n"+
                "Clicking the 'Submit Order' button will send all the information to us for processing. \n";
                "Once we have received your order, we will contact you to retrieve your payment information. </font>\n";
	}
	else if ( HelpContext.indexOf("Order") != -1 )
	{
		DirectoryLevel = 2;
                winHeight=400;

		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - Order Sent </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>Your order has been sent to OstomyWeb.com. \n"+
		" You will find an order number on this page. Please record it as it will be referenced\n"+
		" in all future contact with us concerning your order. Thank you for your patronage!</font>\n";
	}
	else if ( HelpContext.indexOf("excl") != -1 )
	{
		DirectoryLevel = 1;
		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - OstomyWeb.com Exclusives </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>Select one of our exclusive products \n"+
		"listed here for a more detailed description.  You may jump to another section of our website by using the Site Map on the \n"+
		"left side of your browser. Visit our <A HREF=\"javascript:back('/onlineshop/shop.html')\"> \n"+
                "Online Shop</A> to purchase items directly through your browser.</font>\n";
	}
	else if ( HelpContext.indexOf("sg3") != -1 )
	{
		DirectoryLevel = 1;
		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - OstomyWeb.com Exclusives - SG3</font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>You are now viewing the SG3 webpage \n"+
		"in our exclusives section.  SG3 is a pouch deodorant available only from OstomyWeb.com. \n"+
		"Fill out the form to receive a free SG3 sample.  You may also order SG3 products from our \n"+
		"<A HREF=\"javascript:back('/onlineshop/shop.html')\">Online Shop</A>.</font>\n";
	}
	else if ( HelpContext.indexOf("amici") != -1 )
	{
		DirectoryLevel = 1;
		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - OstomyWeb.com Exclusives - Amici</font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>You are now viewing the Amici webpage \n"+
		"in our exclusives section.  Amici Intermittent Catheters are available only from OstomyWeb.com. \n"+
		" You may order Amici Intermittent Catheters from our \n"+
		"<A HREF=\"javascript:back('/onlineshop/shop.html')\">Online Shop</A>.</font>\n";
	}
	else if ( HelpContext.indexOf("prodlist") != -1 )
	{
		DirectoryLevel = 1;
		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - OstomyWeb.com Manufacturer Listing</font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>You are now viewing a listing of product brands we carry.\n"+
		"A link to each manufacturer's webpage is provided when applicable. <p> Currently you may order items from Hollister\n"+
		" and Convatec, as well as our two exclusive brands, SG3 and Amici, from the "+
		"<A HREF=\"javascript:back('/onlineshop/shop.html')\">Online Shop</A>.</font>\n";
	}
	else if ( HelpContext.indexOf("contact") != -1 )
	{
		DirectoryLevel = 1;
		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - OstomyWeb.com Contact</font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>You are now viewing the OstomyWeb.com\n"+
		" Contact page.  Use this page to send us your comments or questions.  This page also lists our\n"+
		"phone and fax numbers, as well as our address.</font>\n";
	}
	else if ( HelpContext.indexOf("ShopFaq") != -1 )
        {
			DirectoryLevel = 2;
                winHeight=350;
                text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - Shopping FAQ</font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>This page displays the Frequently \n"+
		"Asked Questions about our <A HREF=\"javascript:back('/onlineshop/shop.html')\">Online Shop.</A></font>\n";
        }
	else 
	{
		DirectoryLevel = 2;
		text=
		"<font face=\"helvetica, arial\" color=000000 size=4>Help - Topic Does Not Exist </font><p>\n"+
		"<font face=\"helvetica, arial\" color=000000 size=2>No help written for this topic.\n ";
	}

	if (DirectoryLevel == 1) //this means that the user was on a page that was inside public_html 1st level
	{
        templ1 = "<P><font face=\"helvetica, arial\" color=000000 size=1>\n"+
                 "<A HREF=\"javascript:back('https://ontostomy.myhostpanel.net/cgi-bin/ViewCart.pl')\"><img src=gif/viewcart_forhelp.gif border=0></A> - Click to view your shopping cart.<BR>\n";
        templ2 = "<A HREF=\"javascript:back('https://ontostomy.myhostpanel.net/cgi-bin/Checkout.pl')\"><img src=gif/checkout_forhelp.gif border=0></A> - Click to check out the contents of your shopping cart.<BR>\n";
        templ3 = "<img src=gif/help_forhelp.gif>     - Click to view help for the page you are viewing.<BR></FONT>\n";
	}
	else //this means that the user was on a page in the 2nd level directory under public_html (e.g. onlineshop)
	{
		templ1 = "<P><font face=\"helvetica, arial\" color=000000 size=1>\n"+
                 "<A HREF=\"javascript:back('https://ontostomy.myhostpanel.net/cgi-bin/ViewCart.pl')\"><img src=../gif/viewcart_forhelp.gif border=0></A> - Click to view your shopping cart.<BR>\n";
        templ2 = "<A HREF=\"javascript:back('https://ontostomy.myhostpanel.net/cgi-bin/Checkout.pl')\"><img src=../gif/checkout_forhelp.gif border=0></A> - Click to check out the contents of your shopping cart.<BR>\n";
        templ3 = "<img src=../gif/help_forhelp.gif>     - Click to view help for the page you are viewing.<BR></FONT>\n";
	}

	HelpText=header+text+templ1+templ2+templ3+footer;
	OpenHelpWindow(HelpText);
}


function OpenHelpWindow(HelpText) 
{
        helpWin = window.open("","","height="+winHeight+",width="+winWidth+",directories=no,toolbar=no,resizable=no,menubar=no,scrollbars=1");
        helpWin.document.write(HelpText);
        helpWin.document.close();
}

//-->
	
