function spcrrct(trgobj) {
  var srcstr,sl,objct,i,t1,scnd_b;
  srcstr = trgobj.value; objct =""; sl=srcstr.length; i=0;
  scnd_b = 0;
  while ( i < sl ) {
    t1 = srcstr.charAt(i);
    if (t1!=" ") { objct = objct + t1 };
    i++;
  }
  srcstr = objct; sl=srcstr.length; i=0; objct="";
  while ( i <= sl ) {
    t1 = srcstr.charAt(i); objct = objct + t1;
    // --- for grater than netscape4.5 and IE4 
    if ( srcstr.charCodeAt(i) > 127) { 
      objct = objct + " "
    } else {
      // --- for less than netscpe 4.5
      if (srcstr.charCodeAt(i) < 0) {
        if ((i+1) <= sl) {
          i++;
          objct=objct + srcstr.charAt(i) + " ";
        }
      }
    }
    i++;
  };
  trgobj.value = objct;
}