/* HiddenField V2.0
Copyright 2006 Intellitech Enterprises. More info available at
http://www.intellitechent.com */


function doRevealLink(ID, clickType, username, location) {
  var rtn = true;
  if(showObject(clickType + 'Val' + ID)) {
    rtn = false;
    hideObject(clickType + 'Link' + ID);
    showObject(clickType + 'Label' + ID);
    logClick(ID, clickType, username, location);
  }
  return rtn;
}

function getObject(objID) {
  if (document.all) {
    var obj = document.all[objID];
  }
  else if (document.getElementById) {
    var obj = document.getElementById(objID);
  }
  return obj;
}

function hideObject(objID) {
  var obj = getObject(objID);
  var rtn = false;
  if (obj != null) {
    obj.style.display = "none";
    rtn = true;
  }
  return rtn;
}

function showObject(objID) {
  var obj = getObject(objID);
  var rtn = false;
  if (obj != null) {
    obj.style.display = "inline";
    obj.style.position = "static";
    obj.style.width = "auto";
    obj.style.height = "auto";
    obj.style.overflow = "visible";
    rtn = true;
  }
  return rtn;
}

function logClick(ID, clickType, username, location) {
  var img = new Image();
//  var d = new Date();
  var s_clickBase = "http://www.summer-daycamps.com/cgi-bin/camps/HiddenField.cgi";
  img.src = s_clickBase + "?LinkID=" + ID + "&Type=" + clickType + "&UserName=" + username + "&Location=" + location;
}

/* ****************** END new CODE ******************** */


var SITE = 'http://www.summer-daycamps.com/cgi-bin/camps/';


function getEl(id){return (document.getElementById)?document.getElementById(id):((document.all)?document.all[id]:null);}

function displayPhone(id,type,username) {
	var el=getEl(type + id);
  el.innerHTML=el.title;
	el.style.fontSize='1.0em';
	el.style.fontWeight='bold';
	var website = SITE + 'HiddenField.cgi?LinkID=' + id + '&Type=' + type + '&UserName=' + username;
  open(website,'Hit_Counter','scrollbars=0,menubar=0,height=1,width=1,resizable=0,toolbar=0,location=0,status=0');	
	return false;
}

function displayPhone(id,type,username,location) {
	var el=getEl(type + id);
  el.innerHTML=el.title;
	el.style.fontSize='1.0em';
	el.style.fontWeight='bold';
	var website = SITE + 'HiddenField.cgi?LinkID=' + id + '&Type=' + type + '&UserName=' + username + '&Location=' + location;
  open(website,'Hit_Counter','scrollbars=0,menubar=0,height=1,width=1,resizable=0,toolbar=0,location=0,status=0');	
	return false;
}
