

function recordAdClick(adPlaceId)
{
  otherData = "adPlaceId=" + adPlaceId;
  ajaxCall("", "InsertAdHits", "ad",recordAdClickcallBack, '',otherData)
}

//do ajax call to record web site click on detailed page in database
function recordAdClickcallBack()
{
	return;
}

function resetTimer(minutes)
{
  //set global variables
  if (minutes)
  {
    g_timerId = 0;
    g_timeOut = minutes*60000;//convert to milliseconds
  }
  
  //if timer already exists, clear it
  if (g_timerId)
    window.clearTimeout(g_timerId);
  
  //create timer to cause a page reload which will trigger the CF session management  
  g_timerId = window.setTimeout('displayElement("divSelected","hide");', g_timeOut);

  return;
}
function setBackGround()
{
  var imageFile = "url(" + imagePath + "/rs_parch_large.jpg);";
  /*
  alert(getObj("contentTd").style.backgroundImage);
var sty ="";
  for(i in getObj("contentTd").style)
    sty = sty + ";" + i;
    alert(sty);
    * */
  //getObj("contentTd").style.backgroundImage=imageFile;
  
}


function writeMovieContent(url,divMovie)
{
   if(url.length == 0)
    return;
   var so = new SWFObject(url, "movie", "425", "355", "0", "#336699");
   so.addParam("quality", "high");
   so.addParam("wmode", "transparent");
   so.write(divMovie);
}

