<!--#include virtual="/ssi/doctype.txt"-->

function display(){
if (document.getElementById){
	var b=document.dropmsgform.brand.selectedIndex;
	var c=document.dropmsgform.model.options[document.dropmsgform.model.selectedIndex].value;
	
	if (c == "Other")
	{	// Not yet supported
		document.getElementById("msg").innerHTML=strNotYetSupport;
	}
	else if (c == "Select Phone")
	{	// Choose a model
		document.getElementById("msg").innerHTML=strChooseModel;
	}
	else
	{
		// Symbian
		document.getElementById("msg").innerHTML="S&igrave;, il tuo telefono &egrave; compatibile<br />con Missing Sync for Symbian.";
	}
  }
}


//************************************

function BuildModel(num)
{
	var z=document.dropmsgform.brand.options[document.dropmsgform.brand.selectedIndex].value;
	
	//var w=document.dropmsgform.brand.selectedIndex;
	//alert(z);
	
	if ( z=="Other" )
	{
		document.getElementById("msg").innerHTML=strNoSupport;
	}
	
	var marray=new Array(4);  // create an array that has the maximum model number
		
		//Symbian
		marray[0]=new Array(1); //
		marray[1]=new Array(3); //Motorola model
		marray[2]=new Array(29); //Nokia model
		marray[3]=new Array(3); //Samsung model
		marray[4]=new Array(4); //Sony
		marray[5]=new Array(2); //other model
			
		//Motorola
		marray[1][0]="Choose:"; 
		marray[1][1]="Z8"; 
		marray[1][2]="Other"; 
		
		//Nokia
		marray[2][0]="Choose:"; 
		marray[2][1]="3250"; 
		marray[2][2]="5500"; 
		marray[2][3]="5700"; 
		marray[2][4]="6110"; 
		marray[2][5]="6120"; 
		marray[2][6]="6290"; 
		marray[2][7]="E50"; 
		marray[2][8]="E51"; 
		marray[2][9]="E60"; 
		marray[2][10]="E61"; 
		marray[2][11]="E62"; 
		marray[2][12]="E65"; 
		marray[2][13]="E70"; 
		marray[2][14]="E71"; 
		marray[2][15]="E90"; 
		marray[2][16]="N71"; 
		marray[2][17]="N73"; 
		marray[2][18]="N75"; 
		marray[2][19]="N76"; 
		marray[2][20]="N77"; 
		marray[2][21]="N80"; 
		marray[2][22]="N82"; 
		marray[2][23]="N91"; 
		marray[2][24]="N92"; 
		marray[2][25]="N93"; 
		marray[2][26]="N93i"; 
		marray[2][27]="N95"; 
		marray[2][28]="Other"; 

		//Samsung
		marray[3][0]="Choose:"; 
		marray[3][1]="i450"; 
		marray[3][2]="Other"; 

		//Sony
		marray[4][1]="G700"; 
		marray[4][2]="M600i"; 
		marray[4][3]="P1i"; 
		marray[4][4]="P990i"; 
		marray[4][5]="w950"; 
		marray[4][6]="Other"; 
		
		//other models, place holder
		marray[5][0]="Choose:"; 
		marray[5][1]="Other"; 
	
		document.dropmsgform.model.length=marray[num].length;
	  
      //Select the first specific
     	 document.dropmsgform.model.selectedIndex=-1;
      
      //For every specific in the array for this category, add a new option
     	 for(ctr=0;ctr<marray[num].length;ctr++)
     	 {
      	 //document.dropmsgform.model.options[ctr]=new Option(marray[num][ctr],ctr);
		 document.dropmsgform.model.options[ctr]=new Option(marray[num][ctr],marray[num][ctr]);
      	}   
	
}


