function checkTerms(type){
	var pass = false;
	if (document.terms.terms.checked == true)
	    pass = true;
	if (pass == true) {
    switch(type) {
      case 'windows':
        gotoSuccess('/downloads/BW1201/boingoinstaller.exe', 'exe')
        break;
      case 'mac-10-4':
        gotoSuccess('/downloads/BW1213/1.6/goboingo.dmg', 'dmg')
        break;
      case 'mac-10-5-and-6':
        gotoSuccess('/downloads/BW1213/goboingo.dmg', 'dmg')
        break;
      case 'goboingo':
        gotoSuccess('/downloads/BW1212/goboingo.exe', 'exe')
        //gotoSuccess('/downloads/BW1212/goboingo.exe', 'exe')
        break;
    }
	}
	else {
	 alert('Please check the box indicating that you agree to the End User License Agreement.');
	}
}




function gotoSuccess(url, IExt) {
  
  var a = url + location.search;
  
  if(a.indexOf('?') != -1) {
    a += '&';  
  } else {
    a += '?';  
  }
  
	document.location.href = a + 'IExt=.' + IExt;
}
