
function displayTDmonthlySiteUpdate()
{ 
  var string = "width=475,height=360,resizable=no,toolbar=no,status=no,location=no,scrollbars=yes";
  var hwnd = window.open('/monthly/site_update.html', 'siteupdate', string) ;
  if (navigator.appName == "Netscape") {
     hwnd.focus();
  }
}

function displayTDSiteUpdate()
{ 
  var string = "width=475,height=360,resizable=no,toolbar=no,status=no,location=no,scrollbars=yes";
  var hwnd = window.open('/site_update.html', 'siteupdate', string) ;
  if (navigator.appName == "Netscape") {
     hwnd.focus();
  }
}

function openCatalogInfoWindow()
{ 
  var string = "width=600,height=400,resizable=yes,toolbar=no,status=no,location=no,scrollbars=yes";
  var hwnd = window.open('catalog_info.html' , 'catalog_info', string) ;
  if (navigator.appName == "Netscape") {
     hwnd.focus();
  }
}

function open_in_parent(url)
{
  if (window.opener && !window.opener.closed)
  {
    opener.location.href = url;
  }
  else
  {
    newBrowserWindow = window.open(url, 'NewBrowserWindow');
  }
}

function openInParentWindow(url)
{
  if (window.opener && !window.opener.closed)
  {
    opener.location.href = url;
    opener.focus();
  }
  else
  {
    newBrowserWindow = window.open(url, 'NewBrowserWindow');
  }
}

function openInParentWindowClose(url)
{
  if (window.opener && !window.opener.closed)
  {
    opener.location.href = url;
    opener.focus();
    window.close();
  }
  else
  {
    newBrowserWindow = window.open(url, 'NewBrowserWindow');
  }
}

function openVideo(clip)
{
  var string = "width=700,height=712,resizable=yes,toolbar=no,status=no,location=no,scrollbars=yes";
  var video = window.open('/monthly/video/video.asp?clip=' + clip, 'video', string) ;
  if (window.focus) {video.focus()}
}
<!--TEST Function to open non-product associated videos by Jenny -->

function openVideo2(clip, mfg, product)
{
  var string = "width=700,height=712,resizable=yes,toolbar=yes,status=no,location=no,scrollbars=yes";
  <!--  var video = window.open('/monthly/video/video2.asp?clip=' + clip, 'video', string) ;-->
  var video = window.open('/monthly/video/video2.asp?clip=' + clip + '&mfg=' + mfg + '&product=' + product, 'video', string) ;
  <!--var string = "width=300,height=240,resizable=yes,toolbar=yes,status=no,location=no,scrollbars=yes";
  <!--var video = window.open(clip, 'video', string) ;
  if (window.focus) {video.focus()}
}

function loadToyshowSlideshow(category)
{
  var string = "width=700,height=800,resizable=yes,toolbar=no,status=no,location=no,scrollbars=yes";
  var slideshow = window.open('/monthly/toyshow/slideshow.asp?category_id=' + category, 'slideshow', string) ;
  if (window.focus) {slideshow.focus()}
}

function loadToyFairSlideshow(category)
{
  var string = "width=700,height=800,resizable=yes,toolbar=no,status=no,location=no,scrollbars=yes";
  var slideshow = window.open('/monthly/toyfair/slideshow.asp?category_id=' + category, 'slideshow', string) ;
  if (window.focus) {slideshow.focus()}
}

function inquiry_window(product_id)
{ 
  var string = "width=550,height=500,resizable=yes,toolbar=no,status=no,location=no,scrollbars=yes";
  inquiryWindow = window.open('/monthly/inquiry/add_product.asp?prod_id=' + product_id, 'addinquiry', string);
  if (window.focus) {inquiryWindow.focus()}
}

function openInNewWindowClose(url)
{
  var newBrowserWindow;
  newBrowserWindow = window.open(url, 'NewBrowserWindow');
  if (window.focus) {newBrowserWindow.focus()}
    window.close();
}

function enforcePopup(callingPage)
{
  if (!window.opener)
  {
    openDocPopup(window.location);
    location.replace(callingPage);
  }
}

function hideLoadingText(boxid)
{
  document.getElementById(boxid).style.display = 'none';
}