function checksubscribe(){ makeRequest('action=subscribe&do=issub&itemid=1491052&type=author', AJPath, '_checkstatus'); } function _checkstatus(){ if(xmlHttp.readyState==4 && xmlHttp.status==200) { if(xmlHttp.responseText == '1') { Dd('subscribe').innerHTML=''; }else if(xmlHttp.responseText == '0'){ Dd('subscribe').innerHTML=''; } } } function subscribe(id,username){ makeRequest('action=subscribe&do=add&itemid=1491052&type=author', AJPath, '_checkstatus'); } function unsubscribe(){ makeRequest('action=subscribe&do=delete&itemid=1491052&type=author', AJPath, '_checkstatus'); } checksubscribe();