function openHelp(url)
{
  var helpwin=open(url,'Hilfe','width=420,height=320,scrollbars=no,status=no');
  helpwin.focus();
}



function openPrint(url)
{
   var winTBPrint=open(url,"winPrint","toolbar,width=575,height=500,screenx=20,scrollbars,resizable=yes,screeny=100");
   winTBPrint.focus();
}

function openSend(url)
{
   var winTBSend=open(url,"winSend","width=580,height=550,resizable=no,scrollbars,screenx=100,screeny=100");
   winTBSend.focus();
}

function openAGB(url)
{
  var AGBwin=open(url,'AGBs','width=435,height=520,scrollbars,status=no');
  AGBwin.focus();
}

function openFGPW()
{
  var url="pop_fgpw.html";
  var FGPWwin=open(url,'ForgotPW','width=435,height=250,scrollbars,status=no');
  FGPWwin.focus();
}

function confirmLeave(page)
{
   if(confirm("Haben Sie noch Fragen zur Online-Bestellung oder die gewünschte Literatur nicht gefunden?\nRufen Sie uns doch an (0228/97791-10) oder schreiben Sie uns eine E-Mail (info@trainerbuch.de).\nMit einem Klick auf OK können Sie den Bestellvorgang abbrechen."))
    {
         document.location=page;
    }
}

var page = document.location.href;
var qstr = window.location.search;

var test = /\?/;
var chk = test.exec(page);

function deactSSl()
{
   var reloc=page;
   if(chk)
   {
     var zw = reloc.replace(/VOLLTXT=Y/,"");
     reloc=zw;
     reloc+="&SHORTTXT=Y";
   }
   else
   {
     reloc+="?SHORTTXT=Y";
   }

   document.location=reloc;

}
function activateSSl()
{

   var reloc=page;
   if(chk)
   {
     var zw = reloc.replace(/SHORTTXT=Y/,"");
     reloc=zw;
     reloc+="&VOLLTXT=Y";
   }
   else
   {
     reloc+="?VOLLTXT=Y";
   }

   document.location=reloc;

}


function activateSSl_HTTPS()
{
   var reloc=page;
   var zw = reloc.replace(/^http:/,"https:");
   reloc=zw;
   if(chk)
   {
     var zw = reloc.replace(/SHORTTXT=Y/,"");
     reloc=zw;
     reloc+="&VOLLTXT=Y";
   }
   else
   {
     reloc+="?VOLLTXT=Y";
   }
   document.location=reloc;

}


function deactSSl_HTTP()
{
   var reloc=page;
   var zw = reloc.replace(/^https:/,"http:");
   reloc=zw;
   if(chk)
   {
     var zw = reloc.replace(/VOLLTXT=Y/,"");
     reloc=zw;
     reloc+="&SHORTTXT=Y";
   }
   else
   {
     reloc+="?SHORTTXT=Y";
   }
   document.location=reloc;

}


