ask = {
    form_link: '#artist_ask',
    form_view: '_sap_ask_form.php?artist_id=' 
        + ((matches = location.search.match(/artist_id=(\d+)/)) ? matches[1] : 0),
    form_area: '#question_ask_form_area',
    form: '#question_ask_form_area form',

    /**
    * Client-side form validation just checks for non-empty inputs; each
    * error area must have id equal to its corresponding input prefixed with
    * 'e_', and error message should be in title attribute.
    */
    error_areas: '#question_ask_form_area form div.error'
};

/**
* Override settings for LABEL news+info page
*/
if (location.href.match(/\/newsinfo/)) {
    ask.form_link = '#ask_link';
    ask.form_area = '#ask_a_question div.form_area';
    ask.form = '#ask_a_question form';
}


document.write('<script type="text/javascript" src="/www2/lib/controllers/js/ask.js"></script>');
