truncate this value and pass it to the "parseInt" function. Like this:

    id = parseInt(parameter.substring(0, id_place).trim())
    if isNaN(id)
        // Error: you should pass an id number here.