function dlnes(thisForm,origin) {
      downloadNowWZ('http://download.winzip.com/winzip100es.exe','downauto.cgi?file=winzip100es.exe&lang=ES&email=' + thisForm.email.value,'0');
}

function dlnmsi(thisForm,origin) {
      downloadNowWZ('http://download.winzip.com/winzip110.msi','downauto.cgi?file=winzip110.msi&lang=EN&email=' + thisForm.email.value,'0');
}

function downloadNow(file,redUrl,extUrl) {
   var isIe = (window.navigator.userAgent.toUpperCase().indexOf('MSIE') != -1);
   var isOpera = (window.navigator.userAgent.toUpperCase().indexOf('OPERA') != -1);

   if (isIe && extUrl == 0 && !isOpera) {
      window.open(file,'_blank','toolbar=0,location=no,directories=0,status=0,scrollbars=no,resizable=0,width=0,height=0,top=0,left=0');
      window.focus();
      location.href = redUrl + '&idl=n';
   } else {
      location.href = redUrl;
   }
}

function downloadNowWZ(file,redUrl,extUrl) {
   var filepick=Math.floor(Math.random()*101);
   var s;
//    var regex = /([\w\d\.]+)$/;
//    var result = file.match(regex);
   var fileName = file;

   var isIe = (window.navigator.userAgent.toUpperCase().indexOf('MSIE') != -1);
   var isOpera = (window.navigator.userAgent.toUpperCase().indexOf('OPERA') != -1);

   try {s=s_gi(s_account);}
   catch (err) {s=new Object;}

   // see if we isolated a filename from the file string
//    if (result != null) {
//       fileName = result[1];
//    }

   // categorize the page
   s.linkTrackVars='products,eVar7,events,prop7,prop8';
   s.linkTrackEvents='event4';
   s.events='event4';
   s.eVar7=fileName;
   s.prop8=s.pageName;
   s.prop7=s.eVar7;
   try{s.tl(this,'d',s.eVar7);}
   catch(err){null;}

   // determine redirect handling based on browser type
   if (isIe && extUrl == 0 && !isOpera) {
      window.open(file,'_blank','toolbar=0,location=no,directories=0,status=0,scrollbars=no,resizable=0,width=0,height=0,top=0,left=0');
      window.focus();
      location.href = redUrl + '&idl=n';
   } else {
      location.href = redUrl;
   }
}

