function getPawContent_95414(intPage) { var successHandler = function(o) { o.purge(); //removes the script node immediately after executing; } var objTransaction = YAHOO.util.Get.script("http://www.avantlink.com/product_ad_widget/paw.php?pawid=95414&pw=159355&output=js&sort=random&page=" + intPage, { onSuccess: successHandler }); return; } YAHOO.util.Event.onDOMReady(function () { // Set up the application under the YAHOO.example namespace var Ex = YAHOO.namespace('avantlink_95414'); Ex.content = YAHOO.util.Dom.get('al_paw_widget_content_95414'); Ex.handlePagination = function (state) { // Show the appropriate content for the requested page getPawContent_95414(state.page); // Update the Paginator's state, confirming change Ex.paginator.setState(state); }; // Create the Paginator widget and subscribe to its changeRequest event Ex.paginator = new YAHOO.widget.Paginator({ rowsPerPage : 1, totalRecords : 99, containers : 'al_paw_paging_95414', template : "{PreviousPageLink} {NextPageLink}" }); Ex.paginator.subscribe('changeRequest', Ex.handlePagination); // Render the Paginator into the configured container(s) Ex.paginator.render(); }); document.write(''); document.write(''); document.write(''); document.write('