function setSelectValue(selectObject, value){
	for(i = 0;i<selectObject.length;i++) {
		if(selectObject[i].value == value){
			selectObject.selectedIndex = i;
		}
	}
}
function pollMakeAndUpdateModel(modelId){
	if (count < maxIterations){
		count++;
		try {setSelectValue(myModel,modelId);}catch(e){}
		if (myModel[myModel.selectedIndex].value != modelId){
			setTimeout("pollMakeAndUpdateModel(" + modelId + ")",wait);
		}
	}
}

function hideMe(id) {
	try {
		document.getElementById(id).className = "hide";
	} catch(e) {
		//do nothing
		//alert("exception: " + e.message);
	}
}

/*
function showMe(id) {
	try {
		document.getElementById(id).className = "show";
	} catch(e) {
		//do nothing
	}
}
*/