function PopUp(url,name,width,height)
{
  var winX = 0;
  var winY = 0;
  var w = width;
  var h = height;
  // only set new values if 4.0 browser, this centers the pop up window
  if (parseInt(navigator.appVersion) >= 4) {
    winX = (screen.availWidth - w)*.5;
    winY = (screen.availHeight - h)*.5;
}
  popupWin = window.open(url, name, 'scrollbars,resizable,width=' + w + ',height=' + h + ',left='  + winX + ',top=' + winY);
}

function goPage(url)
{
	if (document.images)
	location.replace(url);
	else
	location.href = url;
}

function ex_delete(url)
{
 if(confirm("Are you sure you want to DELETE this Record?")) {
    document.location.href=url
}
  return false;
}

/****************************************************
 AntiSpambotMailto() - Documentation and encoder at:
    http://www.kenric.com/AntiSpambotMailto.html
****************************************************/
function AntiSpambotMailto(codelist, description, atagattr) {
	var thiscode, thischar;
	var CodeString = new String(codelist);
	var CodedArray = CodeString.split('|');
	var L = CodedArray.length;
	var AddrDecoded = "";
	for (var x=0; x < L; x++) {
		thiscode = CodedArray[x];
		thischar = String.fromCharCode( thiscode - L );
		AddrDecoded += thischar;
	}
	atagattr = atagattr ? ' ' + atagattr : '';
	if (!description) description = AddrDecoded; // if no description supplied, display email address
	var strOutput = '<a href="mailto:'+AddrDecoded+'"' + atagattr+'>' + description + '</a>';
	document.write(strOutput);
}
