Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'gls_gls'@'localhost' (using password: YES) in /home/gls/public_html/admin/db.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/gls/public_html/admin/db.php on line 7
var ar1 = new Array();
ar1[0] = new Array();
ar1[0][0] = new makeOption1("- Selecione o estado - ","");
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/gls/public_html/include.php on line 9
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/gls/public_html/include.php on line 12
function makeOption1(text,text2) {
this.text = text;
this.text2 = text2;
}
function relate1(form) {
var options = form.cidade.options;
for (var i = options.length - 1; i > 0; i--) {
options[i] = null;
}
var curAr = ar1[form.estado.selectedIndex];
for (var j = 0; j < curAr.length; j++) {
options[j] = new Option(curAr[j].text,curAr[j].text2);
}
options[0].selected = true;
}
document.writeln('');
document.writeln('
');
document.writeln('
Selecione o estado, para ter acesso às cidades. ');
document.writeln('