
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function delConfirm(theName,theID,type)
{
	if (type=="delCat")
	{
		var confirmMessage="Are you sure you want to delete the category '"+theName+"' (ID:"+theID+")?  Note: images in this category WILL NOT be deleted from other categories.";
	}

	if (type=="delPhoto")
	{
		var confirmMessage="Are you sure you want to delete the photo '"+theName+"' (ID:"+theID+")?  Note: this action WILL delete entries of this photo in all categories.";
	}

	if (type=="delContent")
	{
		var confirmMessage="Are you sure you want to delete the page '"+theName+"' (ID:"+theID+")?  Note: this action WILL delete all content on this page.";
	}

	if(type=="remPhoto")
	{
		var confirmMessage="Are you sure you want to remove the photo '"+theName+"' (ID:"+theID+")?  Note: this action WILL NOT remove entries of this photo in any other categories.";
	}

	if(type=="delUser")
	{
		var confirmMessage="Are you sure you want to delete user '"+theName+"' (ID:"+theID+")?  Note: this action will prevent the user from accessing the administration site.";
	}

	var confirmIt = confirm(confirmMessage);
	if (confirmIt)
		return true;
	else
		return false;
}

function changeCol(rowName)
{
	//rowName.backgroundColor='#D2DFE6'
}

