function getCompassQuerystring( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
function getCompassCookie( cookie_name )
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(cookie_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + cookie_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
} 
var compass = getCompassQuerystring( 'compass' );
var mylocation = new String(document.location);
mylocation = mylocation.indexOf('ekmpowershop')
if(compass.length != 0 || mylocation != -1){document.cookie = "compass=disable";}
if(getCompassCookie('compass') != 'disable'){if(redirloc.length != 0 && document.location != redirloc){location.replace(redirloc);}}

