
function isset(varname)  {
  if(typeof( window[ varname ] ) != "undefined") return true;
  else return false;
}

function isNumberKey(evt)
{
  var charCode = (evt.which) ? evt.which : event.keyCode
	if(charCode == 44){return true;}
	if(charCode == 46){return false;}
	if(charCode == 188){return false;}
  if (charCode > 31 && (charCode < 48 || charCode > 57)){return false;}
  return true;
}

function changeLinkHref(id,newHref,oldHref) {
  if (document.links.length > 0) {
    if (document.getElementById) {
      document.getElementById(id).href = newHref;
    }
    else if (document.all) {
      document.all[id].href = newHref;
    }
    else {
      var index = findLinkByHref(oldHref);
      if (index > -1)
        document.links[index].href = newHref;
    }
  }
}


function changeMe(divObj){
divObj.innerHTML='<img src="an_image.gif" width="150" height="25" alt="Here is an image" title="" />';
}

function recommend_show()
{
	document.getElementById('rec_link').style.display = 'none';
	document.getElementById('rec_form').style.display = 'block';
}
			
			
