function showDropDown(dropdown) {
	document.getElementById( "pbrand_span" ).style.display = "block";
	if(dropdown == "list1") {
		document.getElementById( "pbrand_span" ).innerHTML = "<input type=radio name=pbrand id=Nokia value=Nokia onclick=showModelDropDown(this.value)> Nokia<br><input type=radio name=pbrand id=Panasonic value=Panasonic onclick=showModelDropDown(this.value)> Panasonic<br><input type=radio name=pbrand id=Samsung value=Samsung onclick=showModelDropDown(this.value)> Samsung<br><input type=radio name=pbrand id=Sendo value=Sendo onclick=showModelDropDown(this.value)> Sendo<br><input type=radio name=pbrand id=Siemens value=Siemens onclick=showModelDropDown(this.value)> Siemens<br><input type=radio name=pbrand id=Other value=Other onClick=enableField();showModelDropDown(this.value);> Other <input type=text name=pbrand_other id=pbrand_other size=30 maxlength=99 class=b2 disabled>";
		document.getElementById( "phonemodel" ).style.display = "none";
		document.getElementById( "pmodel" ).style.display = "none";
	} else {
		document.getElementById( "pbrand_span" ).innerHTML = "<input type=radio name=pbrand id=Arima value=Arima onclick=showModelDropDown(this.value)> Arima<br><input type=radio name=pbrand id=BenQ value=BenQ onclick=showModelDropDown(this.value)> BenQ<br><input type=radio name=pbrand id=Motorola value=Motorola onclick=showModelDropDown(this.value)> Motorola<br><input type=radio name=pbrand id=SonyEricsson value=SonyEricsson onclick=showModelDropDown(this.value)> Sony Ericsson<br><input type=radio name=pbrand id=Other value=Other onClick=enableField();showModelDropDown(this.value);> Other <input type=text name=pbrand_other id=pbrand_other size=30 maxlength=99 class=b2 disabled>";
		document.getElementById( "phonemodel" ).style.display = "none";
		document.getElementById( "pmodel" ).style.display = "none";
	}
}
function enableField() {
	document.getElementById("pbrand_other").disabled = false;
}
function enableModelField() {
	if(document.getElementById("pmdropdown").options[ document.getElementById("pmdropdown").selectedIndex ].value == "Other") {
		document.getElementById("pmodel_other").value = "";
		document.getElementById("pmodel_other").style.display = "block";
		document.getElementById("pmodel_other").disabled = false;
	}
	else {
		document.getElementById("pmodel_other").value = "";
		document.getElementById("pmodel_other").style.display = "none";
	}
}
function showModelDropDown(mf) {
	var manufacturer = mf;
		document.getElementById( "phonemodel" ).style.display = "block";
	
	if(manufacturer != "Other") {
		document.getElementById( "pmodel" ).style.display = "block";
		document.getElementById( "pbrand_other" ).disabled = true;
		document.getElementById( "pbrand_other" ).value = "";
		document.getElementById( "pmodel_other" ).style.display = "none";
	}
		
	if(manufacturer == "Other") {
		document.getElementById( "pmodel" ).style.display = "block";
		document.getElementById( "pmodel" ).innerHTML = "Other";
		document.getElementById( "pmodel_other" ).value = "";
		document.getElementById( "pmodel_other" ).style.display = "block";
		document.getElementById( "pmodel_other" ).disabled = false;
	}
 	else if(manufacturer == "Nokia") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=3230>3230<option value=3600>3600<option value=3620>3620<option value=3650>3650<option value=3660>3660<option value=6260>6260<option value=6600>6600<option value=6620>6620<option value=6630>6630<option value=6670>6670<option value=7610>7610<option value=7650>7650<option value=N-Gage>N-Gage<option value=N-Gage QD>N-Gage QD<option value=Other>Other</select>";
	}
	else if(manufacturer == "Panasonic") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=X700>X700<option value=Other>Other</selected>";
	}
	else if(manufacturer == "Samsung") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=SGH-D710>SGH-D710<option value=Other>Other</selected>";
	
	}
	else if(manufacturer == "Sendo") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=SendoX>Sendo X<option value=Other>Other</selected>";
	
	}
	else if(manufacturer == "Siemens") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=SX1>SX1<option value=Other>Other</selected>";
	
	}
	else if(manufacturer == "Arima") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=ASP805>ASP805<option value=U300>U300<option value=Other>Other</selected>";
	
	}
	else if(manufacturer == "BenQ") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=P30>P30<option value=P31>P31<option value=Other>Other</selected>";
	
	}
	else if(manufacturer == "Motorola") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=A920>A920<option value=A925>A925<option value=A1000>A1000<option value=Other>Other</selected>";
	
	}
	else if(manufacturer == "SonyEricsson") {
		document.getElementById( "pmodel" ).innerHTML = "<select name=pmodel id=pmdropdown onChange=enableModelField()><option value=Choose>Choose<option value=P800>P800<option value=P802>P802<option value=P900>P900<option value=P908>P908<option value=P910>P910<option value=Other>Other</selected>";
	
	}
}

function checkSelected() {
	if(document.getElementById( "S60" ).checked) {
		showDropDown("list1");
	}
	if(document.getElementById( "UIQ" ).checked) {
		showDropDown("list2");
	}
}
function setDropDownSel(selObj, x) {
	var opts=selObj.options, i=opts.length;
	while(i-->0) {
		if(opts[i].value == x) {
			selObj.selectedIndex=i;
			return true;
		}
	}
	return false;
}