submitButtonBlock.className="itemOperationsEnabled"; 
function countCheckBox(){	//1)if total cout of checked checkbox > 2, enable "Create Block" button	//2) disable all boxes which are not using the same scale as the first one that is checked	//3)if no check box is checked, all the check box should be enabled	sourceForm = document.modify_form_rows;	destinationForm = document.create_block_form;	submitButton = document.getElementById("createBlockBtn");		var count = 0; //enforce at least 2 check box are checked		var scaleId = "";		if (sourceForm && destinationForm) {		// look for checkboxes which have IDs of the form "block-12-11" and keep track of the ones that are checked.		for (var a=0; a < sourceForm.elements.length; a++) {			var target = sourceForm.elements[a];			if(target.type == "checkbox"){				if(target.checked){					count = count +1;					if(count == 1){						scaleId = target.id.substring(target.id.indexOf('-')+1,target.id.lastIndexOf('-'));												//disable other check box which has different scale id						 for(var b=0; b < sourceForm.elements.length; b++){							 var other = sourceForm.elements[b];							 if(other != target && other.type == "checkbox"){							 	var otherScaleId= other.id.substring(other.id.indexOf('-')+1,other.id.lastIndexOf('-'));							 	//alert("other scaleId ="+otherScaleId);							 	if(otherScaleId != scaleId)							 		other.disabled = true;							 	else other.disabled = false;								 }						 }								 					}									}			}		}	}	//alert("scaleId= "+scaleId);	if(count < 1){ //no check box is checked, enable all the checkbox		for (var c=0; c < sourceForm.elements.length; c++){			if (sourceForm.elements[c].type=="checkbox")				sourceForm.elements[c].disabled = false;				}		submitButton.disabled = true;	}else if(count < 2){ 		//alert("select less than 2 items,disable submit button");		submitButton.disabled = true;	}else{ 		//alert("select 2 or more items,enable submit button");		submitButton.disabled = false;	}	}//end of function
5063	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5063/8c5fe9e4ad1b0d17da9503801a0b418bd40398cf/blockUtils.js/clean/tool/src/webapp/content/js/blockUtils.js