$(function(){
var QSTab2 =getQSvalueByName("tab2");
if(QSTab2 != undefined && QSTab2 != null)
{
var uri=window.location.href.toString();
if (uri.indexOf("?") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("?"));
window.history.replaceState({}, document.title, clean_uri);
}
$('#tab_container_3939 li a[href="#tabs_desc_3939_2"]').trigger("click");
}
});
function getQSvalueByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
$(document).ready(function(){
if(localStorage.getItem("unit")!=undefined && localStorage.getItem("unit")!=null && localStorage.getItem("unit")=='true'){
localStorage.setItem("unit","");
$('a[href="#tabs_desc_3939_2"]').trigger('click');
}
})