if(pcurl.indexOf(".html")>-1) { location.href=pcurl; }