'); loc = loc.replace(/(\?|&)$/, ''); if(parent.location.href !== loc) { parent.location.href = loc; } }