Assistência técnica e reciclagem
\n');
document.write('
');
}
function writeFlashObject (width,height,movie,bg,flashVars)
{
if (flashVars==undefined) flashVars = "";
var tmp = "";
tmp+='
';
tmp+='
';
tmp+='
';
return tmp;
}
function createFlashRequest(url){
url = url.substring(0,url.indexOf("?")+1)+escape(url.substring(url.indexOf("?")+1,url.length));
myDiv = document.createElement("div");
document.body.appendChild(myDiv);
//if (isIE)
myDiv.innerHTML = writeFlashObject(1,1,"/NOKIA_BRAZIL_69/Get_Support/Repair/repair_and_recycle/MAIN/Diagnostics_&_repair/swf/flashrequest_lc_sender.swf","a5200a","url="+url+"&connId="+connId);
//else myDiv.innerHTML = writeFlashObject(1,1,"flashrequest_fs.swf","ff0000","url="+url);
}
function flashRequestResult(txt) {
var xmlDoc = createDOM(txt);
var state = xmlDoc.getElementsByTagName("state");
var city = xmlDoc.getElementsByTagName("city");
var technicalAssistance = xmlDoc.getElementsByTagName("technicalAssistance");
var states = xmlDoc.getElementsByTagName("states");
var cities = xmlDoc.getElementsByTagName("cities");
var technicalAssistances = xmlDoc.getElementsByTagName("technicalAssistances");
if(states.length>0){
if(state.length>0){
$('#state').find('option')[0].text = 'carregando...';
$('#state').find('option').each(function(i){
if (i > 0) $(this).remove()
});
for(var i=0; i
' + valueNode + '<\/option>')
}
$('#state').find('option')[0].text = 'selecione';
}
}
if(cities.length>0){
if(city.length>0){
$('#city').find('option')[0].text = 'carregando...';
$('#city').find('option').each(function(i){
if (i > 0) $(this).remove()
});
for(var i=0; i' + valueNode + '<\/option>')
}
$('#city').find('option')[0].text = 'selecione';
$('#city').removeAttr('disabled');
}
}
if(technicalAssistances.length>0){
if(technicalAssistance.length>0){
var lastPage = 1;
var j = 1;
var htmlPaginacao = '<<';
for(var i=0; i' + contactEmail+ '');
// $('.resposta-at').append('' + $('.at-template').html()+ '
')
var pag = Math.ceil(j/5);
$('.resposta-at').append('' + $('.at-template').html() + '
')
lastPage = pag;
j++;
}
for (var i=1; i<=lastPage; i++){
htmlPaginacao += ''+i+'';
}
htmlPaginacao += '>>';
if(lastPage==1){
htmlPaginacao = '';
}
$('.paginacao').html(htmlPaginacao);
showPage('1');
}
else{
parent.location = '/A4891111';
}
$('.background-form').hide();
$('.background-resposta').show();
$('.bt-voltar').click(function(){
$('.background-resposta').hide();
$('.resposta-at').html('');
$('#state').val('');
$('#city').find('option').each(function(i){
if (i > 0) $(this).remove()
});
$('#city').attr('disabled','disabled');
$('.background-form').show();
return false;
})
}
}
$(document).ready(function() {
$('#phoneModel').change(function(){
//alert($(this).val());
if ($(this).val()!= ''){
hbx.hc3 = $(this).find('option:selected').text().replaceAll(' ','+');
}
})
});
function showPage(pag){
$('.pages').hide();
$('.ps').removeClass('atual');
$('.page'+pag).show();
$('.p'+pag).addClass('atual');
}
String.prototype.replaceAll = function(from, to){
var str = this;
var pos = str.indexOf(from);
while (pos > -1){
str = str.replace(from, to);
pos = str.indexOf(from);
}
return (str);
};
function replaceAccent(str) {
var s=str.toString().toLowerCase();
var rExps=[ /[\xC0-\xC2]/g, /[\xE0-\xE2]/g,
/[\xC8-\xCA]/g, /[\xE8-\xEB]/g,
/[\xCC-\xCE]/g, /[\xEC-\xEE]/g,
/[\xD2-\xD4]/g, /[\xF2-\xF4]/g,
/[\xD9-\xDB]/g, /[\xF9-\xFB]/g ];
var repChar=['A','a','E','e','I','i','O','o','U','u'];
for(var i=0; i