var font = "";
var versao = "v1.1";
var my_time=new Date();
var dt=(my_time.getDate());
var mon=(my_time.getMonth())+1;
var yr=(my_time.getYear());
var question1 = "";
var q1 = false;
var question2 = "";
var q2a = "pn";
var q2b = "un";
var q2c = "an";
var q2d = "fn";
var q2e = "mn";
var question3 = "";
var q3 = false;
var question4 = "";
var question4a = false;
var question4b = false;
var question5 = "";
var question5a = false;
var question5b = false;
var questao6 = "";
var sinal= "&";
var mesf = 1;
var anof = 1967;
var s, q, r, d, ri, n;
var tipo = 'da fase ';
var tamtext = 80;
var tamtextarea = 78;
if (navigator.appName.indexOf("Netscape") != -1) {
	tamtext=44; 
	tamtextarea=59;
}
//if (yr>=1900) {yr=yr-1900;}
//if (yr>=100) {yr=yr-100;}
java1b = new Image();
java1b.src = "http://pfcii.rnbastos.com/imagens/botaob.jpg";
java2b = new Image();
java2b.src = "http://pfcii.rnbastos.com/imagens/botao2b.jpg";
java3b = new Image();
java3b.src = "http://pfcii.rnbastos.com/imagens/botao3b.jpg";
java1a = new Image();
java1a.src = "http://pfcii.rnbastos.com/imagens/botaoa.jpg";
java2a = new Image();
java2a.src = "http://pfcii.rnbastos.com/imagens/botao2a.jpg";
java3a = new Image();
java3a.src = "http://pfcii.rnbastos.com/imagens/botao3a.jpg";

function mov_pic(imgName) {
	document[imgName].src =("http://pfcii.rnbastos.com/imagens/" + imgName + "b.jpg");
}

function mou_pic(imgName) {
	document.images[imgName].src = ("http://pfcii.rnbastos.com/imagens/" + imgName + "a.jpg");
}

function nome(name) {
 if (name == '>')
 return ',\n\tmais que '+tipo;
 if (name == '&')
 return ',\n\t'+tipo;
 if (name == 'r') {
 r = true;
 return 'Roger Waters';
 }
 if (name == 'd') {
 d = true;
 return 'David Gilmour';
 }
 if (name == 's') {
 s = true;
 return 'Syd Barret';
 }
 if (name == '$') {
 ri = true;
 return 'Rick Wright';
 }
 if (name == 'n') {
 n = true;
 return 'Nick Mason';
 }
 if (name == 'g') {
 g = true;
 return 'Grupo';
 }
 if (name == 'p') return 'Acha The Piper at The Gates of Dawn ';
 if (name == 'u') return ',\n\to UMMAGUMMA ';
 if (name == 'a') return ',\n\to Atom Heart Mother ';
 if (name == 'f') return ',\n\tThe Final Cut ';
 if (name == 'm') return '\n\te A Mommentary Lapse Of Reason ';
 if (name == '5') return 'ótimo';
 if (name == '4') return 'bom';
 if (name == '3') return 'regular';
 if (name == '2') return 'ruim';
 if (name == '1') return 'péssimo';
 if (name == 'N') return 'desconhece';
 if (name == 'ES') return 'Early Singles';
 if (name == 'TLAMLiL')
 return "Tonight Let's All Make Love in London";
 if (name == 'PatGoD')
 return 'Piper at the Gates of Dawn';
 if (name == 'ASoS')
 return 'A Saucerful of Secrets';
 if (name == 'More')
 return 'More';
 if (name == 'UG')
 return 'Ummagumma';
 if (name == 'ZP')
 return 'Zabriskie Point';
 if (name == 'AHM')
 return 'Atom Heart Mother';
 if (name == 'Relics')
 return 'Relics';
 if (name == 'Meddle')
 return 'Meddle';
 if (name == 'OBC')
 return 'Obscured By Clouds (La Vallee)';
 if (name == 'DSotM')
 return 'Dark Side of the Moon';
 if (name == 'WYWH')
 return 'Wish You Were Here';
 if (name == 'Animals')
 return 'Animals';
 if (name == 'TW')
 return 'The Wall';
 if (name == 'ACoGDS')
 return 'A Collection of Great Dance Songs';
 if (name == 'TFC')
 return 'The Final Cut';
 if (name == 'AMLoR')
 return 'A Momentary Lapse of Reason';
 if (name == 'DSoT')
 return 'Delicate Sound of Thunder';
 if (name == 'TDB')
 return 'The Division Bell';
 if (name == 'P*')
 return 'p*u*l*s*e';
 if (name == 'DG')
 return 'David Gilmour (eponymous)';
 if (name == 'AF')
 return 'About Face';
 if (name == 'FS')
 return 'Fictitious Sports';
 if (name == 'Profiles')
 return 'Profiles';
 if (name == 'MftB')
 return 'Music From the Body';
 if (name == '+-oHH')
 return 'The Pros and Cons of Hitch Hiking';
 if (name == 'WTWB')
 return 'When the Wind Blows';
 if (name == 'KAOS')
 return 'Radio KAOS';
 if (name == 'TWLiB')
 return 'The Wall: Live in Berlin';
 if (name == 'ATD')
 return 'Amused to Death';
 if (name == 'WD')
 return 'Wet Dream';
 if (name == 'Identity')
 return 'Identity';
 if (name == 'BC')
 return 'Broken China';
 if (name == 'TML')
 return 'The Madcap Laughs';
 if (name == 'Barrett')
 return 'Barrett';
 if (name == 'Opel')
 return 'Opel';
 if (name == 'ITAOT')
 return 'Is There Anybody Out There?';
 return true;

}

function interpreta () {
 var texto = document.Code.Floyd_Code_IIb.value;
 var saida = "As Fases:\n\t-Gosta das fases ";
 var aux, aux3;
 var e;
 var aux2 ="";
 var i = 0;

 tipo = 'da fase ';
 d=s=r=g=ri=false;
 if (texto == "") {
 alert ("Você tem que colocar um código na caixa acima!");
 return true;
 }
 if (texto.substring(0, 6) != "PFCIIv") {
 alert ("dã...\nFalta o PFCIIvX.Y");
 return true;
 }
 texto = texto.substring (6, texto.length);
 aux = texto.substring(i, i+1)
 while (aux != " " && i < 20) {
 i++;
 aux = texto.substring(i, i+1);
 }
 texto = texto.substring(i+1, texto.length);
 i=0;
 aux = texto.substring(0, 1);
 while (aux != " " && i < 20) {
 saida += nome(aux);
 i++;
 aux = texto.substring(i, i+1);
 }
 if (d ==false) saida += "\n\te não gosta da fase "+nome('d');
 if (s ==false)
 saida += "\n\te não gosta da fase "+nome('s');
 if (r ==false)
 saida += "\n\te não gosta da fase "+nome('r');
 if (g ==false)
 saida += "\n\te não gosta da fase "+nome('g');
 d=s=r=g=false;
 saida += ".\n\nDiscos Polêmicos:\n\t-";
 document.Code.Interpretar_PFCIIb.value = saida;
 texto = texto.substring(i+1, texto.length);
 i =0;
 aux = texto.substring(0, 1);
 while (aux != " " && i < 20) {
 if (aux == 'n')
 aux = 'N';
 saida += nome(aux);
 i++;
 aux = texto.substring(i, i+1);
 }
 document.Code.Interpretar_PFCIIb.value = saida;
 texto = texto.substring(i+1, texto.length);
 saida += ".\n\nImportância dos Músicos:\n\t-Foi importante ";
 tipo ='';
 i =0;
 aux = texto.substring(0, 1);
 while (aux != " " && i < 20) {
 saida += nome(aux);
 i++;
 aux = texto.substring(i, i+1);
 }
 if (d ==false) saida += "\n\te não acha "+nome('d')+" importante ";
 if (s ==false)
 saida += "\n\te não acha "+nome('s')+" importante ";
 if (r ==false)
 saida += "\n\te não acha "+nome('r')+" importante ";
 if (n ==false)
 saida += "\n\te não acha "+nome('n')+" importante ";
 if (ri ==false)
 saida += "\n\te não acha "+nome('$')+" importante ";
 d=s=r=g=ri=false;
 document.Code.Interpretar_PFCIIb.value = saida;
 texto = texto.substring(i+1, texto.length);
 saida += ".\n\nDisco Favorito:\n\t-";
 i =0;
 aux2="";
 aux = texto.substring(0, 1);
 while (aux != "/" && aux !="-" && i < 20) {
 aux2+=aux;
 i++;
 aux = texto.substring(i, i+1);
 }
 saida+=nome(aux2)+"\nDisco que mais tem ouvido ultimamente:\n\t-";
 aux = aux2= "";
 while (aux != " " && i < 20) {
 aux2+=aux;
 i++;
 aux = texto.substring(i, i+1);
 }
 saida+=nome(aux2);
 document.Code.Interpretar_PFCIIb.value = saida;
 texto = texto.substring(i+1, texto.length);
 aux = texto.substring(0, 1);
 aux2="";
 i=0;
 saida+="\n\nOficiais x Piratas\n\t-Possui ";
 while (aux >= 0 && aux <=9 && i < 20) {
 aux2+=aux;
 i++;
 aux = texto.substring(i, i+1);
 }
 aux = texto.substring(i, i+1);
 saida+=aux2+" discos oficiais e\n\t";
 if (aux=='n')
 saida+="não ";
 saida+="se interessa por discos piratas (RoIOs).\n\nTempo:\n\t";
 document.Code.Interpretar_PFCIIb.value=saida;
 texto=texto.substring(i+2, texto.length); aux2=0;
 i=0;
 aux=texto.substring(0, 1);
 while (aux !='\\' ) {
 i++;
 aux2=(10*(aux2)+1*(aux));
 aux=texto.substring(i, i + 1);
 }
 aux3=12*aux2;
 aux2=0;
 texto=texto.substring(i+1, texto.length);
 i=0;
 aux=texto.substring(0, 1);
 while (aux !=" " && i < 20) {
 i++; aux2=(10*(aux2)+1*(aux));
 aux=texto.substring(i, i + 1);
 }
 aux3 +=(aux2);
 if (texto.substring(i+1, i+2) !="<" ) {
 alert("Código Inválido."); return true;
 }
 texto=texto.substring(i+2, texto.length);
 i=0;
 aux=texto.substring(0, 1);
 while (aux>= 0 && aux <= 9) {
 aux=texto.substring(i, i + 1);
 i++;
 }
 texto=texto.substring (i-1, texto.length);
 aux=texto.substring (0, 3);
 if (aux == "jan")
 aux2 = 1;
 if (aux == "feb")
 aux2 = 2;
 if (aux == "mar")
 aux2 = 3;
 if (aux == "apr")
 aux2 = 4;
 if (aux == "may")
 aux2 = 5;
 if (aux == "jun")
 aux2 = 6;
 if (aux == "jul")
 aux2 = 7;
 if (aux == "aug")
 aux2 = 8;
 if (aux == "sep")
 aux2 = 9;
 if (aux == "oct")
 aux2 = 10;
 if (aux == "nov")
 aux2 = 11;
 if (aux == "dec")
 aux2 = 12;
 texto=texto.substring (3, texto.length);
 aux= (mon) - (aux2);
 aux2=(((texto.substring (0, 1))) + (texto.substring (1, 2)));
 if (aux2 < 90)
 aux2 =1*(aux2)+(100);
 if (aux2<1900)
 aux2=1*(aux2)+(1900);
 if (yr < 90)
 yr =1*(yr)+(100);
 if (yr<1900)
 yr=1*(yr)+(1900);
 aux3 +=(12 * ((yr) - (aux2)));
 aux = (aux)+(aux3);
 aux3 = ((aux)%12);
 saida+="É fã do Floyd há "+(((aux) - (aux3))/12)+" anos e "+(aux3)+" meses.";
 document.Code.Interpretar_PFCIIb.value = saida; return true;
}

function ler() {
 var texto = document.Code.Floyd_Code_IIb.value;
 var aux, aux3;
 var e;
 var aux2 ="";
 var ultimo = 0, ultimo2;
 var i = 0;

 if (texto == "") {
 alert ("Você tem que colocar um código na caixa abaixo!");
 return true;
 }
 if (texto.substring(0, 6) != "PFCIIv") {
 alert ("dã...\nFalta o PFCIIvX.Y");
 return true;
 }
 texto = texto.substring (6, texto.length);
 aux = texto.substring(i, i+1)
 while (aux != " " && i < 20) {
 i++;
 aux = texto.substring(i, i+1)
 }
 if (texto.substring(i, i+1) != " ") {
 alert("Deve haver algum erro no PFCII que você digitou.\nAbortando execução para não travar seu micro...");
 return true;
 }
 texto = texto.substring(i+1, texto.length);
 i=0;
 aux = texto.substring(0, 1);
 while (aux != " " && i < 20) {
 for (var j=0;j<6;j++) {
 e = document.Code.elements[j];
 if (e.name == aux) {
 e.checked = true;
 ultimo2 = j;
 break;
 }
 }
 i++;
 aux2+=aux;
 aux = texto.substring(i, i + 1);
 } document.Code.disp.value = aux2;
 question1 = aux2;
 if (texto.substring(i, i+1) != " ") {
 alert("Deve haver algum erro no PFCII que você digitou.\nAbortando execução para não travar seu micro...");
 return true;
 }
 texto = texto.substring(i+1, texto.length);
 aux = texto.substring(0, 1);
 aux2= "";
 aux = texto.substring(0, 1);
 aux3 = texto.substring(1, 2);
 aux2= "";
 i=0;
 ultimo = ultimo2;
 while (aux != " " && i < 20) 
 {
	 for (var j=ultimo;j<ultimo+40;j++) 
	 {
		 e = document.Code.elements[j];
		 if (e.value == aux+aux3) 
		 {
			 e.checked = true;
			 ultimo2 = j;
			 break;
		 }
 	 } 
	 i+=2;
	 aux2+=aux+aux3;
	 aux = texto.substring(i, i + 1);
	 aux3 = texto.substring(i + 1, i + 2);
 } 
 document.Code.question2.value = aux2;
 question2 = aux2;
 q2a = aux2.substring(0,2);
 q2b = aux2.substring(2,4);
 q2c = aux2.substring(4,6);
 q2d = aux2.substring(6,8);
 q2e = aux2.substring(8,10);
 if (texto.substring(i, i+1) != " ") {
 alert("Deve haver algum erro no PFCII que você digitou.\nAbortando execução para não travar seu micro...");
 return true;
 }
 texto = texto.substring(i+1, texto.length);
 ultimo = ultimo2;
 aux2="";
 i = 0;
 aux = texto.substring(0, 1);
 while (aux != " " && i < 20) {
 for (var j=ultimo;j<ultimo+15;j++) {
 e = document.Code.elements[j];
 if (e.name == aux+'3') {
 e.checked = true;
 ultimo2 = j;
 break;
 }
 }
 i++;
 aux2+=aux;
 aux = texto.substring(i, i + 1);
 } document.Code.question3.value = aux2;
 question3 = aux2;
 if (texto.substring(i, i+1) != " ") {
 alert("Deve haver algum erro no PFCII que você digitou.\nAbortando execução para não travar seu micro...");
 return true;
 }
 texto = texto.substring(i+1, texto.length);
 ultimo = ultimo2;
 aux2="";
 i = 0;
 aux = texto.substring(0, 1);
 while (aux != "/" && aux!="-" && i < 20) {
 i++;
 aux2+=aux;
 aux = texto.substring(i, i + 1);
 } if (aux=="-") {
 alert ("Você tem que trocar o único \"-\" do seu PFCII por \"/\".\nDesculpe o transtorno. Altere isto no arquivo onde você guarda seu PFCII.\nObrigado.");
 return true;
 }
 document.Code.question4a.value = aux2;
 question4a = true;
 question4 = aux2;
 texto = texto.substring(i + 1, texto.length);
 i = 0;
 aux2="";
 aux = texto.substring(0, 1);
 while (aux != " " && i < 20) {
 i++;
 aux2+=aux;
 aux = texto.substring(i, i + 1);
 } document.Code.question4b.value = aux2;
 question4b = true;
 question4 += '/'+aux2;
 if (texto.substring(i, i+1) != " ") {
 alert("Deve haver algum erro no PFCII que você digitou.\nAbortando execução para não travar seu micro...");
 return true;
 }
 texto = texto.substring(i+1, texto.length);
 aux2="";
 i = 0;
 aux = texto.substring(0, 1);
 while (aux != "y" && aux!="n" && aux!=" ") {
 i++;
 aux2+=aux;
 aux = texto.substring(i, i + 1);
 } document.Code.question5a.value = aux2;
 question5a = true;
 question5 = aux2;
 if (aux == " ") {
 alert("Você colocou um código inválido!");
 return true;
 }
 else {
 document.Code.question5b.value = aux;
 question5b = true;
 question5 += aux;
 }
 ultimo+=0;
 for (var j=ultimo;j<ultimo+20;j++) {
 e = document.Code.elements[j];
 if (e.value == 'RoIO'+aux) {
 e.checked = true;
 ultimo2 = j;
 break;
 }
 }
 if (texto.substring(i+1, i+2) != " ") {
 alert("Deve haver algum erro no PFCII que você digitou.\nAbortando execução para não travar seu micro...");
 return true;
 }
 texto = texto.substring(i+2, texto.length);
 ultimo = ultimo2;
 aux2=0;
 i = 0;
 aux = texto.substring(0, 1);
 while (aux != '\\') {
 i++;
 aux2=(10*(aux2)+1*(aux));
 aux = texto.substring(i, i + 1);
 } aux3 = 12*aux2;
 aux2=0;
 texto = texto.substring(i+1, texto.length);
 i=0;
 aux = texto.substring(0, 1);
 while (aux != " " && i < 20) {
 i++;
 aux2=(10*(aux2)+1*(aux));
 aux = texto.substring(i, i + 1);
 } aux3 += (aux2);
 if (texto.substring(i+1, i+2) != '<') {
 alert( "Código Inválido.");
 return true;
 }
 texto = texto.substring(i+2, texto.length);
 ultimo = ultimo2;
 i = 0;
 aux = texto.substring(0, 1);
 while (aux >= 0 && aux <= 9) {
 aux = texto.substring(i, i + 1);
 i++;
 }
 texto= texto.substring (i-1, texto.length);
 aux = texto.substring (0, 3);
 if (aux == "jan")
 aux2 = 1;
 if (aux == "feb")
 aux2 = 2;
 if (aux == "mar")
 aux2 = 3;
 if (aux == "apr")
 aux2 = 4;
 if (aux == "may")
 aux2 = 5;
 if (aux == "jun")
 aux2 = 6;
 if (aux == "jul")
 aux2 = 7;
 if (aux == "aug")
 aux2 = 8;
 if (aux == "sep")
 aux2 = 9;
 if (aux == "oct")
 aux2 = 10;
 if (aux == "nov")
 aux2 = 11;
 if (aux == "dec")
 aux2 = 12;
 texto=texto.substring (3, texto.length);
 aux= (mon) - (aux2);
 aux2=(((texto.substring (0, 1))) + (texto.substring (1, 2)));
 if (aux2 < 90)
 aux2 =1*(aux2)+(100);
// if (aux2<1900)
// aux2+=(1900);
 if (yr < 90)
 yr = (yr)+1*(100);
 aux3 +=(12 * ((yr) - (aux2)));
 aux = (aux)+(aux3);
 aux3 = ((aux)%12);
 aux = (((aux) - (aux3))/12);
 anof= yr - aux + (1900);
 mesf = (mon) - (aux3);
 document.Code.fsyear.value=(anof);
 questao6 = "foi";
 return true;
}

function junta_tudo()
{
 if (question1 == "") {alert ("Você não preencheu corretamente a questão 1."); return true;}
 else if (question2 == "") {alert ("Você não preencheu corretamente a questão 2."); return true;}
 else if (question3 == "")
 {alert ("Você não preencheu corretamente a questão 3."); return true;}
 else if (question4 == "") {alert ("Você não preencheu corretamente a questão 4."); return true;}
 else if (question5 == "") {alert ("Você não preencheu corretamente a questão 5."); return true;}
 else if (questao6 == "") {alert ("Você não preencheu corretamente a questão 6."); return true;}

 var tudo = "PFCII"+versao+" "+document.Code.disp.value+" "+document.Code.question2.value+" "+document.Code.question3.value+" "+question4+" "+question5+" "+tempo();
 document.Code.Floyd_Code_II.value = tudo;
 return true;
}

function tempo () {
 dt=(my_time.getDate());
 if ((dt)<10)
  dt="0"+dt;
 if (mon==1) {dt=dt+"jan";}
 if (mon==2) {dt=dt+"feb";}
 if (mon==3) {dt=dt+"mar";}
 if (mon==4) {dt=dt+"apr";}
 if (mon==5) {dt=dt+"may";}
 if (mon==6) {dt=dt+"jun";}
 if (mon==7) {dt=dt+"jul";}
 if (mon==8) {dt=dt+"aug";}
 if (mon==9) {dt=dt+"sep";}
 if (mon==10) {dt=dt+"oct";}
 if (mon==11) {dt=dt+"nov";}
 if (mon==12) {dt=dt+"dec";}

 if (yr>=1900) {yr=yr-1900;}
 if (yr>=100) {yr=yr-100;}
 if (((yr)<10) && ((yr.length)!=2))
  yr="0"+yr;
 dt=dt+yr

 var fansincemonth = mesf;
 var fansinceyear=anof;
 var current_time=new Date()
 var current_month=(current_time.getMonth())+1
 var current_year=(current_time.getYear())
 if (current_year <1000)
 current_year+=1900;
 var fsm, fsa;

 if(current_month >= fansincemonth) {
 fsa = 1*(current_year)-1*(fansinceyear);
 fsm = current_month-fansincemonth;
 }
 else {
 fsa = 1*(current_year)-1*(fansinceyear)-1;
 fsm = 12-(fansincemonth-current_month);
 }
 fsa=((fsa)%100);
 questao6 = (fsa)+'\\'+fsm+' <'+dt+'>';
 return questao6;
}

function set_year() {
 var aux;
 anof = document.Code.fsyear.value;
 for (var i = 0; i < 5;i++) {
 aux = anof.substring(i, i+1);
 if (aux=="a" || aux=="e" || aux=="i" || aux=="o" || aux=="u") {
 alert ("Por favor entre com um número");
 return true;
 }
 }
 if (anof < 100) anof=19+anof;
 if (anof < 1967 || anof >2100) {
 alert ("Tá louco, mano?!?\nConheceu o Floyd em "+anof+"???"+"\nArruma essa meleca!!!"); anof = 1967;
 return true;
 }
 return true;
}

function set_month() {
 for (i=0; i< 13; i++)
 if (document.Code.fsmonth.options[i].selected)
 mesf = document.Code.fsmonth.options[i].value;
 questao6 = true;
 return true;
}

function roio (qual) {
 if (qual == true)
 document.Code.question5b.value = "y";
 else document.Code.question5b.value = "n";
 question5b = true;
 if (question5a == true && question5b==true)
 question5 = document.Code.question5a.value+document.Code.question5b.value;
 return true;
}

function cincoa () {
 var num = document.Code.question5a.value;
 var aux;
 for (var i = 0; i < 3;i++) {
 aux = num.substring(i,i+1); if (aux=="a" || aux=="e" || aux=="i" || aux=="o" || aux=="u") {
 alert ("Por favor entre com um número");
 return true;
 }
 }
 if (num < 1) {
 alert ("Tá louco, mano?!? "+num+" discos oficiais???"+"\nArruma essa meleca!!!"); question5a = false;
 question5 = "";
 return true;
 }
 if (num > 129) alert ("Ô louco, "+num+" discos oficiais???"+"\nVocê tem mais que o Marcos Balbinotti???"); question5a = true;
 if (question5a == true && question5b==true)
 question5 = document.Code.question5a.value+document.Code.question5b.value;
 return true;
}

function vai(num) {
 var aux = "";
 var aux2;
 if (num == 1) {
 for (i = 0; i < 37; i++)
 if (document.Code.album_a.options[i].selected) {
 aux = document.Code.album_a.options[i].value;
 }
 if (aux != 0) {
 document.Code.question4a.value = aux;
 question4a = true;
 }
 }
 if (num == 2) {
 for (i = 0; i < 37; i++)
 if (document.Code.album_b.options[i].selected)
 aux2 = document.Code.album_b.options[i].value;
 if (aux2 != 0) {
 document.Code.question4b.value = aux2;
 question4b = true;
 }
 }
 if (question4a == true && question4b==true)
 question4 = document.Code.question4a.value+'/'+document.Code.question4b.value;
 return true;
}

function nota (item, quanto) {
 var q2;
 if (item == "a")
 q2a = "p"+quanto;
 else if (item == "b")
 q2b = "u"+quanto;
 else if (item == "c")
 q2c = "a"+quanto;
 else if (item == "d")
 q2d = "f"+quanto;
 else if (item == "e")
 q2e = "m"+quanto;
 q2 = q2a+q2b+q2c+q2d+q2e;
 document.Code.question2.value = q2;
 question2 = q2;
 return true;
} function multi_question (question, nome) {
 var foi = false;
 var finzinho;
 var tudo;
 var n;
 if (question == 1) {
 tudo = question1;
 if (q1 == false)
 sinal = "&";
 q1 = true;
 n = 7;
 }
 if (question == 3) {
 tudo = question3;
 if (q3 == false)
 sinal = "&";
 q3 = true;
 n = 9;
 }
 for (var i = 0; i < n; i++)
 if (tudo.substring(i, i + 1) == nome) {
 if (i != 0)
 if ((tudo.substring(i-1, i) == "&" || i == n-1) || (tudo.substring(i-1, i) == ">" && tudo.substring (i+1, i+2) == ""))
 tudo = tudo.substring(0,i-1) + tudo.substring(i+1, n);
 else tudo = tudo.substring(0, i) + tudo.substring(i+2, n)
 else tudo = tudo.substring (2, n);
 foi = true
 }
 if (foi == false)
 if (tudo != "")
 tudo += sinal + nome;
 else tudo = nome;
 if (question == 1)
 document.Code.disp.value = tudo; if (question == 3)
 document.Code.question3.value = tudo; if (question == 1)
 question1 = tudo;
 if (question == 3)
 question3 = tudo;
 return true;
}

function troca_sinal(result) {
 if (result == false)
 sinal = ">";
 else sinal = "&";
 return true;
}

function fonte (qual) {
 if (qual == "")
 qual = "Verdana, Arial";
 font = qual;
 return 0;
}

function cabecalho () {
document.write('<form METHOD="POST" name="Code"><div align="center"><center>'+
'<table border="0" width="100%">'+
'<tr><td><div align="center"><center><p><img src="http://pfcii.rnbastos.com/imagens/pfcII.jpg" width="300" height="150" alt="Pink Floyd Code II (18045 bytes)">'+
'</td></tr></table></center></div><div align="center">'+
'<center><h2><em><font face="'+font+'">');
document.write(versao);
document.write('</font></em></h2></center></div><div align="center"><center>'+
'<p><strong><font face="'+font+'"><small>Qualquer pr'+
'oblema com o PFCII, favor relatar o mais rápido o possível a <a href="mailto:webmaster@pfcII.cjb.net">'+
'webmaster@pfcII.cjb.net</a></small></font></strong></p>'+
'</center></div>');
return 0;
}

function funq1() {
document.write('<div align="center"><center><h2><font face="'+font+'"><em>1. Fases</em></font></h2></center></div><div align="center">'+
'<center><p><small><strong><font face="'+font+'">1. E'+
'm ordem de preferência, quais são as fases que mais te agrad'+
'am?</font></strong></small></p></center></div><div align="center">'+
'<center><p><small><font face="'+font+'">Obs.:<strong>'+
' &amp; </strong>significa que você gosta igualmente de dua'+
's fases, <strong>&gt; </strong>que você gosta mais das an'+
'teriores que das posteriores ao sinal e se você não gosta de'+
' uma fase, simplesmente deixe-a em branco<strong></strong>'+
'</font></small></p></center></div><div align="center"><center>'+
'<table border="0" cellpadding="3" cellspacing="0"><tr>'+
'<td nowrap><small><font face="'+font+'"><input TYPE="checkbox" VALUE="ON" NAME="s" onclick="multi_question (1,'+"'"+'s'+"'"+')">'+
'Fase <strong>Syd Barret</strong> (1965 - 1968)<br><input TYPE="checkbox" VALUE="ON" NAME="g" onclick="multi_question (1,'+"'"+'g'+"'"+')">'+
'Fase <strong>Grupo</strong> (1969 - 1975)<br>'+
'<input TYPE="checkbox" VALUE="ON" NAME="r" onclick="multi_question (1,'+"'"+'r'+"'"+')">'+
'Fase <strong>Roger Waters</strong> (1977 - 1983)<br>'+
'<input TYPE="checkbox" VALUE="ON" NAME="d" onclick="multi_question (1,'+"'"+'d'+"'"+')">'+
'Fase <strong>David Gilmour</strong> (1986 - ????)</font>'+
'</small></td><td nowrap align="right"><div align="center">'+
'<center><p><font face="'+font+'"><strong><small>Associ'+
'ação</small><br></strong><input type="radio" value="V15" name="sinal1" onclick="troca_sinal(true)" checked>'+
'<strong>&amp;<big><input type="radio" name="sinal1" value="V16" onclick="troca_sinal(false)">'+
'</big>&gt;</strong></font></td></tr><tr align="center">'+
'<td nowrap colspan="2"><div align="right"><p><font face="'+font+'">'+
'<small><strong>Resultado:</strong></small><input type="text" name="disp" size="7" onFocus="this.blur()">'+
'</font></td></tr></table></center></div>');
return 0;
}

function funq2 () {
document.write('<div align="center"><center><h2><em><font face="'+font+'"><br> 2. Disco'+
's Polêmicos</font></em></h2></center></div><div align="center">'+
'<center><p><strong><font face="'+font+'"><small>2. A'+
'qui temos 5 discos polêmicos do Floyd. Dê sua &quot;nota&quo'+
't; a eles. Se você não os conhece, clique em não sei.</small>'+
'</font></strong></p></center></div><div align="center"><center>'+
'<table border="0" cellpadding="10" cellspacing="0">'+
'<tr><td nowrap><font face="'+font+'"><small><strong>'+
'2. a) </strong>O que você acha de <strong><em>The Pip'+
'er at The Gates Of Dawn</em></strong></small></font><table border="0" cellpadding="6" cellspacing="0">'+
'<tr><td nowrap><input type="radio" name="p" value="p5" onclick="nota('+"'"+'a'+"'"+',5)">'+
'<small><font face="'+font+'"><strong>Ótimo</strong>'+
'</font></small></td><td nowrap><font face="'+font+'">'+
'<strong><input type="radio" name="p" value="p4" onclick="nota('+"'"+'a'+"'"+',4)">'+
'<small>Bom</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="p" value="p3" onclick="nota('+"'"+'a'+"'"+',3)">'+
'<small>Regular</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="p" value="p2" onclick="nota('+"'"+'a'+"'"+',2)">'+
'<small>Ruim</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="p" value="p1" onclick="nota('+"'"+'a'+"'"+',1)">'+
'<small>Péssimo</small></strong></font></td><td nowrap>'+
'<small><font face="'+font+'"><strong><input type="radio" name="p" value="pn" onclick="nota('+"'"+'a'+"'"+','+"'"+'n'+"'"+')">'+
'Não sei</strong></font></small></td></tr></table>'+
'</td></tr><tr><td nowrap><font face="'+font+'">'+
'<small><strong>2. b) </strong>O que você acha do <strong>'+
'<em>UMMAGUMMA</em></strong></small></font><table border="0" cellpadding="6" cellspacing="0">'+
'<tr><td nowrap><input type="radio" name="R2" value="u5" onclick="nota('+"'"+'b'+"'"+',5)">'+
'<small><font face="'+font+'"><strong>Ótimo</strong>'+
'</font></small></td><td nowrap><font face="'+font+'">'+
'<strong><input type="radio" name="R2" value="u4" onclick="nota('+"'"+'b'+"'"+',4)">'+
'<small>Bom</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R2" value="u3" onclick="nota('+"'"+'b'+"'"+',3)">'+
'<small>Regular</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R2" value="u2" onclick="nota('+"'"+'b'+"'"+',2)">'+
'<small>Ruim</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R2" value="u1" onclick="nota('+"'"+'b'+"'"+',1)">'+
'<small>Péssimo</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R2" value="un" onclick="nota('+"'"+'b'+"'"+','+"'"+'n'+"'"+')">'+
'<small>Não sei</small></strong></font></td></tr>'+
'</table></td></tr><tr><td nowrap>'+
'<font face="'+font+'"><small><strong>2. c) </strong>O q'+
'ue você acha do <strong><em>Atom Heart Mother</em></strong>'+
'</small></font><table border="0" cellpadding="6" cellspacing="0">'+
'<tr><td nowrap><input type="radio" name="R3" value="a5" onclick="nota('+"'"+'c'+"'"+',5)">'+
'<small><font face="'+font+'"><strong>Ótimo</strong>'+
'</font></small></td><td nowrap><font face="'+font+'">'+
'<strong><input type="radio" name="R3" value="a4" onclick="nota('+"'"+'c'+"'"+',4)">'+
'<small>Bom</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R3" value="a3" onclick="nota('+"'"+'c'+"'"+',3)">'+
'<small>Regular</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R3" value="a2" onclick="nota('+"'"+'c'+"'"+',2)">'+
'<small>Ruim</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R3" value="a1" onclick="nota('+"'"+'c'+"'"+',1)">'+
'<small>Péssimo</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R3" value="an" onclick="nota('+"'"+'c'+"'"+','+"'"+'n'+"'"+')">'+
'<small>Não sei</small></strong></font></td></tr>'+
'</table></td></tr><tr><td nowrap>'+
'<font face="'+font+'"><small><strong>2. d) </strong>O q'+
'ue você acha de <strong><em>The Final Cut</em></strong>'+
'</small></font><table border="0" cellpadding="6" cellspacing="0">'+
'<tr><td nowrap><input type="radio" name="R4" value="f5" onclick="nota('+"'"+'d'+"'"+',5)">'+
'<small><font face="'+font+'"><strong>Ótimo</strong>'+
'</font></small></td><td nowrap><font face="'+font+'">'+
'<strong><input type="radio" name="R4" value="f4" onclick="nota('+"'"+'d'+"'"+',4)">'+
'<small>Bom</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R4" value="f3" onclick="nota('+"'"+'d'+"'"+',3)">'+
'<small>Regular</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R4" value="f2" onclick="nota('+"'"+'d'+"'"+',2)">'+
'<small>Ruim</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R4" value="f1" onclick="nota('+"'"+'d'+"'"+',1)">'+
'<small>Péssimo</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R4" value="fn" onclick="nota('+"'"+'d'+"'"+','+"'"+'n'+"'"+')">'+
'<small>Não sei</small></strong></font></td></tr>'+
'</table></td></tr><tr><td nowrap>'+
'<small><font face="'+font+'"><strong>2. e) </strong>O q'+
'ue você acha de <strong><em>A Mommentary Lapse Of Rea'+
'son</em></strong></font></small><table border="0" cellpadding="6" cellspacing="0">'+
'<tr><td nowrap><input type="radio" name="R5" value="m5" onclick="nota('+"'"+'e'+"'"+',5)">'+
'<small><font face="'+font+'"><strong>Ótimo</strong>'+
'</font></small></td><td nowrap><font face="'+font+'">'+
'<strong><input type="radio" name="R5" value="m4" onclick="nota('+"'"+'e'+"'"+',4)">'+
'<small>Bom</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R5" value="m3" onclick="nota('+"'"+'e'+"'"+',3)">'+
'<small>Regular</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R5" value="m2" onclick="nota('+"'"+'e'+"'"+',2)">'+
'<small>Ruim</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R5" value="m1" onclick="nota('+"'"+'e'+"'"+',1)">'+
'<small>Péssimo</small></strong></font></td><td nowrap>'+
'<font face="'+font+'"><strong><input type="radio" name="R5" value="mn" onclick="nota('+"'"+'e'+"'"+','+"'"+'n'+"'"+')">'+
'<small>Não sei</small></strong></font></td></tr>'+
'</table></td></tr><tr><td nowrap>'+
'<font face="'+font+'"><strong><small><div align="right">'+
'<p>Resultado:</small></strong><input type="text" name="question2" size="10">'+
'</font></td></tr></table></center></div>');
return 0;
}

function funq3 () {
document.write('<div align="center"><center><h2><em><font face="'+font+'"><br> 3. Músic'+
'os</font></em></h2></center></div><div align="center"><center>'+
'<p><strong><small><font face="'+font+'">3. Dentre o'+
's músicos do Floyd, quais deles foram mais importantes para q'+
'ue você gostasse do Floyd como gosta hoje?</font></small>'+
'</strong></p></center></div><div align="center"><center>'+
'<table border="0" cellpadding="3" cellspacing="0"><tr>'+
'<td nowrap><font face="'+font+'"><small><input TYPE="checkbox" VALUE="ON" NAME="d3" onclick="multi_question (3, '+"'"+'d'+"'"+')">'+
'<strong>David Gilmour</strong></small><br><small><input TYPE="checkbox" VALUE="ON" NAME="n3" onclick="multi_question (3, '+"'"+'n'+"'"+')">'+
'<strong>Nick Mason<br></strong></small><input type="checkbox" name="$3" value="ON" onclick="multi_question (3,'+"'"+'$'+"'"+')">'+
'<strong><small>Rick Wright</small></strong><br><small>'+
'<input TYPE="checkbox" VALUE="ON" NAME="r3" onclick="multi_question (3, '+"'"+'r'+"'"+')">'+
'<strong>Roger Waters</strong><br><input TYPE="checkbox" VALUE="ON" NAME="s3" onclick="multi_question (3, '+"'"+'s'+"'"+')">'+
'<strong>Syd Barret</strong></small></font></td>'+
'<td nowrap align="right"><div align="center"><center><p><font face="'+font+'">'+
'<strong><small>Associação</small><br></strong><input type="radio" value="V15" checked name="sinal2" onclick="troca_sinal(true)">'+
'<strong>&amp;<big><input type="radio" name="sinal2" value="V16" onclick="troca_sinal(false)">'+
'</big>&gt;</strong></font></td></tr><tr align="center">'+
'<td nowrap colspan="2"><div align="right"><p><font face="'+font+'">'+
'<small><strong>Resultado:</strong></small><input type="text" name="question3" size="9" onFocus="this.blur()">'+
'</font></td></tr></table></center></div>');
return 0;
}

function funq4 () {
document.write('<div align="center"><center><h2><em><font face="'+font+'"><br> 4. Disco'+
's</font></em></h2></center></div><div align="center"><center>'+
'<p><strong><small><font face="'+font+'">4. a) Qual é'+
' o seu disco preferido do Pink Floyd?</font></small></strong>'+
'</p></center></div><div align="center"><center><table border="0" cellpadding="3" cellspacing="0">'+
'<tr><td nowrap><select name="album_a" size="1" onchange="vai(1);this.blur();">'+
'<option selected value="0">Disco</option><option value="ES">'+
'Early Singles </option><option value="TLAMLiL">Ton'+
'ight Let'+"'"+'s All Make Love in London </option><option value="PatGoD">'+
'Piper at the Gates of Dawn </option><option value="ASoS">'+
'A Saucerful of Secrets </option><option value="More">'+
'More </option><option value="UG">Ummagumma </option>'+
'<option value="ZP">Zabriskie Point </option><option value="AHM">'+
'Atom Heart Mother </option><option value="Relics">'+
'Relics </option><option value="Meddle">Meddle </option>'+
'<option value="OBC">Obscured By Clouds (La Vallee) </option>'+
'<option value="DSotM">Dark Side of the Moon</option>'+
'<option value="WYWH">Wish You Were Here </option><option value="Animals">'+
'Animals </option><option value="TW">The Wall </option>'+
'<option value="ACoGDS">A Collection of Great Dance Songs </option>'+
'<option value="TFC">The Final Cut </option><option value="AMLoR">'+
'A Momentary Lapse of Reason </option><option value="DSoT">'+
'Delicate Sound of Thunder </option><option value="TDB">'+
'The Division Bell </option><option value="P*">p*u*'+
'l*s*e </option><option value="ITAOT">Is There Anybody Out There? '+
'</option><option value="DG">David Gilmour (e'+
'ponymous) </option><option value="AF">About Face </option>'+
'<option value="FS">Fictitious Sports </option><option value="Profiles">'+
'Profiles </option><option value="MftB">Music From t'+
'he Body </option><option value="+-oHH">The Pros an'+
'd Cons of Hitch Hiking </option><option value="WTWB">'+
'When the Wind Blows </option><option value="KAOS">'+
'Radio KAOS </option><option value="TWLiB">The Wall'+
': Live in Berlin </option><option value="ATD">Amus'+
'ed to Death </option><option value="WD">Wet Dream </option>'+
'<option value="Identity">Identity </option><option value="BC">'+
'Broken China </option><option value="TML">The Madc'+
'ap Laughs </option><option value="Barrett">Barrett'+
' </option><option value="Opel">Opel </option>'+
'</select></td></tr><tr><td nowrap><div align="right">'+
'<p><strong><small><font face="'+font+'">Resultado:</font>'+
'</small></strong><input type="text" name="question4a" value size="8" onFocus="this.blur()">'+
'</td></tr></table></center></div><div align="center">'+
'<center><p><strong><small><font face="'+font+'">4. b'+
') Qual é o disco que você tem ouvido mais ultimamente?</font>'+
'</small></strong></p></center></div><div align="center">'+
'<center><table border="0" cellpadding="3" cellspacing="0">'+
'<tr><td nowrap><select name="album_b" size="1" onchange="vai(2); this.blur();">'+
'<option selected value="0">Disco</option><option value="ES">'+
'Early Singles </option><option value="TLAMLiL">Ton'+
'ight Let'+"'"+'s All Make Love in London </option><option value="PatGoD">'+
'Piper at the Gates of Dawn </option><option value="ASoS">'+
'A Saucerful of Secrets </option><option value="More">'+
'More </option><option value="UG">Ummagumma </option>'+
'<option value="ZP">Zabriskie Point </option><option value="AHM">'+
'Atom Heart Mother </option><option value="Relics">'+
'Relics </option><option value="Meddle">Meddle </option>'+
'<option value="OBC">Obscured By Clouds (La Vallee) </option>'+
'<option value="DSotM">Dark Side of the Moon</option>'+
'<option value="WYWH">Wish You Were Here </option><option value="Animals">'+
'Animals </option><option value="TW">The Wall </option>'+
'<option value="ACoGDS">A Collection of Great Dance Songs </option>'+
'<option value="TFC">The Final Cut </option><option value="AMLoR">'+
'A Momentary Lapse of Reason </option><option value="DSoT">'+
'Delicate Sound of Thunder </option><option value="TDB">'+
'The Division Bell </option><option value="P*">p*u*'+
'l*s*e </option><option value="ITAOT">Is There Anybody Out There? '+
'</option><option value="DG">David Gilmour (e'+
'ponymous) </option><option value="AF">About Face </option>'+
'<option value="FS">Fictitious Sports </option><option value="Profiles">'+
'Profiles </option><option value="MftB">Music From t'+
'he Body </option><option value="+-oHH">The Pros an'+
'd Cons of Hitch Hiking </option><option value="WTWB">'+
'When the Wind Blows </option><option value="KAOS">'+
'Radio KAOS </option><option value="TWLiB">The Wall'+
': Live in Berlin </option><option value="ATD">Amus'+
'ed to Death </option><option value="WD">Wet Dream </option>'+
'<option value="Identity">Identity </option><option value="BC">'+
'Broken China </option><option value="TML">The Madc'+
'ap Laughs </option><option value="Barrett">Barrett'+
' </option><option value="Opel">Opel </option>'+
'</select></td></tr><tr><td nowrap><div align="right">'+
'<p><strong><small><font face="'+font+'">Resultado:</font>'+
'</small></strong><input type="text" name="question4b" value size="8" onFocus="this.blur()">'+
'</td></tr></table></center></div>');
return 0;
}

function funq5 () {
document.write('<div align="center"><center><h2><em><font face="'+font+'"><br> 5. Ofici'+
'ais x Piratas</font></em></h2></center></div><div align="center">'+
'<center><p><strong><small><font face="'+font+'">5. a'+
') Quantos discos oficiais do Pink Floyd e de carreiras solo d'+
'e seus membros você tem?</font></small></strong></p></center>'+
'</div><div align="center"><center><p><small><font face="'+font+'">'+
'Obs.: Se você tem duas cópias diferentes de The Dark Side'+
' of the Moon, por exemplo, considere-as como duas, já os d'+
'iscos duplos como The Wall, considere-os como apenas um.</font>'+
'</small></p></center></div><div align="center"><center><p>'+
'<input type="text" size="3" name="question5a" onblur="cincoa()" value="0">'+
'</p></center></div><div align="center"><center><p><strong>'+
'<font face="'+font+'"><small>5. b) Você tem interes'+
'se por discos piratas (RoIO'+"'"+'s)?</small></font></strong></p>'+
'</center></div><div align="center"><center><table border="0" cellpadding="5" cellspacing="0">'+
'<tr><td nowrap><font face="'+font+'"><input type="radio" name="RoIO" value="RoIOy" onclick="roio(true)">'+
'<strong><small>Sim </small></strong></font></td><td nowrap>'+
'<input type="radio" name="RoIO" value="RoIOn" onclick="roio(false)">'+
'<small><strong><font face="'+font+'">Não</font>'+
'</strong></small></td></tr><tr><td nowrap colspan="2">'+
'<font face="'+font+'"><strong><small><div align="right">'+
'<p>Resultado:</small></strong><input type="text" name="question5b" size="1" onFocus="this.blur()">'+
'</font></td></tr></table></center></div>');
return 0;
}

function funq6 () {
document.write('<div align="center"><center><h2><em><font face="'+font+'"><br> 6. Tempo'+
'</font></em></h2></center></div><div align="center"><center>'+
'<p><strong><small><font face="'+font+'">6. Quando v'+
'ocê se tornou fã do Pink Floyd? (Mês e Ano)</font></small></strong>'+
'</p></center></div><div align="center"><center><table border="0" cellpadding="3" cellspacing="0">'+
'<tr><td nowrap><div align="center"><center><p><select name="fsmonth" size="1" onchange="set_month();this.blur()">'+
'<option selected value="0">Mês</option><option value="1">'+
'Janeiro</option><option value="2">Fevereiro</option>'+
'<option value="3">Março</option><option value="4">'+
'Abril</option><option value="5">Maio</option>'+
'<option value="6">Junho</option><option value="7">'+
'Julho</option><option value="8">Agosto</option>'+
'<option value="9">Setembro</option><option value="10">'+
'Outubro</option><option value="11">Novembro</option>'+
'<option value="12">Dezembro</option></select></td>'+
'<td nowrap align="center"><input type="text" size="4" name="fsyear" onblur="set_year()" value="1967">'+
'</td></tr></table></center></div>');
return 0;
}

function funq7 () {
document.write('<div align="center"><center><h2><em><font face="'+font+'"><br> 7. O seu'+
' Pink Floyd Code II</font></em></h2></center></div><div align="center">'+
'<center><p><small><strong><font face="'+font+'">7. P'+
'ara ter seu PFCII, basta clicar no botão abaixo.</font></strong>'+
'</small></p></center></div><div align="center"><center><table border="0"  width="100%">'+
'<tr><td nowrap><div align="center"><center><p>'+
'<img onclick="junta_tudo();return false" onMouseover="mov_pic('+"'"+'botao3'+"'"+')" onMouseout="mou_pic('+"'"+'botao3'+"'"+')" SRC="http://pfcii.rnbastos.com/imagens/botao3a.jpg" border="0" name="botao3">'+
'</td></tr><tr align="center"><td nowrap>'+
'<input type="text" size="'+tamtext+'" style="font-family: arial" name="Floyd_Code_II" ></td>'+
'</tr></table></center></div><div align="center"><center>'+
'<p><small><font face="'+font+'">Você pode usar seu Pink Fl'+
'oyd Code II na assinatura do seu e-mail ou em qualquer lugar que d'+
'eseje. É uma boa maneira de declarar seu amor pelo Pink F'+
'loyd. Tenha certeza de copiá-lo antes de sair.</font></small>'+
'</p></center></div>');
return 0;
}

function funq8 () {
document.write('<div align="center"><center><h2><em><font face="'+font+'">'+
'<br> 8. O Inverso do 7.</font></em></h2></center></div>'+
'<div align="center"><center><p><font face="'+font+'"><strong>'+
'<small>8. Caso você queira alterar seu PFCII ou queira sa'+
'ber quais as preferências de outra pessoa.</small><br>'+
'</strong><small>O primeiro botão preenche o formulário com s'+
'uas preferências. Bom para quem quer fazer poucas alteraç'+
'ões em seu PFCII.</small><br><small>O segundo escreve um'+
' texto em português na caixa de textos grande, traduzindo as'+
' preferências escritas num PFCII.</small></font></p></center>'+
'</div><div align="center"><center><table border="0" width="100%">'+
'<tr><td nowrap><div align="center"><center><p>'+
'<img onclick="ler(); return false" onMouseover="mov_pic('+"'"+'botao2'+"'"+')" onMouseout="mou_pic('+"'"+'botao2'+"'"+')" SRC="http://pfcii.rnbastos.com/imagens/botao2a.jpg" border="0" name="botao2">'+
'</td></tr><tr align="center"><td nowrap>'+
'<input type="text" style="font-family: arial" name="Floyd_Code_IIb" size="'+tamtext+'"></td>'+
'</tr><tr align="center"><td nowrap><div align="center">'+
'<center><p>'+
'<img SRC="http://pfcii.rnbastos.com/imagens/botaoa.jpg" border="0" name="botao" onclick="interpreta(); return false;" onMouseover="mov_pic('+"'"+'botao'+"'"+')" onMouseout="mou_pic('+"'"+'botao'+"'"+')">'+
'</td></tr><tr align="center"><td nowrap>'+
'<div align="center"><center><p><textarea style="font-family: arial" rows="7" name="Interpretar_PFCIIb" cols="'+tamtextarea+'">'+
'</textarea>'+
'</td></tr></table></center></div></form>'+
'<p align="center"><small><font face="'+font+'">Se algum dos f'+
'atores relevantes, mudar (como se você obter mais discos oficiais), v'+
'olte, interprete seu código e copie-o novamente. Seu código'+
' atualizado será gerado. Você pode atualizar seu PFC II quan'+
'do quiser.</font></small></p>');
//return 0;
}

function funq9 () {
document.write('<h2 align="center"><em><font face="'+font+'">'+
'<br>9. Créditos</font></em></h2><p align="center"><small>'+
'<strong><font face="'+font+'">9. Java-Script por Michel Vale'+
' Ferreira.</strong></font></small><br><small>'+
'<font face="'+font+'">Agradecimentos especiais a Nelson Sosa, Rick K'+
'arhu, o pai do Pink Floyd Code, que ajudaram Dave Ward, que'+
' fez o primeiro Floyd Code e a Lucas Bleicher que me ajudou a'+
' bolar as perguntas.</font></small></p>');
return 0;
}

function funq10 () {
document.write('<h2 align="center"><em><strong><font face="'+font+'"><br>10. Como colocar o PF'+
'CII em seu site</font></strong></em></h2><p align="center">'+
'<strong><font face="'+font+'"><small>10. Você pode colocar o P'+
'FCII em seu site:<br></small></font></strong><font face="'+font+'"><small>- Mantendo o tipo de fonte'+
' do seu site.<br>- Cores de fundo e de fonte do seu site.<br>- Adicionar textos acima e abaixo do PFCII.<br><strong>Visit'+
'e: <a href="http://pfcII.rnbastos.com/services.htm">'+
'http://pfcII.rnbastos.com/services.htm</a></small>'+
'</font></strong></p>');
return 0;
}

function Pink_Floyd_Code_II (qual) {
fonte (qual);
cabecalho ();
funq1 ();
funq2 ();
funq3 ();
funq4 ();
funq5 ();
funq6 ();
funq7 ();
funq8 ();
funq9 ();
funq10 ();
return 1;
}

