/* my js */
function getPriceForServer(PopularSpot, ServerName, PopItemPlaygroundId, gold) {
//PlaygroundId = MagicServerId;
var popurl = 'http://www.mmostreet.com/Ajax/GetGameMoney.php';
var popParams = 'playid='+PopItemPlaygroundId+'&Start=0&Rows=10';

var AjaxRequest = new Ajax.Request(popurl, {method: 'get', parameters: popParams, onSuccess: function(trans) { 
    eval("Response = " + trans.responseText);
    if (Response == null) return;
    Rows = Response.Rows;
    for ( var i = 0 ; i < Rows.length ; i++ ) {
        if (Rows[i][0]==gold) { 
                price = Rows[i][1].split(' ');
                $(PopularSpot).innerHTML = price[0] + price[1] + ' @ ' + ServerName + '<br/>';
                return;
        }
     }
   } 
  } // end dyn function
 ) // end parameters
} // end function

