// JavaScript Document
      function moveElements()
      {
        movePoliDiv();
      }
      
      
  
      function movePoliDiv()
      {
        var oDiv = document.getElementById("poliDiv");          
        var dLeft;
        if(oDiv)        
        {
          dLeft = (getWH().w  - parseFloat(oDiv.style.width) -10);
          dLeft = (dLeft<850?850:dLeft);
          oDiv.style.left = dLeft-30+"px";
              
        }
      }
      
      
      function wh(_w,_h)
      {
        this.w=_w ;
        this.h=_h;
      }


      function getWH()
      {
        var cl=new wh(0,0);
        
        if (self.innerHeight) // all except Explorer
        {
          wh.w = self.innerWidth;
          wh.h = self.innerHeight;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
          // Explorer 6 Strict Mode
        {
          wh.w = document.documentElement.clientWidth;
          wh.h = document.documentElement.clientHeight;
        }
        else if (document.body) // other Explorers
        {
          wh.w = document.body.clientWidth;
          wh.h = document.body.clientHeight;
        }
        return wh;
      }
   
                        



   function sostStringa(allString,da_sost,sost)
   {
    var finalString = "";
    
    var startIdx = allString.indexOf(da_sost);
    if (parseFloat(startIdx)>=0)
    {
     finalString = allString.substr(0,startIdx) + sost + allString.substr(startIdx + da_sost.length, allString.length);
    }   
    if (finalString!="") document.location.href = finalString;
   }
   
   
    function sostStringa2(allString,da_sost1,sost1,da_sost2,sost2)
   {
    var finalString = "";
    var finale="";
    
    var startIdx1 = allString.indexOf(da_sost1);
    var startIdx2 = allString.indexOf(da_sost2);

    if (parseFloat(startIdx1)>=0 && parseFloat(startIdx2)>=0)
    {
     finale = allString.substr(0,startIdx1) + sost1 + allString.substr(startIdx1+ da_sost1.length, allString.length);
     finalString = finale.substr(0,startIdx2) + sost2 + finale.substr(startIdx2+ da_sost2.length, finale.length);
 }   
    if (finalString!="") document.location.href = finalString;
   }
   


function c1_onclick()
{
  if (document.viaMfrm1.c1.checked == true) {
  
    document.viaMfrm1.c2.checked = false;
    document.viaMfrm1.c3.checked = false
  }
}


function c2_onclick()
{
  if (document.viaMfrm1.c2.checked == true) {
  
    document.viaMfrm1.c1.checked = false;
    document.viaMfrm1.c3.checked = false
  }
}


function c3_onclick()
{
  if (document.viaMfrm1.c3.checked == true) {
  
    document.viaMfrm1.c1.checked = false;
    document.viaMfrm1.c2.checked = false
  }
}



function OpenPrivacyWindow(privacy){
window.open(privacy,'Privacy','height=700,width=760,menubar=0,resizable=1,scrollbars=yes, status=1,titlebar=0,toolbar=0,left=5,top=5');
}

function OpenLegalNoticeWindow(note){
window.open(note,'Privacy','height=700,width=760,menubar=0,resizable=1,scrollbars=yes, status=1,titlebar=0,toolbar=0,left=5,top=5');
}

