hop_error( "*** Hop JSON error: " + e + " -- " + 
hop_error( "*** WITH-HOP JSON error: " + svc + ": " + e + " -- " + 
function hop_send_request( svc, sync, success, failure, anim, henv ) {   var xhr = hop_make_xml_http_request();   function onreadystatechange() {      if( xhr.readyState == 4 ) {	 try {	    var status = xhr.status;	    switch( status ) {	       case 200:		  try {		     if( hop_is_http_json( xhr ) ) {			var expr;			try {			   expr = eval( xhr.responseText );			} catch( e ) {			   hop_error( "*** Hop JSON error: " + e + " -- " +				      xhr.responseText );			   expr = false;			}			return success( expr, xhr );		     } else {			return success( xhr.responseText, xhr );		     }		  } catch( e ) {		     hop_error( "*** WITH-HOP error: " + e + " -- " +				xhr.responseText );		  }	       case 202:		  return success( hop_unserialize( xhr.responseText ), xhr );	       case 204:		  return false;	       case 257:		  return hop_js_eval( xhr );	       case 258:		  if( xhr.responseText != null )		     return eval( xhr.responseText );		  else		     return false;	       case 259:		  hop_set_cookie( xhr );		  return false;	       case 407:		  alert( "e.3=" + e + " callee=" + arguments.callee );		  hop_error( "*** Hop Authentication Error " + status + ": `"			     + xhr.responseText + "'" );		  return false;	       default:		  if( (status > 200) && (status < 300) ) {		     if( success ) {			return success( xhr.responseText, xhr );		     }		  } else {		     if( failure ) {			return failure( xhr );		     } else {			return hop_default_failure( xhr );		     }		  }	    }	 } catch( e ) {	    failure( xhr );	 } finally {	    if( hop_anim_vis != false ) {	       node_style_set( hop_anim_vis, "display", "none" );	    }	    hop_anim_service = false;	 }      }      return false;   }   if( !sync ) {      xhr.onreadystatechange = onreadystatechange;   }   xhr.open( "GET", svc, (sync != true) );   xhr.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded; charset=ISO-8859-1' );   xhr.setRequestHeader( 'Connection', 'close' );   // to force the response to be interpreted as latin-1:   // xhr.overrideMimeType( 'text/html; charset=ISO-8859-1' );      if( henv.length > 0 ) {      xhr.setRequestHeader( 'Hop-Env', hop_serialize_request_env() );   }      try {      if( anim ) hop_anim_service = svc;      xhr.send( null );      hop_stop_anim();            if( anim ) {	 hop_anim_interval =	    setInterval( function() { hop_anim( svc ) }, hop_anim_latency );      }      if( sync ) {	 if( xhr.readyState == 4 ) {	    onreadystatechange();	 } else {	    hop_error( "hop_send_request: synchronous call failed: " + svc );	 }      }   } catch( e ) {      if( hop_anim_vis != false ) {	 node_style_set( hop_anim_vis, "display", "none" );      }      hop_anim_service = false;            hop_error( e );   }   return xhr;}
4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4636/55880fddf29e0053e6a3698f986ed1f682cb1f9b/hop-request.js/buggy/share/hop-request.js