function datosServidor() {};
datosServidor.prototype.iniciar = function() {
try {
this._xh = new XMLHttpRequest();
} catch (e) {
var _ieModelos = new Array('MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP');
var success=false;
for (var i=0;i< _ieModelos.length && !success;i++) {
try {
this._xh=new ActiveXObject(_ieModelos[i]);
success = true;
} catch (e) {
}
}
if ( !success ) {
return false;
}
return true;
}
}
datosServidor.prototype.ocupado = function() {
estadoActual = this._xh.readyState;
return (estadoActual && (estadoActual < 4));
}
datosServidor.prototype.procesa = function() {
if (this._xh.readyState == 4 && this._xh.status == 200) {
this.procesado = true;
}
}
datosServidor.prototype.enviar = function(urlget,datos) {
if (!this._xh) {
this.iniciar();
}
if (!this.ocupado()) {
this._xh.open("GET",urlget,false);
this._xh.send(datos);
if (this._xh.readyState == 4 && this._xh.status == 200) {
return this._xh.responseText;
}
}
return false;
}
function _gr(reqseccion,divcont) {
remotos = new datosServidor;
nt = remotos.enviar(reqseccion,"");
document.getElementById(divcont).innerHTML = nt;
}
function r(rating,id,cid) {
remotos = new datosServidor;
nt = remotos.enviar('http://ownquotes.com/rating/update.php?rating='+rating+'&id='+id);
rating = (rating * 25) - 8;
document.getElementById('c'+cid).style.width = rating+'px';
document.getElementById('r'+cid).style.display = 'none';
}

function cr(coid,yon,voteu,voted) {
remotos = new datosServidor;
nt = remotos.enviar('http://ownquotes.com/rating/update_comment_rating.php?yon='+yon+'&comment_id='+coid);
if(yon) voteu=voteu+1; else voted=voted+1;
document.getElementById('cr-'+coid).innerHTML = '<i><i style="color:#7a7;font-size:250%;">&#8657;</i> ('+voteu+')<i style="color:#a77;font-size:250%;">&#8659;</i> ('+voted+') (Thanks for Rating)</i>';
}
function b(id) { window.location='/report/?id='+id;}

