function hauteurBloc() {
	if (document.getElementById('ColParent')) {
		var IE6 = false;

		var strChUserAgent = navigator.userAgent;
		var intSplitStart = strChUserAgent.indexOf("(",0);
		var intSplitEnd = strChUserAgent.indexOf(")",0);
		var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);

		var hauteurParent = document.getElementById('ColParent').offsetHeight;

		if(strChMid.indexOf("MSIE 6") != -1) { 
			document.getElementById('col1').style.height = Math.ceil(hauteurParent - 33) + 'px';
			document.getElementById('col2').style.height = hauteurParent + 'px';
		}
		else {
			document.getElementById('col1').style.minHeight = Math.ceil(hauteurParent - 33) + 'px';
			document.getElementById('col2').style.minHeight = hauteurParent + 'px';
		}
	}
}


/* function hauteurBloc() {
	var hauteurcol = new Array();
		for (var i = 1; i<=100; i++) {
			if (document.getElementById('col'+i)) {
				hauteurcol['col'+i]=document.getElementById('col'+i).offsetHeight - 7;
			}
		}
		var idplusgrand="";
		var valeurplusgrand=0;
		for(var i in hauteurcol) {
		//alert(i+"="+hauteurcol[i]);
		if(idplusgrand=="")idplusgrand=i;
		if(hauteurcol[i]>valeurplusgrand){
			idplusgrand=i;
			valeurplusgrand=hauteurcol[i];
		}
	}
	
	for(var i in hauteurcol) {
		if (document.getElementById(i)) {
			document.getElementById(i).style.height = valeurplusgrand +"px";
		}
	}
} */

function goToNextPage(id,link,path) {
  var tmp = '/savsupport/index.php/nikon_sav/kasavsupportformulaire/ajx_diagnostic'
  + '?node='+id+'&link='+link+'&path='+path;
  for (var i=1; i<=10; i++) {
    if(document.getElementById('check'+i)) {
      tmp += '&c'+i+'='+document.getElementById('check'+i).checked;
    }
  }
  window.location = tmp;
}

