function dojoinlist() { 

window.open('http://www.nelconic.com/joinmaillist.html?site=GreatOutdoorsDepot.com','JoinMailingList',

'height=325,toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=1,width=350')

; }


function livehelp() { 

window.open('http://www.nelconic.com/support/livehelp.php?department=2','greatodlivehelp',
'height=400,toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=1,width=475')

; }

function god_round(x) {
	var numberField = x; // Field where the number appears
	var rlength = 2; // The number of decimal places to round to
	var newnumber =   Math.round(numberField*Math.pow(10,rlength))/Math.pow(10,rlength);
	return newnumber;
}



var specialEnabled = false;
var specialheight=200;
var specialwidth=200;

function shipping()
{
   var d = new Date();
   var name = '' + d.getTime();
   var height=300;
   var width=250;
   var s_html='<font style="font-family:arial,helvetica;'+
   'font-size:11px; color:#000000;">' +
   'The following is a guideline for US Residents to determine how long it will take for your package to arrive and how much it will cost.  To see any current notices regarding shipping delays, please see our information page.'+
   '<BR><BR>We also ship to Australia, Canada, Japan, New Zealand, and the United Kingdom.  Please read our information page for shipping rates and information.'+
   '<BR><BR>'+
   '<b>How much do you charge for shipping?</b>' +
   '<BR>'+
   'Great Outdoors Depot utilizes UPS, FedEx and USPS '+
   'Mail shipping to offer the following ' +
   'shipping options: ' +
   '<BR><BR> '+
   '<b>Shipments in the United States</b>'+
   '<BR>'+
   'Ground Shipment'+
   '<BR>'+
   '<table width="80%" cellpadding="0" cellspacing="0"'+
   ' style=\"font-family:arial,helvetica; font-size:10px;\">'+
   '<tr><td bgcolor="#CCd4f4">'+
   '<b>Order Subtotal</b></td><td width="5"></td><td'+
   ' bgcolor="#CCD4F4"><b>Cost</b></td></tr>'+
   '<tr><td>$0 - $25</td><td width="5"></td><td>$5.99</td></tr>'+
   '<tr><td>$25.01 - $40</td><td width="5"></td><td>$7.99</td></tr>'+
   '<tr><td>$40.01 - $55</td><td width="5"></td><td>$9.99</td></tr>'+
   '<tr><td>$55.01 - $75</td><td width="5"></td><td>$11.99</td></tr>'+
   '<tr><td>$75.01 - $100</td><td width="5"></td><td>$14.99</td></tr>'+
   '<tr><td>$100.01 - $125</td><td width="5"></td><td>$16.99</td></tr>'+
   '<tr><td>$125.01 - $150</td><td width="5"></td><td>$18.99</td></tr>'+
   '<tr><td>$150.01 - $250</td><td width="5"></td><td>$19.99</td></tr>'+
   '<tr><td>$250.01 - $400</td><td width="5"></td><td>$20.99</td></tr>'+
   '<tr><td>&gt; $400</td><td width="5"></td><td>$24.99</td></tr>'+
/*
   '<tr><td>$0 - $25</td><td width="5"></td><td>$5.99</td></tr>'+
   '<tr><td>$25.01 - $50</td><td width="5"></td><td>$7.99</td></tr>'+
   '<tr><td>$50.01 - $100</td><td width="5"></td><td>$9.99</td></tr>'+
   '<tr><td>$100.01 - $250</td><td width="5"></td><td>$11.99</td></tr>'+
   '<tr><td>&gt; $250</td><td width="5"></td><td>$14.99</td></tr>'+
*/
   '</table>'+
   '<BR>'+
   '<!-- <font color="red">Between August 24th and September 4th, no expedited shipping service is available. Ground shipments for in stock orders take anywhere from 2-4 days (West coast) to 5-10 days (East coast).</font><BR><BR> -->'+
   '3 Business Days'+
   '<BR>Add $7.99 to the Ground Shipment cost'+
   '<BR>'+
   '<BR>'+
   '2 Business Days'+
   '<BR>Add $16.99 to the Ground Shipment cost'+
   '<BR>'+
   '<BR>'+
   '1 Business Day'+
   '<BR>Add $29.99 to the Ground Shipment cost'+   
   '<BR>'+
   '<BR>'+
'AK and HI residents may be charged additional shipping fees.  Bulky items and large quantity orders will also incur these fees.  If these fees are more than 10% of your order total, you will be contacted for approval before we ship your order.'+
   '<BR>'+
   '<BR>Please be aware that your order will usually ship the next business day.  For example, if you order a package with 1 Business Day Shipping on Tuesday, your order will most likely ship Wednesday and arrive Thursday.  Business days constitute weekdays, Monday through Friday, excluding holidays.  Extra days, such as the day before Christmas, the day before New Years day, and other days may be considered holidays as well.   Note that if you ask for expedited shipping near a weekend, the weekend does not count towards your expedited shipping. For example, if you choose 2 Business Days on Thursday, and your order is shipped Friday, you will receive your package on Tuesday, unless any of the Friday, Monday or Tuesdays are holidays.'+
   '<BR> '+
   '<BR>Great Outdoors Depot will choose the '+
   'shipping carrier at our discretion.'+
   '<BR><BR><b>What other countries do you ship to?</b><BR>'+
   'We utilize the United States Postal Service to ship internationally to '+
   'Australia, Canada, Japan, New Zealand and the United Kingdom.'+
   '<BR><BR>';
   

   var ship = window.open('',name,'height=' + height + ',toolbar=0,location=0,'+
              'directories=0,scrollbars=1,status=0,menubar=0,'+
              'resizable=1,width=' + width );
              
   ship.document.write('<html><head><title>Shipping Information</title></head>');
   ship.document.write('<body bgcolor="#FFFFFF">');
   ship.document.write(s_html);
   ship.document.write('<center>');
   ship.document.write('<a href="javascript:this.close();">');
   ship.document.write('<font style="font-family: arial,helvetica; '+
                       'font-weight:bolder; font-size: 12px; '+
                       'color:#336699;">Close Window</font></a>');
   ship.document.write('</center>');
   ship.document.write('</body></html>');

}

function zoom(height,width,imageLink)
{
   var d = new Date();
   var name = '' + d.getTime();
   height=height+50;
   width=width+50;
   var zoom = window.open('',name,'height=' + height + ',toolbar=0,location=0,'+
              'directories=0,status=0,menubar=0,'+
              'resizable=1,width=' + width );
              
   zoom.document.write('<html><head><title>Zoomed Image</title></head>');
   zoom.document.write('<body bgcolor="#FFFFFF">');
   zoom.document.write('<a href="javascript:this.close();">');
   zoom.document.write('<font style="font-family: arial,helvetica; '+
                       'font-weight:bolder; font-size: 12px; '+
                       'color:#336699;">Close Window</font></a>');
   zoom.document.write('<BR>');
   zoom.document.write('<center><img src="' + imageLink + '" border=0></center>');
   zoom.document.write('</body></html>');
}




function special()
{
   if(!specialEnabled) return;
   if(readCookie("specialshown") == "true")
     return;
   else
     writeCookie("specialshown","true");
   var d = new Date();
   var name = 'special';
   var height=specialheight;
   var width=specialwidth;
   var s_html='<html><head><title>Special</title></head>'+
   '<body topmargin=0 leftmargin=0>'+
   '<img src="http://www.greatoutdoorsdepot.com/lib/'+
   'greatoutdoorsdepot/special.gif"></body></html>';

   var spec = window.open('',name,'height=' + height
   + ',toolbar=0,location=0,'+
   'directories=0,scrollbars=0,status=0,menubar=0,'+
   'resizable=0,width=' + width );
              
   spec.document.write(s_html);
}

function readCookie(name)
{
  var cookies = document.cookie;
  var start = cookies.indexOf(name + "=");
  if(start == -1) return null;
  start = cookies.indexOf("=",start) + 1;
  var end = cookies.indexOf(";", start);
  if(end == -1) end = cookies.length;
  var value = unescape(cookies.substring(start,end));
  return value;
}

function writeCookie(name,value)
{
  var d = new Date();
  d.setHours(d.getHours()+3);
  document.cookie = name+"="+value+"; expires=" + d.toString();
}

function dosubmit()
{
  document.forms[0].submit();
}

function doContact(method)
{
  var theURL = "http://www.greatoutdoorsdepot.com/";
  if(method == "cancel")
     theURL += "cancelcontact.html";
  else if(method == "return")
     theURL += "returncontact.html";
  else if(method == "pricematch")
     theURL += "pricematch.html";
  else
     theURL += "contactus.html";

  var contactHeight = 480;
  var contactWidth = 600;

   var contactWindow = window.open(theURL,'contactus','height=' + contactHeight + ',toolbar=0,location=0,'+
              'directories=0,scrollbars=1,status=0,menubar=0,'+
              'resizable=1,width=' + contactWidth );
              
}

