// These are scripts for networking


<!--
function helpfldwin( fldname ) {
   var helpurl = '../help_fields.html#' + fldname;
   HW = window.open( helpurl,'HelpWin','toolbar=no,menubar=no,location=no,resizable=no,status=no,width=350,height=200,scrollbars=no')
   HW.focus();
}

function cur_to_past(theloc)
{
 var makepast = confirm("Do you really want to make your current job info your most recent past job position?");
 if (makepast == true)
 {
   window.location = theloc;
 }
}

function textCounter(field, maxlimit, id_name) {

   var showstr;
   var thecnt = 0;

   if (field.value.length > maxlimit) 
      // if too long...trim it!
      field.value = field.value.substring(0, maxlimit);
   else 
      // otherwise, update 'characters left' counter
      thecnt = maxlimit - field.value.length;

   showstr = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + thecnt + " of " + maxlimit + " characters remaining";
   displaychartxt( showstr, id_name );
}

function displaychartxt( text2show, id_name ) {

   var IE = (document.all) ? 1 : 0;
   var DOM = 0; 

   if (parseInt(navigator.appVersion) >=5) {DOM=1};
            
   // Detect Browser
   if (DOM) {
	   var viewer = document.getElementById(id_name);
           viewer.innerHTML=text2show;
   }
   else if(IE) {
           document.all[id_name].innerHTML=text2show;
   }
}

// -->

