
var p1 = "";

// global links
function linkGlobalAdClick(path, type, adv, id, furl)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  if (type==1)
    type_url="&lid=";
  else
    type_url="&sid=";
  if (furl.length > 0)
    nURL = path_text + "/clk_adv.aspx?adv=" + adv + "&furl=" + furl;
  else
    nURL = path_text + "/clk_adv.aspx?adv=" + adv + type_url + id + "&rv=" + rv;
  location.href = nURL;
}

function linkGlobalBookmark(path)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_bkm.aspx?rv=" + rv;
  location.href = nURL;
}

function linkGlobalAccount(path)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_act.aspx?rv=" + rv;
  location.href = nURL;
}

function linkGlobalSubmit(path)
{
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/sgn_inf.aspx";
  location.href = nURL;
}

function linkGlobalFAQ(path)
{
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_faq.aspx";
  location.href = nURL;
}

function linkGlobalTerms(path)
{
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_tos.aspx";
  location.href = nURL;
}

function linkGlobalFeedback(path)
{
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_fdb.aspx";
  location.href = nURL;
}

function linkGlobalContact(path)
{
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_con.aspx";
  location.href = nURL;
}




// location links
function linkLocEmail(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_eml.aspx?lid=" + id + "&rv=" + rv;
  location.href = nURL;
}

function linkLocBookmark(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  //nURL = path_text + "/vis_loc.aspx?lid=" + id + "&bal=" + id + "&rv=" + rv;
  nURL = path_text + "/vis_bkm.aspx?lid=" + id + "&bal=" + id + "&rv=" + rv;
  location.href = nURL;
}

function linkLocMap(path, id, address, zip)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/clk_map.aspx?act=" + id + "&site=1&addr=" + escape(address) + "&zip=" + zip + "&rv=" + rv;
  window.open(nURL);
}

function linkLocPrint(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_loc_prt.aspx?lid=" + id + "&prt=yes&rv=" + rv;
  window.open(nURL);
}

function linkLocRequestInfo(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_req.aspx?lid=" + id + "&rv=" + rv;
  location.href = nURL;
}

function linkLocWeb(path, id, furl)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/clk_web.aspx?act=" + id + "&site=1&furl=" + furl + "&rv=" + rv;
  window.open(nURL);
}





// space links
function linkSpcEmail(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_eml.aspx?eid=" + id + "&rv=" + rv;
  location.href = nURL;
}

function linkSpcBookmark(path, lid, eid)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  //nURL = path_text + "/vis_evt.aspx?eid=" + eid + "&bal=" + lid + "&rv=" + rv;
  nURL = path_text + "/vis_bkm.aspx?eid=" + eid + "&bal=" + lid + "&rv=" + rv;
  location.href = nURL;
}

function linkSpcRequestInfo(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_req.aspx?eid=" + id + "&rv=" + rv;
  location.href = nURL;
}





// service links
function linkSrvEmail(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_eml.aspx?sid=" + id + "&rv=" + rv;
  location.href = nURL;
}

function linkSrvBookmark(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  //nURL = path_text + "/vis_srv.aspx?sid=" + id + "&bas=" + id + "&rv=" + rv;
  nURL = path_text + "/vis_bkm.aspx?sid=" + id + "&bas=" + id + "&rv=" + rv;
  location.href = nURL;
}

function linkSrvMap(path, id, address, zip)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/clk_map.aspx?act=" + id + "&site=1&addr=" + address + "&zip=" + zip + "&rv=" + rv;
  window.open(nURL);
}

function linkSrvPrint(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_srv_prt.aspx?sid=" + id + "&prt=yes&rv=" + rv;
  window.open(nURL);
}

function linkSrvRequestInfo(path, id)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/vis_req.aspx?sid=" + id + "&rv=" + rv;
  location.href = nURL;
}

function linkSrvWeb(path, id, furl)
{
  rv = rand();
  var path_text = "";
  if (path == 0) { path_text = p1; }
  else { path_text = ""; }
  nURL = path_text + "/clk_web.aspx?act=" + id + "&site=1&furl=" + furl + "&rv=" + rv;
  window.open(nURL);
}





function rand()
{
  today=new Date();
  return today.getTime();
}

