

	function mostraImgiphone(id,img) {
		var div;
		div = document.getElementById(id);
		if (div.style.display == "none") {
			document.getElementById(id).style.display = "block";
			document.getElementById(img).src = "img/setaCima.gif";
		} else {
			document.getElementById(id).style.display = "none";
			if (img.indexOf("links") == "4" ) {
				document.getElementById(img).src = "img/setaBaixo.gif";
			} else {
				document.getElementById(img).src = "img/setaBaixo.gif";
			}
		}
	}
	function escondeiphone(campo,imagem) {
		var div; div = document.getElementById(campo);
		if (div.style.display == "block") {
			document.getElementById(campo).style.display = "none";
			document.getElementById(imagem).src = "img/setaBaixo.gif";
		}
	}
	
function octsp60(){
valor = document.formOiContaIphone.oct60Sp.value;
if(valor =="1"){
	// document.getElementById("octsp60resultTot").innerHTML = "R$ 81,92";
	// document.getElementById("octsp60resultTot").style.color = "black";
	
	document.getElementById("octsp60resultTot").innerHTML = "R$ 88,80";
	document.getElementById("octsp60resultTot").style.color = "black";
	}
if(valor =="2"){
	// document.getElementById("octsp60resultTot").innerHTML = "R$ 110,82";
	// document.getElementById("octsp60resultTot").style.color = "black";
	
	document.getElementById("octsp60resultTot").innerHTML = "R$ 128,80";
	document.getElementById("octsp60resultTot").style.color = "black";
	}
if(valor =="3"){
	// document.getElementById("octsp60resultTot").innerHTML = "R$ 144,82";
	// document.getElementById("octsp60resultTot").style.color = "black";
	
	document.getElementById("octsp60resultTot").innerHTML = "R$ 168,80";
	document.getElementById("octsp60resultTot").style.color = "black";
	}	
if(valor ==""){
	//document.getElementById("octsp60result").innerHTML = "Selecione<br>pacote de<br>dados";
	//document.getElementById("octsp60result").style.color = "#a1a1a1";
	
	document.getElementById("octsp60resultTot").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("octsp60resultTot").style.color = "#a1a1a1";
	}	

	}
function octsp110(){
	valor = document.formOiContaIphone.oct110Sp.value;
	if(valor =="1"){
		document.getElementById("octsp110result").innerHTML = "R$ 50,92";
		document.getElementById("octsp110result").style.color = "black";
		
		document.getElementById("octsp110resultTot").innerHTML = "R$ 140,82";
		document.getElementById("octsp110resultTot").style.color = "black";
		}
	if(valor =="2"){
		document.getElementById("octsp110result").innerHTML = "R$ 84,92";
		document.getElementById("octsp110result").style.color = "black";
		
		document.getElementById("octsp110resultTot").innerHTML = "R$ 174,82";
		document.getElementById("octsp110resultTot").style.color = "black";
		}
	if(valor ==""){
		document.getElementById("octsp110result").innerHTML = "Selecione<br>pacote de<br>dados";
		document.getElementById("octsp110result").style.color = "#a1a1a1";
		
		document.getElementById("octsp110resultTot").innerHTML = "Selecione<br>pacote de<br>dados";
		document.getElementById("octsp110resultTot").style.color = "#a1a1a1";
		}	

	}
	
function octsp220(){
	valor = document.formOiContaIphone.oct220Sp.value;
	if(valor =="1"){
		document.getElementById("octsp220result").innerHTML = "R$ 50,92";
		document.getElementById("octsp220result").style.color = "black";
		
		document.getElementById("octsp220resultTot").innerHTML = "R$ 193,82";
		document.getElementById("octsp220resultTot").style.color = "black";
		}
	if(valor =="2"){
		document.getElementById("octsp220result").innerHTML = "R$ 84,92";
		document.getElementById("octsp220result").style.color = "black";
		
		document.getElementById("octsp220resultTot").innerHTML = "R$ 227,82";
		document.getElementById("octsp220resultTot").style.color = "black";
		}
	if(valor ==""){
		document.getElementById("octsp220result").innerHTML = "Selecione<br>pacote de<br>dados";
		document.getElementById("octsp220result").style.color = "#a1a1a1";
		
		document.getElementById("octsp220resultTot").innerHTML = "Selecione<br>pacote de<br>dados";
		document.getElementById("octsp220resultTot").style.color = "#a1a1a1";
		}	

	}	
	

function OiFamilia300(){
valor = document.formOiFamilia.Familia300.value;
if(valor =="1"){
	document.getElementById("OiFamiliavalorDados300").innerHTML = "R$ 22,02";
	document.getElementById("OiFamiliavalorDados300").style.color = "black";
	
	document.getElementById("OiFamiliavalorTotal300").innerHTML = "R$ 178,92";
	document.getElementById("OiFamiliavalorTotal300").style.color = "black";
	}
if(valor =="2"){
	document.getElementById("OiFamiliavalorDados300").innerHTML = "R$ 50,92";
	document.getElementById("OiFamiliavalorDados300").style.color = "black";
	
	document.getElementById("OiFamiliavalorTotal300").innerHTML = "R$ 207,82";
	document.getElementById("OiFamiliavalorTotal300").style.color = "black";
	}
if(valor =="3"){
	document.getElementById("OiFamiliavalorDados300").innerHTML = "R$ 84,92";
	document.getElementById("OiFamiliavalorDados300").style.color = "black";
	
	document.getElementById("OiFamiliavalorTotal300").innerHTML = "R$ 241,82";
	document.getElementById("OiFamiliavalorTotal300").style.color = "black";
	}	
if(valor ==""){
	document.getElementById("OiFamiliavalorDados300").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("OiFamiliavalorDados300").style.color = "#a1a1a1";
	
	document.getElementById("OiFamiliavalorTotal300").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("OiFamiliavalorTotal300").style.color = "#a1a1a1";
	}	

}
function OiFamilia400(){
valor = document.formOiFamilia.Familia400.value;
if(valor =="1"){
	document.getElementById("OiFamiliavalorDados400").innerHTML = "R$ 50,92";
	document.getElementById("OiFamiliavalorDados400").style.color = "black";
	
	document.getElementById("OiFamiliavalorTotal400").innerHTML = "R$ 292,82";
	document.getElementById("OiFamiliavalorTotal400").style.color = "black";
	}
if(valor =="2"){
	document.getElementById("OiFamiliavalorDados400").innerHTML = "R$ 84,92";
	document.getElementById("OiFamiliavalorDados400").style.color = "black";
	
	document.getElementById("OiFamiliavalorTotal400").innerHTML = "R$ 326,82";
	document.getElementById("OiFamiliavalorTotal400").style.color = "black";
	}	
if(valor ==""){
	document.getElementById("OiFamiliavalorDados400").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("OiFamiliavalorDados400").style.color = "#a1a1a1";
	
	document.getElementById("OiFamiliavalorTotal400").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("OiFamiliavalorTotal400").style.color = "#a1a1a1";
	}	

}

function FOiVontadeVoz(){
valor = document.formOiAVontade.OiVontadeVoz.value;
if(valor =="1"){
	document.getElementById("OiVontadeVozTotal").innerHTML = "R$ 169,80";
	document.getElementById("OiVontadeVozTotal").style.color = "black";
	}
if(valor =="2"){
	document.getElementById("OiVontadeVozTotal").innerHTML = "R$ 209,80";
	document.getElementById("OiVontadeVozTotal").style.color = "black";
	}
if(valor ==""){
	document.getElementById("OiVontadeVozTotal").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("OiVontadeVozTotal").style.color = "#a1a1a1";
	}		
}

function FOiVontade220(){
valor = document.formOiAVontade.OiVontade220.value;
if(valor =="1"){
	document.getElementById("OiVontadeTotal220").innerHTML = "R$ 222,80";
	document.getElementById("OiVontadeTotal220").style.color = "black";
	}
if(valor =="2"){
	document.getElementById("OiVontadeTotal220").innerHTML = "R$ 262,80";
	document.getElementById("OiVontadeTotal220").style.color = "black";
	}
if(valor ==""){
	document.getElementById("OiVontadeTotal220").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("OiVontadeTotal220").style.color = "#a1a1a1";
	}		
}

function ofVa(){
valor = document.formOiAVontade.of300.value;

if(valor =="1"){
	document.getElementById("OiFamiliaVontade300Total").innerHTML = "R$ 196,80";
	document.getElementById("OiFamiliaVontade300Total").style.color = "black";
	}
if(valor =="2"){
	document.getElementById("OiFamiliaVontade300Total").innerHTML = "R$ 236,80";
	document.getElementById("OiFamiliaVontade300Total").style.color = "black";
	}
if(valor =="3"){
	document.getElementById("OiFamiliaVontade300Total").innerHTML = "R$ 276,80";
	document.getElementById("OiFamiliaVontade300Total").style.color = "black";
	}	
if(valor ==""){
	document.getElementById("OiFamiliaVontade300Total").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("OiFamiliaVontade300Total").style.color = "#a1a1a1";
	}
}
function ofVb(){
valor = document.formOiAVontade.ofVbEs.value;
if(valor =="1"){
	document.getElementById("ofVbTotal").innerHTML = "R$ 311,80";
	document.getElementById("ofVbTotal").style.color = "black";
	}
if(valor =="2"){
	document.getElementById("ofVbTotal").innerHTML = "R$ 351,80";
	document.getElementById("ofVbTotal").style.color = "black";
	}
if(valor ==""){
	document.getElementById("ofVbTotal").innerHTML = "Selecione<br>pacote de<br>dados";
	document.getElementById("ofVbTotal").style.color = "#a1a1a1";
	}
}


	function show(obj) {
		no = obj.options[obj.selectedIndex].value;
		count = obj.options.length;
	for(i=1;i<count;i++)
		document.getElementById('modeloDiv'+i).style.display = "none";
	if(no>0)
		document.getElementById('modeloDiv'+no).style.display = "block";
	}
	
	function show2(obj) {
		no = obj.options[obj.selectedIndex].value;
		count = obj.options.length;
	for(i=1;i<count;i++)
		document.getElementById('modeloDivb'+i).style.display = "none";
	if(no>0)
		document.getElementById('modeloDivb'+no).style.display = "block";
	}
	function show3(obj) {
		no = obj.options[obj.selectedIndex].value;
		count = obj.options.length;
	for(i=1;i<count;i++)
		document.getElementById('modeloDivc'+i).style.display = "none";
	if(no>0)
		document.getElementById('modeloDivc'+no).style.display = "block";
	}

function FOiVontadeVozDadosA(){
	valor = document.OvVD.OiVontadeEDadosA.value;
		if(valor =="1"){
			document.getElementById("OiVontadeVozDadosATotal").innerHTML = "R$ 235,82";
			document.getElementById("OiVontadeVozDadosATotal").style.color = "black";
		}
		if(valor =="2"){
			document.getElementById("OiVontadeVozDadosATotal").innerHTML = "R$ 269,82";
			document.getElementById("OiVontadeVozDadosATotal").style.color = "black";
		}
		if(valor ==""){
			document.getElementById("OiVontadeVozDadosATotal").innerHTML = "Selecione<br>pacote de<br>dados";
			document.getElementById("OiVontadeVozDadosATotal").style.color = "#a1a1a1";
		}		
}

function F_OvD220(){
	valor = document.OvVD.OvD220.value;
		if(valor =="1"){
			document.getElementById("OvD220Total").innerHTML = "R$ 288,82";
			document.getElementById("OvD220Total").style.color = "black";
		}
		if(valor =="2"){
			document.getElementById("OvD220Total").innerHTML = "R$ 322,82";
			document.getElementById("OvD220Total").style.color = "black";
		}
		if(valor ==""){
			document.getElementById("OvD220Total").innerHTML = "Selecione<br>pacote de<br>dados";
			document.getElementById("OvD220Total").style.color = "#a1a1a1";
		}		
}

function F_OvD300(){
	valor = document.OvVD.of300.value;
		if(valor =="1"){
			document.getElementById("OvD300Total").innerHTML = "R$ 273,92";
			document.getElementById("OvD300Total").style.color = "black";
		}
		if(valor =="2"){
			document.getElementById("OvD300Total").innerHTML = "R$ 302,82";
			document.getElementById("OvD300Total").style.color = "black";
		}
		if(valor =="3"){
			document.getElementById("OvD300Total").innerHTML = "R$ 336,82";
			document.getElementById("OvD300Total").style.color = "black";
		}
		if(valor ==""){
			document.getElementById("OvD300Total").innerHTML = "Selecione<br>pacote de<br>dados";
			document.getElementById("OvD300Total").style.color = "#a1a1a1";
		}		
}

function F_OvD500(){

	valor = document.OvVD.of500.value;

		if(valor =="1"){
			document.getElementById("OvD500Total").innerHTML = "R$ 377,82";
			document.getElementById("OvD500Total").style.color = "black";
		}
		if(valor =="2"){
			document.getElementById("OvD500Total").innerHTML = "R$ 411,82";
			document.getElementById("OvD500Total").style.color = "black";
		}
		if(valor ==""){
			document.getElementById("OvD500Total").innerHTML = "Selecione<br>pacote de<br>dados";
			document.getElementById("OvD500Total").style.color = "#a1a1a1";
		}		
}

