<!--

var store = new Array();
store['AEG/Telita']=new Array('9050', '9070 DFTX', '9080', '9082', 'A820', 'D800', 'J520', 'J530', 'S200');
store['Alcatel']=new Array('HC800', 'HC1000', 'HX1');
store['LG']=new Array('1200', '1300', '510', '520', '510W', '7010', '7020', 'B1200', 'B1300', 'C1200', 'G510', 'M1200', 'M1300', 'W3000');
store['NEC']=new Array('C313', 'C316', 'E606', 'E613', 'E616', 'E808');
store['Nokia']=new Array('Nokia 1100'
, 'Nokia 1100b'
, 'Nokia 2600'
, 'Nokia 2270'
, 'Nokia 2300'
, 'Nokia 2300a'
, 'Nokia 3100b'
, 'Nokia 3200b'
, 'Nokia 3300'
, 'Nokia 3300b'
, 'Nokia 3320'
, 'Nokia 3360'
, 'Nokia 3361'
, 'Nokia 3520'
, 'Nokia 3530'
, 'Nokia 3570'
, 'Nokia 3585'
, 'Nokia 3585i'
, 'Nokia 3595'
, 'Nokia 5110i'
, 'Nokia 5146'
, 'Nokia 5190'
, 'Nokia 5210e'
, 'Nokia 6020'
, 'Nokia 6090'
, 'Nokia 6110i'
, 'Nokia 6130'
, 'Nokia 6138'
, 'Nokia 6150'
, 'Nokia 6150e'
, 'Nokia 6170'
, 'Nokia 6200e'
, 'Nokia 6310e'
, 'Nokia 6340'
, 'Nokia 6340e'
, 'Nokia 6340i'
, 'Nokia 6360'
, 'Nokia 6370'
, 'Nokia 6385'
, 'Nokia 6390'
, 'Nokia 6500'
, 'Nokia 6510e'
, 'Nokia 6560'
, 'Nokia 6585'
, 'Nokia 6590e'
, 'Nokia 6590i'
, 'Nokia 6600e'
, 'Nokia 6610e'
, 'Nokia 6610i'
, 'Nokia 6800a'
, 'Nokia 6800e'
, 'Nokia 6810'
, 'Nokia 6820a'
, 'Nokia 7200'
, 'Nokia 7210e'
, 'Nokia 7210i'
, 'Nokia 7250e'
, 'Nokia 7610b'
, 'Nokia 7690e'
, 'Nokia 8310e'
, 'Nokia 8390'
, 'Nokia 8390e'
, 'Nokia 8910e'
, 'Nokia 9500'
, 'D211'
, 'Nokia N-Gage'
, 'Nokia N-Gage QD');
store['Samsung']=new Array('SGH-A300', 'SGH-A400', 'SGH-A800', 'SGH-E400', 'SGH-E500', 'SGH-E700', 'SGH-E715', 'SGH-M100', 'SGH-P400', 'SGH-S100', 'SGH-S105', 'SGH-S300', 'SGH-S307', 'SGH-S500', 'SGH-600', 'SGH-2100', 'SGH-SV200', 'SGH-X100', 'SGH-X600', 'SGH-R210', 'Universal');
store['Siemens']=new Array('8008', 'CL50', 'CL55', 'ST55 (old)', 'ST55 (new)', 'ST60');
store['Sony']=new Array('CMD-C', 'CMD-CD5');
store['Panasonic']=new Array('A100', 'G50(old)', 'G50(new)', 'GD50', 'G51', 'G51M', 'GD55');
store['Vitel']=new Array('TSM-3', 'TSM-4', 'TSM-5');

var store_network = new Array();
store_network['AEG/Telita']=new Array('Network provider not neccessary');
store_network['Alcatel']=new Array('France - SFR', 'France - Itineris/Orange', 'Spain - Movistar', 'Spain - Airtel/Vodafone', 'Portugal - TMN');
store_network['LG']=new Array('Network provider not neccessary');
store_network['NEC']=new Array('Network provider not neccessary');
store_network['Nokia']=new Array('USA - AT & T Wireless', 
								 'USA - AT & T Wireless - 3650 w/ IMEI 351102500', 
								 'USA - (PCS) Sprint Spectrum Sprint', 
								 'USA - (PCS) BellSouth Mobility PCS', 
								 'USA - T-Mobile in all areas', 
								 'USA - (PCS) American Portable Telecoms Sprint', 
								 'USA - Western Wireless/VoiceStream (Des Moines)', 
								 'USA - Western Wireless/VoiceStream (Oklahoma City)', 'USA - Western Wireless/VoiceStream (Salt Lake City)','USA - Western Wireless/VoiceStream (Albuquerque)', 'USA - Western Wireless/VoiceStream (Hawaii)', 'USA - Western Wireless/VoiceStream (Denver)', 'USA - (PCS) Powertel PCS Partners', 'USA - VoiceStream Central', 'USA - (PCS) DigiPH DigiPH', 'USA - Omnopoint Communications', 'USA - Iowa Wireless Services', 'USA - APC Sprint Spectrum', 'USA - Wireless 2000 Telephone', 'USA - CINGULAR Pacific Bell Wireless', 'USA - Western Wireless Voicestream', 'USA - Powertel', 'USA - Aerial Communications', 'United Kingdom - Virgin -23430', 'United Kingdom - Virgin (for 3510i & N-Gage)', 'United Kingdom - Cellnet', 'United Kingdom - One2One', 'United Kingdom - Manx Telecom Pronto GSM', 'United Kingdom - Guernsey Telecoms GSM', 'United Kingdom - Orange', 'United Kingdom - 3', 'United Kingdom - Tesco', 'United Kingdom - T-Mobile', 'United Kingdom - Vodafone', 'United Kingdom - O2', 'United Kingdom - Jersey Telecom GSM', 'Australia - Telstra Mobile Comms', 'Australia - Cable + Wireless Optus', 'Australia - Vodafone', 'New Zealand - Telecom NZ', 'New Zealand - Telstra', 'New Zealand - Vodafone');
store_network['Samsung']=new Array('Network provider not neccessary');
store_network['Siemens']=new Array('Network provider not neccessary');
store_network['Sony']=new Array('Network provider not neccessary');
store_network['Panasonic']=new Array('Network provider not neccessary');
store_network['Vitel']=new Array('Network provider not neccessary');


function populate(){
var box = document.step1.manufacturer;
var number = box.options[box.selectedIndex].value;
if (!number) return;
var list = store[number];
var box2 = document.step1.model;box2.options.length = 0;
for(i=0;i<list.length;i+=1){box2.options[i] = new Option(list[i],list[i]);}
var list2 = store_network[number];
var box3 = document.step1.network;box3.options.length = 0;
for(i=0;i<list2.length;i+=1){box3.options[i] = new Option(list2[i],list2[i]);}
}


function checkimei(form){
	var imei=form.imei.value;
	var email=form.email.value;
	var model=form.model.value;
	var country=form.manufacturer.value;
	var network=form.network.value;
		for(i=0;i<imei.length;i++){
		var num = imei.substring(i,i+1);
		if((num<"0"||num>"9")){
			alert("Invalid IMEI Entered");
			form.imei.focus();
			return false;}}
	if (imei == '' || imei.length < 15){
		alert("IMEI must be 15 digits");
		form.imei.focus();
	    	return false;}
	else if (model == 'none'){
	 alert("Please select a mobile phone to unlock");
		form.model.focus();
	    	return false;}
	else if (manufacturer == 'none'){
	 alert("Please select a manufacturer");
		form.manufacturer.focus();
	    	return false;}
	else if (network == 'none'){
	 alert("Please re-select the network that the phone is currently locked to");
		form.network.focus();
		populate();
	    	return false;}
	else if (network == ''){
	 alert("Please re-select the network that the phone is currently locked to");
		form.network.focus();
		populate();
	    	return false;}
       else if (email=='' || email.length<5){
              alert("Please enter a valid email address for us to send you the unlock code");
		form.email.focus();
	    	return false;}

	else return true;}

//-->