function do_downloadwin(link)
{
  // If we have IE, use a new window to push the download.
  // We have to do this because other methods did not work in IE.
  if (navigator.appVersion.indexOf('MSIE') != -1) {
    window.open(link, 'download_window', 'toolbar=0,location=no,directories=0,status=0,scrollbars=0,resizeable=0,width=1,height=1,top=0,left=0');
    window.focus();
        location.href = 'http://www.nomadesk.com/downloadwin' ;
        window.event.returnValue=false;
  }
  else {
        window.open(link, 'download_window', 'toolbar=0,location=no,directories=0,status=0,scrollbars=0,resizeable=0,width=1,height=1,top=0,left=0');
        window.focus();
        location.href = 'http://www.nomadesk.com/downloadwin' ;
        window.event.returnValue=false;
  }
}

function do_downloadmac(link)
{

  // If we have IE, use a new window to push the download.
  // We have to do this because other methods did not work in IE.
  if (navigator.appVersion.indexOf('MSIE') != -1) {
    window.open(link, 'download_window', 'toolbar=0,location=no,directories=0,status=0,scrollbars=0,resizeable=0,width=1,height=1,top=0,left=0');
    window.focus();
        location.href = 'http://www.nomadesk.com/downloadmac' ;
        window.event.returnValue=false;
  }
  else {
        window.open(link, 'download_window', 'toolbar=0,location=no,directories=0,status=0,scrollbars=0,resizeable=0,width=1,height=1,top=0,left=0');
        window.focus();
        location.href = 'http://www.nomadesk.com/downloadmac' ;
        window.event.returnValue=false;
  }
}

