
// other parameters

    displaywhenempty=""
    valuewhenempty=-1

    displaywhennotempty="- select -"
    valuewhennotempty=0




function changemodels(currentbox) {
	models = document.getElementById("combo_1");
	models.options.length = 0;
    stringa='data';
    i=0;
    eval("stringa=stringa+'_'+document.getElementById(\"combo_0\").selectedIndex");

    stringa=stringa+"_";

	i=0
       while ((eval("typeof("+stringa+i+")!='undefined'")) || (i==0)) {

       // if there are no options, I empty the first option of the "son" combo
	   // otherwise I put "-select-" in it

	   if ((i==0) && eval("typeof("+stringa+"0)=='undefined'"))
	   	      if (eval("typeof("+stringa+"1)=='undefined'"))
	   	         eval("models.options[0]=new Option(displaywhenempty,valuewhenempty)")
	   	      else
	             eval("models.options[0]=new Option(displaywhennotempty,valuewhennotempty)")
	      else
              eval("models.options["+i+"]=new Option("+stringa+i+".text,"+stringa+i+".value)")
	      i=i+1
	   }
}

function isCompatible(currentSelect) {
	make = document.getElementById("combo_0").selectedIndex
	amodel = document.getElementById("combo_1").selectedIndex;
	stringa = "data_"+make+"_"+amodel+"_1";
	eval("text="+stringa);

	displayText = document.getElementById("combo_2");
	displayText.innerHTML = "<b>Congratulations</b>,  your phone is compatible!<br><br>  Once you have downloaded the software to your phone, you can find the service message in:<br><br> "+text.text;
}

function showothers(currentbox) {
	if (currentbox.value == 'other') {
		document.getElementById("other_manuf").style.display = "block";
	} else {
		document.getElementById("other_manuf").style.display = "none";
	}
}

