function AllPhoneSearchTwo(f, rp) { this.a = 'mobile-phone-finder'; this.f = f; this.rp = rp; this.nf = (this.f.network) ? this.f.network : ''; this.pf = this.f.phone; this.d = new Array(); this.d['BlackBerryBoldTouch9930'] = new Array(); this.d['BlackBerryBoldTouch9930'][this.d['BlackBerryBoldTouch9930'].length] = new Array('', '/mobile-phones//contract-mobile-phones/blackberry-bold-touch-9930.php/'); this.d['BlackBerryCurve9380'] = new Array(); this.d['BlackBerryCurve9380'][this.d['BlackBerryCurve9380'].length] = new Array('', '/mobile-phones//contract-mobile-phones/blackberry-curve-9380.php/'); this.d['HuaweiAscendP1S'] = new Array(); this.d['HuaweiAscendP1S'][this.d['HuaweiAscendP1S'].length] = new Array('', '/mobile-phones//contract-mobile-phones/huawei-ascend-p1-s.php/'); this.d['LGOptimus2'] = new Array(); this.d['LGOptimus2'][this.d['LGOptimus2'].length] = new Array('', '/mobile-phones//contract-mobile-phones/lg-optimus-2.php/'); this.d['LGPrada3.0'] = new Array(); this.d['LGPrada3.0'][this.d['LGPrada3.0'].length] = new Array('', '/mobile-phones//contract-mobile-phones/lg-prada-3.0.php/'); this.d['LGVirgo'] = new Array(); this.d['LGVirgo'][this.d['LGVirgo'].length] = new Array('', '/mobile-phones//contract-mobile-phones/lg-virgo.php/'); this.d['MotorolaMotoluxe'] = new Array(); this.d['MotorolaMotoluxe'][this.d['MotorolaMotoluxe'].length] = new Array('', '/mobile-phones//contract-mobile-phones/motorola-motoluxe.php/'); this.d['MotorolaWilder'] = new Array(); this.d['MotorolaWilder'][this.d['MotorolaWilder'].length] = new Array('', '/mobile-phones//contract-mobile-phones/motorola-wilder.php/'); this.d['MotorolaZN5'] = new Array(); this.d['MotorolaZN5'][this.d['MotorolaZN5'].length] = new Array('', '/mobile-phones//contract-mobile-phones/motorola-zn5.php/'); this.d['NokiaLumia710'] = new Array(); this.d['NokiaLumia710'][this.d['NokiaLumia710'].length] = new Array('', '/mobile-phones//contract-mobile-phones/nokia-lumia-710.php/'); this.d['NokiaN75'] = new Array(); this.d['NokiaN75'][this.d['NokiaN75'].length] = new Array('', '/mobile-phones//contract-mobile-phones/nokia-n75.php/'); this.d['NokiaN77'] = new Array(); this.d['NokiaN77'][this.d['NokiaN77'].length] = new Array('', '/mobile-phones//contract-mobile-phones/nokia-n77.php/'); this.d['NokiaN9'] = new Array(); this.d['NokiaN9'][this.d['NokiaN9'].length] = new Array('', '/mobile-phones//contract-mobile-phones/nokia-n9.php/'); this.d['OrangeStockholm'] = new Array(); this.d['OrangeStockholm'][this.d['OrangeStockholm'].length] = new Array('', '/mobile-phones//contract-mobile-phones/orange-stockholm.php/'); this.d['SamsungGalaxyAcePlus'] = new Array(); this.d['SamsungGalaxyAcePlus'][this.d['SamsungGalaxyAcePlus'].length] = new Array('', '/mobile-phones//contract-mobile-phones/samsung-galaxy-ace-plus.php/'); this.d['SamsungGalaxyR'] = new Array(); this.d['SamsungGalaxyR'][this.d['SamsungGalaxyR'].length] = new Array('', '/mobile-phones//contract-mobile-phones/samsung-galaxy-r.php/'); this.d['SamsungGalaxySWiFi3.6'] = new Array(); this.d['SamsungGalaxySWiFi3.6'][this.d['SamsungGalaxySWiFi3.6'].length] = new Array('', '/mobile-phones//contract-mobile-phones/samsung-galaxy-s-wifi-3.6.php/'); this.d['SamsungGalaxyXcover'] = new Array(); this.d['SamsungGalaxyXcover'][this.d['SamsungGalaxyXcover'].length] = new Array('', '/mobile-phones//contract-mobile-phones/samsung-galaxy-xcover.php/'); this.d['SonyEricssonK550iWhite'] = new Array(); this.d['SonyEricssonK550iWhite'][this.d['SonyEricssonK550iWhite'].length] = new Array('', '/mobile-phones//contract-mobile-phones/sony-ericsson-k550i-white.php/'); this.d['SonyEricssonK800iBrown'] = new Array(); this.d['SonyEricssonK800iBrown'][this.d['SonyEricssonK800iBrown'].length] = new Array('', '/mobile-phones//contract-mobile-phones/sony-ericsson-k800i-brown.php/'); this.d['SonyEricssonT700Red'] = new Array(); this.d['SonyEricssonT700Red'][this.d['SonyEricssonT700Red'].length] = new Array('', '/mobile-phones//contract-mobile-phones/sony-ericsson-t700-red.php/'); this.d['SonyEricssonT700Silver'] = new Array(); this.d['SonyEricssonT700Silver'][this.d['SonyEricssonT700Silver'].length] = new Array('', '/mobile-phones//contract-mobile-phones/sony-ericsson-t700-silver.php/'); this.d['ZTELibra'] = new Array(); this.d['ZTELibra'][this.d['ZTELibra'].length] = new Array('', '/mobile-phones//contract-mobile-phones/zte-libra.php/'); this.d['ZTESkate'] = new Array(); this.d['ZTESkate'][this.d['ZTESkate'].length] = new Array('', '/mobile-phones//contract-mobile-phones/zte-skate.php/'); this.h = new Array(); this.h[this.h.length] = new Array('BlackBerry Bold Touch 9930', 'BlackBerryBoldTouch9930'); this.h[this.h.length] = new Array('BlackBerry Curve 9380', 'BlackBerryCurve9380'); this.h[this.h.length] = new Array('Huawei Ascend P1 S', 'HuaweiAscendP1S'); this.h[this.h.length] = new Array('LG Optimus 2', 'LGOptimus2'); this.h[this.h.length] = new Array('LG Prada 3.0', 'LGPrada3.0'); this.h[this.h.length] = new Array('LG Virgo', 'LGVirgo'); this.h[this.h.length] = new Array('Motorola Motoluxe', 'MotorolaMotoluxe'); this.h[this.h.length] = new Array('Motorola Wilder', 'MotorolaWilder'); this.h[this.h.length] = new Array('Motorola ZN5', 'MotorolaZN5'); this.h[this.h.length] = new Array('Nokia Lumia 710', 'NokiaLumia710'); this.h[this.h.length] = new Array('Nokia N75', 'NokiaN75'); this.h[this.h.length] = new Array('Nokia N77', 'NokiaN77'); this.h[this.h.length] = new Array('Nokia N9', 'NokiaN9'); this.h[this.h.length] = new Array('Orange Stockholm', 'OrangeStockholm'); this.h[this.h.length] = new Array('Samsung Galaxy Ace Plus', 'SamsungGalaxyAcePlus'); this.h[this.h.length] = new Array('Samsung Galaxy R', 'SamsungGalaxyR'); this.h[this.h.length] = new Array('Samsung Galaxy S WiFi 3.6', 'SamsungGalaxySWiFi3.6'); this.h[this.h.length] = new Array('Samsung Galaxy Xcover', 'SamsungGalaxyXcover'); this.h[this.h.length] = new Array('Sony Ericsson K550i White', 'SonyEricssonK550iWhite'); this.h[this.h.length] = new Array('Sony Ericsson K800i Brown', 'SonyEricssonK800iBrown'); this.h[this.h.length] = new Array('Sony Ericsson T700 Red', 'SonyEricssonT700Red'); this.h[this.h.length] = new Array('Sony Ericsson T700 Silver', 'SonyEricssonT700Silver'); this.h[this.h.length] = new Array('ZTE Libra', 'ZTELibra'); this.h[this.h.length] = new Array('ZTE Skate', 'ZTESkate'); this.InitHandsets(); // this.ChangeNetwork(this.nf.value); } AllPhoneSearchTwo.prototype.ChangeHandset = function(hs) { for (i = this.nf.options.length; i >= 0; i--) { this.nf.options[i] = null; } // Add the option to select the handset/network this.nf.options[0] = new Option(((hs != "") ? "Now choose Network..." : "...then choose Network"), ""); // If a network is selected, add the options if (hs != "" && this.d[hs]) { // this.nf.options[this.nf.options.length] = new Option('all', 'all'); for (i = 0; i < this.d[hs].length; i++) { this.nf.options[this.nf.options.length] = new Option(this.d[hs][i][0], this.d[hs][i][1]); } if (this.ps > 0) this.nf.selectedIndex = this.ps; if (this.pf != '') { this.pf.value = hs; } } } AllPhoneSearchTwo.prototype.ChangeNetwork = function(nw) { var i; // Remove all the options out of the phone field for (i = this.pf.options.length; i >= 0; i--) { this.pf.options[i] = null; } // Add the option to select the handset/network this.pf.options[0] = new Option(((nw != "") ? "Choose Handset first..." : "...then choose Network"), ""); // If a network is selected, add the options if (nw != "" && this.d[nw]) { for (i = 0; i < this.data[network].length; i++) { this.pf.options[this.pf.options.length] = new Option(this.d[nw][i][0], this.d[nw][i][1]); } if (this.ps > 0) this.pf.selectedIndex = this.ps; if (this.nf != '') { this.nf.value = nw; } } } AllPhoneSearchTwo.prototype.InitHandsets = function() { for (i = this.pf.options.length; i >= 0; i--) { this.pf.options[i] = null; } // Add the option to select the handset/network this.pf.options[0] = new Option("Choose Handset first...", ""); for (i = 0; i < this.h.length; i++) { this.pf.options[this.pf.options.length] = new Option(this.h[i][0], this.h[i][1]); } } AllPhoneSearchTwo.prototype.GoTo = function(url) { if (url != "") { document.location.href = url; } }