<!--
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.id.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.id.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function imageWindow(imgName)
{
	var imageWindow, windowLoc;
	windowLoc = "DisplayImage.htm?" + imgName;
	imageWindow = window.open(windowLoc,"Image","toolbar=no,menubar=no,location=0,directories=0");
}

function ConfirmDelete(contid) {
if (confirm("WARNING!!\n\nAre you REALLY sure you want to delete this Member?\n\n")) {
window.location = "includes/add_edit_users.php?deluserid="+contid+"";
}
   
}

function DeleteBCard(bcid) {
if (confirm("WARNING!!\n\nAre you REALLY sure you want to delete this Business Card?\n\n")) {
window.location = "includes/delete_bcard.php?bcid="+bcid+"";
}
   
}
// -->