//****************************************************************
function chkSSL(obj) {

   var hhostname = obj.hostname;
   var ppathname = obj.pathname;
   var ssearch = obj.search;

   var t1 = "http://";
   var t2 = top.location.hostname;
   var t3 = top.location.pathname;

   if (ppathname.indexOf("index.htm") != -1) {
      obj.href = "http://" + hhostname + "/index.htm";
      return;
   }

   if (ppathname.indexOf("html/login.htm") != -1) {
      obj.href = "https://" + hhostname + "/html/login.htm";
      return;
   }

 if (ppathname.indexOf("html/register.htm") != -1) {
      obj.href = "https://" + hhostname + "/html/register.htm";
      return;
   }

 if (ppathname.indexOf("html/browsecatalog.htm") != -1) {
      obj.href = "http://" + hhostname + "/html/browsecatalog.htm";
      return;
   }

   if (ppathname.indexOf("html/myaccount.htm") != -1) {
      obj.href = "http://" + hhostname + "/html/myaccount.htm";
      return;
   }

  if (ppathname.indexOf("html/modifyprofile.htm") != -1) {
      obj.href = "http://" + hhostname + "/html/modifyprofile.htm";
      return;
   }

  if (ppathname.indexOf("html/profileupdated.htm") != -1) {
      obj.href = "http://" + hhostname + "/html/profileupdated.htm";
      return;
   }
   if (ppathname.indexOf("html/register.htm") != -1) {
      obj.href = "https://" + hhostname + "/html/register.htm";
      return;
   }

   if (ppathname.indexOf("html/prfindx.htm") != -1) {
      obj.href = "https://" + hhostname + "/html/prfindx.htm";
      return;
   }

   if (top.location.protocol == "https:") {

      var s1 = "";

      if (navigator.appName.indexOf("Netscape") != -1) {
         s1 = "?parm1=";			//For Netscape
      }
      else {
         s1 = "?parm1=/";			//For IE
      }

      top.location.href=t1 + t2 + t3 + s1 + ppathname + ssearch;
   }

} // End chkSSL()




