function makeRequest( o ) { var sUrl = o.href; var request = YAHOO.util.Connect.asyncRequest( 'GET', sUrl, { success : handleSuccess, failure : handleFailure } ); } function makeRequestURL( url ) { var sUrl = url; var request = YAHOO.util.Connect.asyncRequest( 'GET', sUrl, { success : handleSuccess, failure : handleFailure } ); } function handleSuccess( o ) { if( o.responseText !== undefined ) { panel = new YAHOO.widget.Panel ( "win", { effect : { effect : YAHOO.widget.ContainerEffect.FADE, duration : 0.5 }, constraintoviewport : true, close : true, visible : false, draggable : false } ); panel.render(); var content = o.responseText; content = content.replace( /
/, '