function LoseFocus(InElem)
{
	InElem.blur();      //alert (InElem.name);
}

function SetFocus(InElem)
{
	InElem.focus();      //alert (InElem.name);
}


function OpenMailWindow(CurMail, CurSubj, CurBody)   
{     
	alert("Your new mail will open in a new POP up window. So enable POP up windows in your web browser for this website. If the new mail message window does not open type in the following email address yourself: " + CurMail);     
urlX = "mailto:" + CurMail + "?subject=" + CurSubj + "&body=" + CurBody;
	//document.write(urlX);
	MlWin = window.open(urlX, "MlWin","top = 500,left = 500,width=50,height=50,scrollbars=NO,resizable=no,titlebar=no");
}

function Select_Page_Show()
{
     hstr3 =  SearchSoftware.Software_Name_List.value;
     //alert(hstr3);
     if (hstr3 != "") 
	{
		self.location = hstr3;} 
     else { 
		alert("To Browse to new Page: Please select a value from the drop down list.");} 
     return 0;
}


function rollon() {
  if (window.event.srcElement.className != "LinkMenuFrameB") {
     window.event.srcElement.className = "MenuItemHighlightB";
  }
}

function rolloff() {
     window.event.srcElement.className = "MenuItemFrameB";
}


function showClock()
{

if (!document.layers&&!document.all&&!document.getElementById) return;

 var Digital=new Date();
 var hours=Digital.getHours();
 var minutes=Digital.getMinutes();
 var seconds=Digital.getSeconds();
 var dn="PM";
 if (hours < 12) dn="AM";
 if (hours > 12) hours=hours-12;
 if (hours == 0) hours=12;
 if (minutes <= 9) minutes="0"+minutes;
 if (seconds<=9) seconds="0"+seconds;
 //change font size here to your desire
 myclock="<font size='1' face='Verdana' ><font size='1'></font>"+hours+":"+minutes+":"+seconds+" "+dn+"</font>";
 if (document.layers){
     document.layers.clockTick.document.write(myclock);
     document.layers.clockTick.document.close()
 }
 else if (document.all) clockTick.innerHTML=myclock;
 else if (document.getElementById)   document.getElementById("clockTick").innerHTML=myclock;  
 
 
}


var count1 = 0;
var DoneOnce = 0;
var HelpClicked = 0;

function HideDiv(id)
{
	var obj = document.getElementById(id);
	obj.style.display="none";
	count1 = 0;
	HelpClicked = 0;
}

function ShowDiv(id)
{
	var obj = document.getElementById(id);
	obj.style.display="";
	count1 = 0;
}


var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;

function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	var px = document.layers ? "" : "px";
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;el.cy = el.sy = sy;
	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};

	var z1 = 1;

	el.floatIt=function()
	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.body.clientWidth;
		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.body.scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.body.clientHeight;
		this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.floatIt()", 25);
		count1 = count1 + 1;
		
		if ((count1 > PreDelay) && (DoneOnce == 0) && (FloatHidden != 'Yes'))
		{
			ShowDiv(this.id);
			DoneOnce = -1;
		}
		if ((count1 > hideCount) && (HelpClicked == 0))
		{
			count1 = 0;
			HideDiv(this.id);
		}
		
	}
	return el;
}




function getCookie(name)
{

	var arg = name + "=";
	var alen = arg.Length;
	var clen = document.cookie.Length;
	var i = 0;
	while (i < clen)
	{
		var j = i + alen;
		if (document.cookie.substring(i,j) == arg)
			return getCookieVal (j);
		i = document.cookie.indexOf(" ",i) + 1;

		if (i == 0) break;
	}
	return null;
}

function getCookieVal (offset)
{
	var endstr = document.cookie.indexof(";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return document.cookie.substring(offset,endstr);
}




