/**
* checks and inserts data into the database

function replyPage(id, url, quote)
{
    with(document.sendObject) {
            id.value = id;
            url.value = url;
            quote.value = quote;
            submit();
    }
    
}
*/

/**
* lounches the reply/edit popup
*/
function reply(replyType, quote, id, urlToSend)
{
    var url = '/addcomments.php?runpath0=comment&runpath1=frontend&runpath2=';
    if(replyType == 'reply')
        url = url + 'replypage';
    else
        url = url + 'editpage';
    url = url + '&quote=' + quote;
    url = url + '&url=' + urlToSend;
    url = url + '&id=' + id;
    openwindowlink(url, 'commenteditreply', 450, 500);
}
