var dtProferre = (new Date()).getTime(); var dispProferre = '\"\"'; var matchProferreArr = dispProferre.match(/mardian/); if (matchProferreArr != null) { gapProferre = " "; nogapProferre = ""; strCacheProferre = "c=" + dtProferre; tempCacheProferre = "" + strCacheProferre; while (tempCacheProferre.indexOf(gapProferre)>-1) { posProferre = tempCacheProferre.indexOf(gapProferre); tempCacheProferre = "" + (tempCacheProferre.substring(0, posProferre) + nogapProferre + tempCacheProferre.substring((posProferre + gapProferre.length), tempCacheProferre.length)); } newCacheProferre = tempCacheProferre; strReplaceProferre = "mardian"; tempProferre = "" + dispProferre; while (tempProferre.indexOf(strReplaceProferre)>-1) { posProferre = tempProferre.indexOf(strReplaceProferre); tempProferre = "" + (tempProferre.substring(0, posProferre) + newCacheProferre + tempProferre.substring((posProferre + strReplaceProferre.length), tempProferre.length)); } dispProferre = tempProferre; } var displayProferre = dispProferre; document.write(displayProferre);