function toggle(obj,objname,flag){
	obj=document.getElementById(objname);
		if (flag) {
		   obj.style.display=flag
		}else {
		   obj.style.display=(obj.style.display=='none')?'block':'none'
		}
}
function TrackCount(fieldObj,countFieldName,maxChars)
{
  var countField = eval("fieldObj.form."+countFieldName);
  var diff = maxChars - fieldObj.value.length;

  // Need to check & enforce limit here also in case user pastes data
  if (diff < 0)
  {
    fieldObj.value = fieldObj.value.substring(0,maxChars);
    diff = maxChars - fieldObj.value.length;
  }
  countField.value = diff;
}

function LimitText(fieldObj,maxChars)
{
  var result = true;
  if (fieldObj.value.length >= maxChars)
    result = false;
  
  if (window.event)
    window.event.returnValue = result;
  return result;
}

function openZipLoc(pID) {
    var childwin = window.open('/ziphelp.php?pID=' + pID,'SelectZip', 'width=350,height=205,toolbar=no,scrollbars=no,resizeable=no,status=no');
    childwin.focus();
}
