// JavaScript Document
function UbnMain(pageUrl){
 var country = document.getElementById('Country'), network = document.getElementById('Network'), brand = document.getElementById('Brand'), model = document.getElementById('Model');
  if(country.selectedIndex && network.selectedIndex && brand.selectedIndex && model.selectedIndex) {
  document.location = pageUrl+country.options[country.selectedIndex].value+'/'+network.options[network.selectedIndex].value+'/'+brand.options[brand.selectedIndex].value+'/'+model.options[brand.selectedIndex].value+'.html' } 
  else { alert ('Please Select a Mobile Network and Phone Model'); } }

function UbnCountry(pageUrl){
 var network = document.getElementById('Network'), brand = document.getElementById('Brand'), model = document.getElementById('Model');
 if(network.selectedIndex && brand.selectedIndex && model.selectedIndex) {
 document.location = pageUrl+network.options[network.selectedIndex].value+'/'+brand.options[brand.selectedIndex].value+'/'+model.options[brand.selectedIndex].value+'.html' } 
 else { alert ('Please Select a Network and Phone Model'); } }

function UbnNetwork(pageUrl){
 var brand = document.getElementById('Brand'), model = document.getElementById('Model');
 if(brand.selectedIndex && model.selectedIndex) {
 document.location = pageUrl+brand.options[brand.selectedIndex].value+'/'+model.options[brand.selectedIndex].value+'.html' } 
 else { alert ('Please Select Phone Model'); } }

function UbnBrand(pageUrl){
 var brand = model = document.getElementById('Model');
 if(model.selectedIndex) {
 document.location = pageUrl+model.options[brand.selectedIndex].value+'.html' } 
 else { alert ('Please Select a Phone Model'); } }

function NetworkCp(pageUrl){
 var country = document.getElementById('Country'), network = document.getElementById('Network');
  if(country.selectedIndex && network.selectedIndex) {
  document.location = pageUrl+country.options[country.selectedIndex].value+'/'+network.options[network.selectedIndex].value+'.html' } 
  else { alert ('Please Select a Mobile Network'); } }

function Gtcnp(pageUrl){
 var network = document.getElementById('Network');
  if(network.selectedIndex) {
    document.location = pageUrl+network.options[network.selectedIndex].value+'' }
		else { alert ('Please Select a Mobile Network'); } }
		
function Gtnbp(pageUrl){
 var brand = document.getElementById('Brand');
  if(brand.selectedIndex) {
    document.location = pageUrl+brand.options[brand.selectedIndex].value+'' }
		else { alert ('Please Select a Phone Brand'); } }
		
function Gtpprl(pageUrl){
 var brand = document.getElementById('Brand'), model = document.getElementById('Model');
  if(brand.selectedIndex && model.selectedIndex) {
    document.location = pageUrl+brand.options[brand.selectedIndex].value+'/'+model.options[model.selectedIndex].value+'.html' } 
		else { alert ('Please Select a Brand and PhoneModel'); } }

function Gtbp(pageUrl){
 var brand = document.getElementById('Brand');
  if(brand.selectedIndex) {
    document.location = pageUrl+brand.options[brand.selectedIndex].value+'' }
		else { alert ('Please Select a Phone Brand'); } }
