function showF(f){
if(document.getElementById(f).style.display=='none'){ 
document.getElementById(f).style.display='inline'; 
} 
else{document.getElementById(f).style.display='none';} 
} 

/* Tooltip for status */

tooltip = null;
  document.onmousemove = updateTooltip;

  function updateTooltip(e) {
    try {
      x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
      y = (document.all) ? window.event.y + document.body.scrollTop : e.pageY;
      if (tooltip != null) {
        tooltip.style.left = (x - 5) + "px";
        tooltip.style.top = (y + 23) + "px";
      	}
    } 
	catch (error) { error=null; }
  }

  function showTooltip(id) {
    try {
      tooltip = document.getElementById(id);
      tooltip.style.display = "block"
    } 
	catch (error) { error=null; }
  }

  function hideTooltip() {
    try {
      tooltip.style.display = "none";
    } 
	catch (error) { error=null; }
  }


function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}



/* Read More Read Less*/


function hasMore(id)
{   
     if(document.getElementById && document.getElementById(id).innerHTML.indexOf("<!-- more -->") != -1)
          return true;
   
    return false;
}


function showHide(entryID, entryLink)
{
    extTextDivID = ('extText' + (entryID));
    extLinkDivID = ('extLink' + (entryID));

    if(document.getElementById)
    {
        if(document.getElementById(extTextDivID).style.display)
        {
            if(entryLink != 0)
            {
                document.getElementById(extTextDivID).style.display = "block";
                document.getElementById(extLinkDivID).style.display = "none";               
            }
            else
            {
                document.getElementById(extTextDivID).style.display = "none";
                document.getElementById(extLinkDivID).style.display = "block";
            }
        }
        else
        {
            location.href = entryLink;           
        }
    }
    else
    {
        location.href = entryLink;       
    }
}