function refresh(){ if(location.href.indexOf('?reload=true') < 0){ location.href += '?reload=true'; } }