// removes the square border that IE
// insists on adding to checkboxes and radio

function addEvent(elm, evType, fn, useCapture)
{
if(elm.addEventListener)
  {
  elm.addEventListener(evType, fn, useCapture);
  return true;
  }
else if (elm.attachEvent)
  {
  var r = elm.attachEvent('on' + evType, fn);
  return r;
  }
else
  {
  elm['on' + evType] = fn;
  }
}


function removeCheckBoxBorders()
{
var el = document.getElementsByTagName("input");
for (i=0;i<el.length;i++)
  {
  var type = el[i].getAttribute("type");
  if((type=="checkbox")||(type=="radio"))
    {
   el[i].style.border = "none";
    }
  }
}
addEvent(window, 'load', removeCheckBoxBorders, false);


function confirmDelete() {
	return confirm('Are you sure you want to delete this item?\n\nNOTE: This cannot be undone!');
}

function popup(url,nme,hgt,wgt)
		{
		var params='toolbar=no,height='+hgt+',width='+wgt+',location=no,scrollbars=yes,status=no,menubar=no,resizable=yes';
		if(self && self.screen && self.screen.width)
			{
			params+=",left="+((self.screen.width-wgt)/2);
			params+=",top="+((self.screen.height-hgt)/2);
			}
		window.open(url,nme,params);

}


function upload_warning()
{
	// do nothing ??
	
}