<!--

function confirm_kill(url)
{
var check = confirm('This command will permanently REMOVE the data from the database. Are you sure you want to do this?');

if (check)
   { window.location.href=url; }
else
   { void(0); }
}


function confirm_quit(url)
{
var check = confirm('Unless you have clicked the Save button all changes will be lost. Are you sure you want to quit?');

if (check)
   { window.location.href=url; }
else
   { void(0); }
}


function parent_jump(url)
{
window.opener.location.href=url;
window.opener.focus();
}


function search_jump(url,e)
{
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   { alert(url);
	window.location.href=url + "?sf=" + document.getElementById("sf").value;
   }
else
   { return true; }

}


function popup(popupFileName, setWidth, setHeight)
{
if (!setHeight) { setHeight = screen.height * 0.7; }
if (!setWidth) { setWidth = screen.width * 0.7; }
newWindow = window.open(popupFileName,'Popup','width=' + setWidth + ',height=' + setHeight + ',location=no,directories=no,status=no,scrollbars=yes,copyhistory=no,resizable=yes,menubar=yes');
newWindow.focus();
}


window.onload=function(){tablehighlite();}

function tablehighlite()
{
if (document.getElementById && document.createTextNode)
	{
	var tables=document.getElementsByTagName("table");
	for (var i=0;i<tables.length;i++)
	   {
	   if (tables[i].className=="list")
	      {
	      var trs=tables[i].getElementsByTagName("tr");
	      for (var j=0;j<trs.length;j++)
	         {
	         if (trs[j].parentNode.nodeName=="TBODY" && trs[j].parentNode.nodeName!="TFOOT" && trs[j].className!="nohighlite")
	            {
	            trs[j].onmouseover=function(){if (this.className=="") { this.className="highlite"; } return false}
	            trs[j].onmouseout=function(){if (this.className=="highlite") { this.className=""; } return false}
            	trs[j].ondblclick=function(){if (this.className=="clickselect") { this.className=""; } else {this.className="clickselect";} return false}
	            }
	         }
	      }
	   }
	}
}



function charcount(obj_textfld,displayfld_id,maxlimit)
{
// alert(textfld_id + ", " + displayfld_id + ", " + maxlimit);

var x = obj_textfld.value.length;

if (x > maxlimit)
   {
   document.getElementById(textfld_id).value = document.getElementById(textfld_id).value.substring(0,maxlimit);
	var x = obj_textfld.value.length;
   }

document.getElementById(displayfld_id).innerHTML = x;
}


function editview(linkid)
{
if (document.getElementById(linkid).innerHTML == "View Mode")
	{
	document.getElementById(linkid).innerHTML = "Edit Mode";
	document.getElementById("option").style.display = "none";
	}
else
	{
	document.getElementById(linkid).innerHTML = "View Mode";
	document.getElementById("option").style.display = "block";
	}
}







function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		blog = newImage("images/menu_blog_over.gif");
		books = newImage("images/menu_books_over.gif");
		about = newImage("images/menu_about_over.gif");
		resources = newImage("images/menu_blog_over.gif");
		contact = newImage("images/menu_contact_over.gif");
		podcast = newImage("images/menu_podcast_over.gif");
		login = newImage("images/menu_login_over.gif");
		logout = newImage("images/menu_logout_over.gif");
		admin = newImage("images/menu_admin_over.gif");
		preloadFlag = true;
	}
}



// -->