﻿
function sendEmail(encodedEmail)
{
  // do the mailto: link
  location.href = "mailto:" + decodeEmail(encodedEmail);
}
function navigate(id)
{
   // alert(document.form1.hdnInput.value);
  // do the mailto: link
  location.href = "Article.aspx?ArticleTypeId="+document.form1.hdnInput.value;
}
// return the decoded email address
function decodeEmail(encodedEmail)
{
  // holds the decoded email address
  var email = "";

  // go through and decode the email address
  for (i=0; i < encodedEmail.length;)
  {
    // holds each letter (2 digits)
    var letter = "";
    letter = encodedEmail.charAt(i) + encodedEmail.charAt(i+1)

    // build the real email address
    email += String.fromCharCode(parseInt(letter,16));
    i += 2;
  }
  
  return email;
}
function displayStatus(encodedEmail)
{
  window.status = "mailto:" + decodeEmail(encodedEmail);
}

// clear the statusbar message
function clearStatus()
{
  window.status = "";
}
	function myClickFunction(item)
	{
	        var localHostEnv='/unibase'//'/unibase';
	       
	        if (item.Category != null)
	        {    			
			        document.location.href =localHostEnv+item.Category;		    		        
	        }
	        else
	           document.location.href =localHostEnv+'Default.aspx?PageName=home';
		  
		    
		
	}
//	
//	function myHightlightFunction(item)
//	{
//		status = item.Text;
//	}


