SystemElemLogin="itmLogin";
SystemElemRatings="itmRatings";
SystemElemComments="itmComments";
SystemElemCommentsCount="itmCommentsCount";
SystemElemFormComment="itmFormComment";

SystemUrl="http://users.itmidia.com.br/";
function writeLogin(htmlTag, htmlClass){
    if(!htmlTag) htmlTag='div';
    if(!htmlClass) htmlClass=''; 
    document.write('<'+htmlTag+' class="'+SystemElemLogin+' '+htmlClass+'"><!-- --></'+htmlTag+'>');
}

function writeRatings(cod_post, htmlTag, htmlClass){
    if(!htmlTag) htmlTag='div';
    if(!htmlClass) htmlClass='';
    document.write('<'+htmlTag+' class="'+SystemElemRatings+' '+htmlClass+'" cod_post="'+cod_post+'"><!-- --></'+htmlTag+'>');
}

function writeComments(cod_post, htmlTag, htmlClass, page, perpage){
    if(!htmlTag) htmlTag='div';
    if(!htmlClass) htmlClass='';
    if(!page) page=1;
    if(!perpage) perpage=3;
    document.write('<'+htmlTag+' class="'+SystemElemComments+' '+htmlClass+'" cod_post="'+cod_post+'" page="'+page+'" perpage="'+perpage+'"><!-- --></'+htmlTag+'>');
}
function writeFormComment(cod_post, htmlTag, htmlClass){
    if(!htmlTag) htmlTag='div';
    if(!htmlClass) htmlClass='';
    document.write('<'+htmlTag+' class="'+SystemElemFormComment+' '+htmlClass+'" cod_post="'+cod_post+'"><!-- --></'+htmlTag+'>');
}

function writeCommentsCount(cod_post, htmlTag, htmlClass){
    if(!htmlTag) htmlTag='span';
    if(!htmlClass) htmlClass='';      
    document.write('<'+htmlTag+' class="'+SystemElemCommentsCount+' '+htmlClass+'" cod_post="'+cod_post+'"><!-- --></'+htmlTag+'>');
}
