﻿ function checkSideBarDefaults()
   {
 return;
   var obj;
   obj = document.GetElementById('sbPurchase');
   if (obj!=null) 
      {     
      if (document.GetElementById('sbPurchase').href.indexOf('SETME') > 0)
         {alert('You need to set the "sbPurhcase" variable in *sidebar-include.asp');return;}
      }
   
   /*
   obj = document.GetElementById('sbMoreSkins');
   if (obj!=null) 
      {
      if (document.GetElementById('sbMoreSkins').href.indexOf('SETME') > 0)
         {alert('You need to set the "sbMoreSkins" variable in *sidebar-include.asp');return;}
      }
   */

   }

 function checkDefaults()
   {

   var obj;
   
   //Code to make sure all the template settings have been setup properly
   obj = document.getElementById('_ProductLogo');
   if (obj != null)
      {
      if (obj.src.indexOf('SETME') > 0)
         {alert('You need to set the "_ProductLogo" image source in *sidebar-include.asp');return;}
      }

   if (document.title.indexOf('SETME') > 0)
      {alert('You must set the contents of the "<TITLE>" tag!');return;}
      
   if (__ProductPurchaseLink.indexOf('SETME') > 0)
      {alert('You must set the __ProductPurchaseLink variable in the sidebar-include file!');return;}


   //CHECK META TAGS CONTENT
   var mymetatags = document.getElementsByTagName("meta"); 
   for (i=0;i < mymetatags.length;i++)
      {
      var name = mymetatags[i].getAttribute("name");
      var content = mymetatags[i].getAttribute("content");
      if (content.indexOf('SETME') > 1)
         {alert('You must set the contents of the "' + name + '" meta tag!');return;}
      }
   }

 function checkIndexDefaults()
   {
 return;
   var obj;
   
   //Code to make sure all the template settings have been setup properly
   obj = document.getElementById('_PrimaryScreenShotThumbnail');
   if (obj != null)
   {
      if (obj.innerHTML.indexOf('SETME') > 0)
         {alert('You need to set the "_ProductName" variable');return;}
   }
   
   obj = document.getElementById('_PrimaryScreenShotThumbnail');
   if (obj != null)
      {
      if (obj.href.indexOf('SETME') > 0)
         {alert('You need to set the "_PrimaryScreenShotThumbnail" variable');return;}
      }

   obj = document.GetElementById('_PrimaryScreenShotLink');
   if (obj != null)
      {
      if (obj.href.indexOf('SETME') > 0)
         {alert('You need to set the "_PrimaryScreenShotLink" variable');return;}
      }

   obj = document.GetElementById('_ProductPurchaseLink');
   if (obj != null)
      {
      if (obj.href.indexOf('SETME') > 0)
         {alert('You need to set the "_ProductPurchaseLink" variable');return;}
      }

   obj = document.getElementById('_ScreenShot_1_Thumbnail').src;
   if (obj != null)
      {
      if (obj.indexOf('SETME') > 0)
         {alert('You need to set the "_ScreenShot_1_Thumbnail" variable');return;}
      }
   obj =  document.GetElementById('_ScreenShot_1_Link');
   if (obj != null)
      {
      if (obj.href.indexOf('SETME') > 0)
         {alert('You need to set the "_ScreenShot_1_Link" variable');return;}
      }


   obj = document.getElementById('_ScreenShot_2_Thumbnail').src;   
   if (obj != null)
      {
      if (obj.indexOf('SETME') > 0)
         {alert('You need to set the "_ScreenShot_2_Thumbnail" variable');return;}      
      }
   obj = document.GetElementById('_ScreenShot_2_Link');
   if (obj != null)
      {
      if (obj.href.indexOf('SETME') > 0)
         {alert('You need to set the "_ScreenShot_2_Link" variable');return;}
      }


   obj = document.getElementById('_ScreenShot_3_Thumbnail').src;   
   if (obj != null)
      {
      if (obj.indexOf('SETME') > 0)
         {alert('You need to set the "_ScreenShot_3_Thumbnail" variable');return;}      
      }
   obj = document.GetElementById('_ScreenShot_3_Link');
   if (obj != null)
      {
      if (obj.href.indexOf('SETME') > 0)
         {alert('You need to set the "_ScreenShot_3_Link" variable');return;}
      }
   }

function checkPurchaseDefaults()
   {
   var obj;
   
   //Code to make sure all the template settings have been setup properly
   obj = document.getElementById('_ProductName');
   if (obj != null)
      {
      if (obj.innerHTML.indexOf('SETME') > 0)
         {alert('You need to set the "_ProductName" variable on the sidebar-include page');return;}
      }

   obj = document.getElementById('_ProductPrice');
   if (obj != null)
      {
      if (obj.innerHTML.indexOf('SETME') > 0)
         {alert('You need to set the "_ProductPrice" variable on the sidebar-include page');return;}
      }

   }
