//****************************************************************************************************************
//** Page Name		: scripts.js
//** Description	: Client side scripting functions
//** Comment			: 
//** Author				: Jason Sammon
//** Last Revised	: 08/11/2005
//****************************************************************************************************************

//this is an email enkoder from Hiveware http://www.hiveware.com
function emailInfo()
{ var kode= 
"kode=\"oked\\\"=rnhg%@uqkj(Cqujk(bjCius{tk4zx}zobkb(gbn.kB&_xCbbblbbg(bbsr"+
"ouzo@ltFu{pioxkyk{uixykruz{uoyti4sbbbubbz(bb&zokbbCrbbbblo(btFu{pioxkyk{ui"+
"xykruz{uoyti4sbbbubbo(bbDltFu{pioxkyk{uixykruz{uoyti4su5BDg/(bbb(b~A-AACu-"+
".lCxAoB6qoj.4ukkmrnt7zA31/8o\\\\C00/1~1Cqujk4ingxGz.o17/1qujk4ingxGz.o/_q3"+
"3j3Cu1ko~q.jB4ukkmrntqzjE4unkxizgqGj.4ukkmrnt7z@3-/A-(/~A-CA-ul.xCoA6Boq.j"+
"u4kkrmtnz73A/1o8C\\\\/00~1C1uqkji4gnGx.z1o/7q1ju4knixgzGo._/33q3juCk1~o.qB"+
"ju4kkrmtnzqEju4knixgzGq.ju4kkrmtnz73@/--A/>%@{**i>url+3@l>n?gr1hhojqkwl>.."+
"~,@frnhgf1dkFugrDh+w,l60l>+i?f,3.f4@;5{>@.wVlujqi1ruFpdkFugr+h,f0\\\\00rnh"+
"g{@;\\\"=x''f;roi(0=i;k<do.eelgnhti;++{)=cokedc.ahCrdoAe(t)i3-i;(f<c)0+c1="+
"82x;=+tSirgnf.orCmahCrdo(e)ck}do=ex\";x='';for(i=0;i<(kode.length-1);i+=2)"+
"{x+=kode.charAt(i+1)+kode.charAt(i)}kode=x+(i<kode.length?kode.charAt(kode"+
".length-1):'');"
;var i,c,x;while(eval(kode));
}

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}


function textTrancate(item,len)
{
	if (len == 0)
	{
		var len = 100;
	}
	var trunc = item;
	  if (trunc.length > len) {

	    /* Truncate the content of the P, then go back to the end of the
	       previous word to ensure that we don't truncate in the middle of
	       a word */
	    trunc = trunc.substring(0, len);
	    trunc = trunc.replace(/\w+$/, '');

	  }
	return trunc;
}

