var networks = new Array();
networks['United Kingdom'] = new Array( "3 UK","Guernsey Telecoms GSM","Hutchinson 3G","Jersey Telecom GSM","Manx Telecom Pronto GSM","O2","Orange","T-Mobile UK","Tesco (for new models)","Tesco (for old models)","Virgin (for new models)","Virgin (other)","Vodafone UK" );
networks['U.S.A.'] = new Array( "Aerial Communications","APC Sprint Spectrum","AT&T","AT&T (for 3650 with IMEI 351102500xxxxxx)","BellSouth Mobility DCS","Cingular","Iowa Wireless Services","Pacific Bell Wireless","Powertel","T-Mobile","Tracfone","Western Wireless Voicestream","Wireless 2000 Telephone" );
networks['AF'] = new Array( "AWCC" );
networks['AGO'] = new Array( "Unitel" );
networks['Albania'] = new Array( "Albanian Mobile Comms","Vodafone" );
networks['Algeria'] = new Array( "Algerian Mobile Network","Djezzy" );
networks['Andorra'] = new Array( "S.T.A. MobilAnd" );
networks['ARG'] = new Array( "Port Hable" );
networks['Armenia'] = new Array( "ArmenTel" );
networks['Australia'] = new Array( "3","OneTel","Optus","Telstra Mobile Comms","Vodafone AU" );
networks['Austria'] = new Array( "3AT","Connect Austria One","MobilKom Austria A1","T-Mobile","Tele 2","Tele.ring" );
networks['Azerbaijan'] = new Array( "Acell Telekom B.M.","BKcell GSM 2000" );
networks['Bahrain'] = new Array( "Batelco" );
networks['Bangladesh'] = new Array( "Aktel","Grameen Phone","Sheba Telecom" );
networks['Belarus'] = new Array( "MTS","Velcom" );
networks['Belgium'] = new Array( "Base","Mobistar","Proximus" );
networks['BF'] = new Array( "CelTel" );
networks['BI'] = new Array( "Busafa","Spacetel" );
networks['BJ'] = new Array( "BBcom","Benincell","TLCL-Ben" );
networks['Bosnia Herzegovina'] = new Array( "Eronet","GSM BIH","Mobi's" );
networks['Botswana'] = new Array( "Mascom Wireless","Vista" );
networks['Brazil'] = new Array( "Claro GSM","Oi","Sercomtel","Telecom","TIM" );
networks['BT'] = new Array( "B-Mobile" );
networks['Bulgaria'] = new Array( "Globul","MobilTel AD" );
networks['Cambodia'] = new Array( "Camshin","Mobitel","SM" );
networks['Cameroon'] = new Array( "MTN","Orange" );
networks['Canada'] = new Array( "Fido","Microcell Connexions Inc","Rogers" );
networks['Cape Verde'] = new Array( "Cabo Verde Movel" );
networks['CD'] = new Array( "CelTel","Libertis" );
networks['China'] = new Array( "China Telecom GSM","China Unicom GSM","Liaoning PPTA" );
networks["Cote d'Ivoire"] = new Array( "Comstar Cellular Network","Orange","Telecel" );
networks['CRI'] = new Array( "ICE" );
networks['Croatia'] = new Array( "Croatian Telecoms Cronet","VIP" );
networks['CU'] = new Array( "C-Com" );
networks['Cyprus'] = new Array( "Cyprus Telecoms Authority" );
networks['Czech Republic'] = new Array( "EuroTel Praha","Oskar","T-mobile" );
networks['Darussalam'] = new Array( "DST Communications Brunei" );
networks['Denmark'] = new Array( "Debitel","Debitel (for new models)","Orange","Sonofon","Tele-Danmark Mobil","Telia Denmark" );
networks['Dominican Republic'] = new Array( "Orange Dominicana S.A." );
networks['Egypt'] = new Array( "MobiNil","Vodafone" );
networks['Estonia'] = new Array( "Estonian Mobile Telephone","RadioLinja Eesti","Tele 2" );
networks['Ethiopia'] = new Array( "Ethiopian Telecoms Auth." );
networks['Fiji'] = new Array( "Vodafone Fiji" );
networks['Finland'] = new Array( "2G","AMT","Finnet Group","Nokia","Radiolinja","Sonera Corporation","Telia Finland" );
networks['France'] = new Array( "Bouygtel Telecom","Orange FR","SFR" );
networks['FSM'] = new Array( "FSM Telecom" );
networks['GA'] = new Array( "CelTel","Libertis" );
networks['Georgia'] = new Array( "Geo 03","Geocell Limited","Magti GSM" );
networks['Germany'] = new Array( "E-Plus Mobilfunk","MobilCom","O2","Quam","T-Mobile","Vodafone" );
networks['Ghana'] = new Array( "Mobitel","OneToch","ScanCom" );
networks['Gibraltar'] = new Array( "Gibraltar Telecoms Gibtel" );
networks['GMB'] = new Array( "AfriCELL","GamCel" );
networks['GNQ'] = new Array( "GNQ01" );
networks['Greece'] = new Array( "Cosmote","Q-Telecom","Telestet","Vodafone" );
networks['Greenland'] = new Array( "Tele Greenland" );
networks['Guinea'] = new Array( "Sotelgui Lagui" );
networks['Hong Kong'] = new Array( "Hong Kong Telecom CSL","Hutchison Telecom","Mandarin Com. Sunday","New World PCS","P Plus Comm","Pacific Link","Peoples Telephone","SmarTone Mobile Comms" );
networks['Hungary'] = new Array( "Pannon GSM","Vodafone","Westel 900 GSM Mobile" );
networks['Iceland'] = new Array( "Iceland Telecom Siminn","Islandss","TAL hf","Viking" );
networks['India'] = new Array( "Aircel Digilink Essar Cellph.","Aircel Digilink Essar Cellph.","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bharti Cellular Telecom Airtel","Bircel Digilink Essar Cellph.","BPL USWest Cellular","BPL USWest Cellular","BPL USWest Cellular","BPL USWest Cellular","BPL USWest Cellular","BPL USWest Cellular","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","BSNL Mobile","Dolphin","Dolphin","Escotel","Escotel","Escotel Mobile Comms","Hutch","Hutch","Hutch","Hutch","Idea","Idea","IDEA","INA AIRTel","Ina Spice","Oasis","Orange","RPG MAA","Spice","Srinivas Cellcom","TATA Cellular","Usha Martin Tel. Command","Usha Martin Tel. Command","Usha Martin Tel. Command","Ushafon","Ushafone" );
networks['Indies'] = new Array( "BouygTel French West","Orange French West" );
networks['Indonesia'] = new Array( "IM3","Lippo Telkomsel","Pro XL","PT. SATelindo C","TelKomSel" );
networks['Iran'] = new Array( "Kish","TCI" );
networks['Iraq'] = new Array( "Iraq Telecom" );
networks['Ireland'] = new Array( "Meteor","o2 Ireland","Vodafone" );
networks['Israel'] = new Array( "Cellcom","JAWWAL","Orange" );
networks['Italy'] = new Array( "3","BLU","Telecom Italia Mobile TIM","Vodafone","Wind Telecomunicazioni" );
networks['Japan'] = new Array( "DoCoMo" );
networks['JM (Jamaica)'] = new Array( "Cable & Wireless","Digicel" );
networks['Jordan'] = new Array( "J.M.T.S Fastlink","MobCom" );
networks['Kazaksthan'] = new Array( "K-Mobile","KCELL" );
networks['KE'] = new Array( "KenCell","Safaricom" );
networks['Kuwait'] = new Array( "Mobile Telecoms MTCNet","Wataniya" );
networks['Kyrgyz Republic'] = new Array( "Bitel" );
networks['Lao'] = new Array( "ETLMNW","Lao Shinawatra Telecom","LatMil","Tango" );
networks['Latvia'] = new Array( "Latvian Mobile Tel.","Tele 2" );
networks['Lebanon'] = new Array( "FTML Cellis","LibanCell" );
networks['Lesotho'] = new Array( "Ezi Cel","VCL Comms" );
networks['Liberia'] = new Array( "Lonestar" );
networks['Lithuania'] = new Array( "Omnitel","Tele 2","UAB Bite GSM" );
networks['Luxembourg'] = new Array( "Millicom Tango GSM","P+T LUXGSM" );
networks['Macau'] = new Array( "C.T.M. TELEMOVEL+" );
networks['Macedonia'] = new Array( "MobiMak","MTS AD" );
networks['Madagascar'] = new Array( "Madacom","Sacel","SMM Antaris" );
networks['Malawi'] = new Array( "CelTel","Telekom Network Callpoint" );
networks['Malaysia'] = new Array( "Binariang","Celcom","DiGi Telecommunications","Maxis","Telekom Cellular TM Touch","TimeCel Wireless Adam" );
networks['Malta'] = new Array( "Go Mobile","Vodafone" );
networks['Marocco'] = new Array( "Itissalat Al-Maghrib IAM","Meditel" );
networks['Mauritius'] = new Array( "Cellplus Mobile Comms","Emtel" );
networks['ML'] = new Array( "Ikatel","Matitel" );
networks['MN'] = new Array( "MobiCom" );
networks['Moldova'] = new Array( "Moldcell","Voxtel" );
networks['MOZ'] = new Array( "mCel" );
networks['MR'] = new Array( "Mattel" );
networks['MV'] = new Array( "DHI Mobile" );
networks['Namibia'] = new Array( "MTC" );
networks['NE'] = new Array( "CelTel" );
networks['Netherlands'] = new Array( "KPN","Orange","T-Mobile","Telfort","Vodafone" );
networks['New Caledonia'] = new Array( "Mobilis" );
networks['New Zealand'] = new Array( "Vodafone" );
networks['NG'] = new Array( "Econet","MTN","Nitel" );
networks['Norway'] = new Array( "NetCom GSM","Telenor Mobil" );
networks['Oman'] = new Array( "General Telecoms" );
networks['Other'] = new Array( "FL1","FT-GSM","KALL","Montel","MPTGSM","OASIS","OMT","Orange","Tango","Telecom","TSTT" );
networks['Pakistan'] = new Array( "Ufone" );
networks['Papua New Guinea'] = new Array( "Pacific Mobile Comms" );
networks['Philippines'] = new Array( "Globe Telecom","Isla Comms","Smart Communications","Sun Cellular" );
networks['Poland'] = new Array( "ERA GSM","IDEA Centertel","Polkomtel PLUS GSM" );
networks['Polynesia'] = new Array( "Vini French" );
networks['Portugal'] = new Array( "Optimus Telecom.","Telecom Moveis Nac. TMN","Vodafone" );
networks['PRK'] = new Array( "Sun KP" );
networks['Qatar'] = new Array( "QATARNET" );
networks['RC'] = new Array( "CellCo GSM","CelTel" );
networks['Romania'] = new Array( "Cosmorom","MobiFon CONNEX GSM","Mobil Rom DIALOG" );
networks['Russia'] = new Array( "BeeLine","Don Telecom","Kuban GSM","Megafon","MTS Moscow","New Telephone Company","North Caucasian GSM","Siberian Cellular","Uraltel","Zao Smarts" );
networks['Rwanda'] = new Array( "Rwandacell" );
networks['Saudi Arabia'] = new Array( "Electronics App' Est. EAE","Ministry of PTT Al Jawal" );
networks['Senegal'] = new Array( "Sentel","Sonatel ALIZE" );
networks['Seychelles'] = new Array( "AIRTEL","Seychelles Cellular Services" );
networks['Singapore'] = new Array( "M1-3GSM","MobileOne Asia","Sing. Tel. GSM 1800","Sing. Tel. GSM 900","StarHub" );
networks['Slovak Republic'] = new Array( "EuroTel GSM","Orange GSM" );
networks['Slovenia'] = new Array( "Si VEGA 070","Si-GSM","Si.mobil" );
networks['SOM'] = new Array( "Barakaat","Telsom" );
networks['South Africa'] = new Array( "Cell C","MTN South","Vodacom" );
networks['Spain'] = new Array( "Amena","Movistar","Telefonica Movistar","Vodafone","Xfera" );
networks['SR'] = new Array( "ICMS","TeleG" );
networks['Sri Lanka'] = new Array( "CellTel","MTN Networks Dialog GSM" );
networks['SRR Reunion'] = new Array( "Societe Reunionnaise" );
networks['STP'] = new Array( "CSTMovel" );
networks['Sudan'] = new Array( "Mobile Telephone Company" );
networks['Sweden'] = new Array( "3","Comviq GSM","Orange","Telia Mobitel","Vodafone" );
networks['Switzerland'] = new Array( "Orange","Sunrise","Swisscom NATEL" );
networks['Syria'] = new Array( "94","MOBILE Syrian Telecom Est.","SyriaTel","SyriaTel" );
networks['SZ'] = new Array( "Swazi MTN" );
networks['Taiwan'] = new Array( "Chunghwa Telecom","Far EasTone Telecoms","KG Telecom","Mobitai Communications","Pacific Cellular TWNGSM","TransAsia Telecoms","TUNTEX Telecom" );
networks['Tajikistan'] = new Array( "TajikTel" );
networks['Tanzania'] = new Array( "CelTel","Mobitel","Tritel","Zantel" );
networks['TC'] = new Array( "CelTel" );
networks['TD'] = new Array( "Libertis" );
networks['TeleCel'] = new Array( "GAB" );
networks['Thailand'] = new Array( "Advanced Info Service AIS","DTotal Access Worldphone","GSM 1800","Orange","Orange" );
networks['TJK'] = new Array( "MLT" );
networks['Togo'] = new Array( "Togo Telecom TOGO CELL" );
networks['ton'] = new Array( "O-Call" );
networks['Tunisia'] = new Array( "Tunisiana","Tunisie Telecom Tunicell" );
networks['Turkey'] = new Array( "Aria","Aycell","TELSIM","Turkcell" );
networks['Uganda'] = new Array( "Celtel Cellular","MTN Uganda","UTL Telecel" );
networks['Ukraine'] = new Array( "Golden Telecom","Kyivstar GSM","Ukrainian Mobile Comms","Ukrainian Radio Systems" );
networks['United Arab Emirates'] = new Array( "UAE ETISALAT-G1","UAE ETISALAT-G2" );
networks['Uzbekistan'] = new Array( "Buztel","Coscom","Daewoo Unitel","UZD","Uzmacom","Uzmacom" );
networks['Venezuela'] = new Array( "Digitel","Infonet" );
networks['Vietnam'] = new Array( "Mobifone","Vinaphone" );
networks['VUT'] = new Array( "Smile" );
networks['Yugoslavia'] = new Array( "03","MOBTEL","Monet","ProMonte GSM" );
networks['Zambia'] = new Array( "Celtel" );
networks['Zimbabwe'] = new Array( "Econet","NET*ONE","Telecel" );
function writeCountries() {
var country;
for(country in networks) {
document.writeln("");
}
};
function setNetwork() {
window.document.getElementById('priceline').innerHTML = "Please choose your country and carrier";
var currentcountry = window.document.getElementById('countrylist').value;
var n;
var newnetworks = "";
window.document.getElementById('networklist').innerHTML = newnetworks;
};
function resizeImgs(last) {
var i;
var width;
var ratio;
var height;
var maxwidth=100;
for(i=1;i<=last;i++) {
width = window.document.getElementById('image'+i).width;
if(width > maxwidth) {
height = window.document.getElementById('image'+i).height;
ratio = height/width;
window.document.getElementById('image'+i).width = maxwidth;
window.document.getElementById('image'+i).height = maxwidth*ratio;
}
}
};
function addCarrier(carrierID,price,carrierName) {
carriers.push(carrierID);
carriersName.push(carrierName);
carriersprice.push(price);
};
function setPrice() {
var RRPs = new Array();
RRPs['BaseRate'] = 0.00;
RRPs['3 UK'] = 19.99;
RRPs['Cingular'] = 14.99;
RRPs['T-Mobile'] = 19.99;
RRPs['Vodafone UK'] = 9.99;
RRPs['Vodafone AU'] = 9.99;
RRPs['Fido'] = 4.99;
RRPs['o2 Ireland'] = 4.99;
RRPs['Orange FR'] = 4.99;
RRPs['Rogers'] = 4.99;
RRPs['T-Mobile UK'] = 0.00;
var RRPbase = 0.00;
var RRPmake = 0.00;
var currentNet = window.document.getElementById('networkselected').value;
var defaultprice;
var setprice = false;
var showprice;
var RRPnet;
RRPnet = RRPs[currentNet];
for (var k = 0; k < carriers.length ; k++) {
if(carriersName[k] == currentNet && carriersprice[k] != 0) {
showprice = carriersprice[k];
//window.document.getElementById('priceline').innerHTML = "£"+carriersprice[k];
// window.document.priceform.price.value = carriersprice[k];
setprice = true;
window.document.getElementById('field_carrierid').value = carriers[k];
} else if(carriers[k] == 1) {
defaultprice = carriersprice[k];
if(!defaultprice || defaultprice == '0' || defaultprice == '0.00') defaultprice ='9.99';
}
}
if(!setprice) {
showprice = defaultprice;
//window.document.getElementById('priceline').innerHTML = "£"+defaultprice;
// window.document.priceform.price.value = defaultprice;
window.document.getElementById('field_carrierid').value = 1;
}
if(!RRPnet) RRPnet=0.00;
var RRPtot = RRPbase+RRPnet+RRPmake;
var discount = RRPtot-showprice;
window.document.getElementById('priceline').innerHTML = "RRP: £"+RRPtot.toFixed(2)+"
Your Price: £"+showprice+" (£"+discount.toFixed(2)+" savings)";
};
var networksNew = new Array();
networksNew['Australia'] = new Array("3");
networksNew['Brasil'] = new Array("TIM","Vivo");
networksNew['Canada'] = new Array("Fido","Rogers","Red");
networksNew['France'] = new Array("Bouygues Telecom","Orange","SFR");
networksNew['Israel'] = new Array("Cellcom","Orange");
networksNew['Norway'] = new Array("Netcom","Telenor");
networksNew['Portugal'] = new Array("Optimus","Vodafone");
networksNew['Slovakia'] = new Array("T-Mobile");
networksNew['Spain'] = new Array("Amena","Movistar","Orange","Vodafone","Yoigo");
networksNew['United Kingdom'] = new Array("Vodafone","T-Mobile");
networksNew['United States of America'] = new Array("AT&T","T-Mobile");
var pricesNew = new Array();
pricesNew['Australia'] = new Array("26");
pricesNew['Brasil'] = new Array("12","17");
pricesNew['Canada'] = new Array("11","11","11");
pricesNew['France'] = new Array("11","11","32");
pricesNew['Israel'] = new Array("53","53");
pricesNew['Norway'] = new Array("15","15");
pricesNew['Portugal'] = new Array("53","53");
pricesNew['Slovakia'] = new Array("71");
pricesNew['Spain'] = new Array("39","30","39","53","40");
pricesNew['United Kingdom'] = new Array("15","34.99");
pricesNew['United States of America'] = new Array("9","19");
function listNetworks(country) {
document.getElementById('networklist').innerHTML = '';
for ( var i in networksNew[country]) {
document.getElementById('networklist').innerHTML = document.getElementById('networklist').innerHTML+'\n';
}
}