function showGiftWrapInfo()
{
var strLocation = "giftwrap.html";
var GWpopup = window.open(strLocation,"WLpopup","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=430,height=400");
 GWpopup.focus();
}
function showSizeChart(pURL)
{
var GWpopup = window.open(pURL,"WLpopup","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=430,height=400");
 GWpopup.focus();
}
function addToRegistry(pageID,pageName,imgLoc)
{
var q = 0;
var qty = 1;
var notes = '';
while(document.frmOrder.elements[q])
{
 if(document.frmOrder.elements[q].name == 'vwquantity')
 { qty = document.frmOrder.elements[q].value; }
 else if(document.frmOrder.elements[q].value=="yhst-49032622556320")
 { q = 100; }
 else
 {
  if(notes) { notes = notes + ", "; }
  notes += document.frmOrder.elements[q].name + ": " + document.frmOrder.elements[q].value; }
 q++;
}

var thisLoc=window.location + "";
pageName = pageName.replace("&","and");
var strLocation = "http://ydesigns.biz/registry/addtolist.php?"+
				  "storeID=whateverybabyneeds&pageID="+pageID+"&pageName="+pageName+"&imgLoc="+imgLoc+"&thisLoc="+thisLoc+"&qty="+qty+"&notes="+notes;
var GRpopup = window.open(strLocation,"WLpopup","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=430,height=400");
 GRpopup.focus();
}

function savePage()
{
      var browsername = navigator.appName; 
      if(browsername=="Microsoft Internet Explorer")
      {  window.external.AddFavorite(window.location,document.title);  }
      else
      {  alert ("Please press CONTROL + 'D' on your keyboard to bookmark this page!");  }
}


function sendPage() {
 eval("var ePop = window.open('http://ydesigns.biz/tools/email-a-friend/?storename=yhst-49032622556320&theURL="+window.location+"','email_popup','menubar=no,scrollbars=no,width=500,height=420')"); 
 ePop.focus();
} 


function imagePop()
{
 var imgPop = window.open('','imgPop','menubar=no,scrollbars=no,width=660,height=620');
 imgPop.document.open();
 imgPop.document.write('<ht'+'ml><he'+'ad><ti'+'tle>WhatEveryBabyNeeds.com</tit'+'le></he'+'ad><bo'+'dy>');
 var imgPopBody = document.getElementById('img_pop_holder').innerHTML + "";
 imgPop.document.write(imgPopBody);
 imgPop.document.close();
 imgPop.focus();
}
var tabTabID = "tab1";
var tabDivID = "tabbed_area_1";

function showTab(x)
{
 document.getElementById(tabTabID).className = 'tab_off';
 document.getElementById(tabDivID).style.display = 'none';
 tabTabID = "tab" + x;
 tabDivID = "tabbed_area_" + x;
 document.getElementById(tabTabID).className = 'tab_on';
 document.getElementById(tabDivID).style.display = 'block';
}

var prevMenu = '';
function showMenu(linkObj,menuID)
{
 var thisMenu = document.getElementById(menuID);
 var curDisplay = thisMenu.style.display;

 if(prevMenu)
 { prevMenu.style.display = 'none'; }

 if(curDisplay=='none')
 { thisMenu.style.display = 'inline';
   prevMenu = thisMenu; }
 else
 { thisMenu.style.display = 'none';
   prevMenu = ''; }
}

function videoPopup()
{
 var vPop = window.open('','vPop','menubar=no,scrollbars=no,width=500,height=400');
 vPop.document.open();
 vPop.document.write('<ht'+'ml><he'+'ad><ti'+'tle>WhatEveryBabyNeeds.com</tit'+'le></he'+'ad><bo'+'dy bgcolor=#D6D0AE style=maring-top:30px;><ce'+'nter>');
 var vPopBody = document.getElementById('video_div').innerHTML + "";
 vPop.document.write(vPopBody);
 vPop.document.close();
 vPop.focus();
}
