function edited(editedarticle){
  var objField = document.forms[0].editedfields
  gotIt = false;  //assume the current article isnt in the list
  if(objField.value.length > 0) {     //if there is a value in the input already
    sTemp = objField.value
    sTemp = sTemp.substring(0, sTemp.lastIndexOf(','))
    arrAlreadyAdded = sTemp.split(',');    //create array of existing values
    for(i=0; i < arrAlreadyAdded.length; i++){
      if(arrAlreadyAdded[i] == editedarticle){
        gotIt = true;  // already got value
        break;        // no need to look any further
      }
    }
  }
  if(!gotIt){
    objField.value += editedarticle + ','     //add value to list
  }
}

function clearfield(objTextField, strValue){
  if(objTextField.value == strValue){
    objTextField.value = ''
  } else {
    if(objTextField.value == ''){
      objTextField.value = strValue
    }
  }
}

function confirmAction(sURL){
  if(confirm('Are you sure?')){
    location.href=sURL
  }
}