function getCookie( name )
{
if (document.cookie.length>0)
  {
  start=document.cookie.indexOf(name + "=");
  if (start!=-1)
    {
    start=start + name.length+1;
    end=document.cookie.indexOf(";",start);
    if (end==-1) end=document.cookie.length;
    return unescape(document.cookie.substring(start,end));
    }
  }
return "";
}

function gatedContent( url )
{
 if(getCookie("AllyisContact")!="True")
 {
  $('#GatedForm').dialog('open');
 }
 else
 {
  window.location = url;
 }
}