var xmlhttp; if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); } else if(window.ActiveXObject) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } var shows = 0; var rid; var lc; function load(rate,rid){ lc=rid; var qs = 'https://vinomaniawines.com/dexx/snippets/video_rating.inc.php.?id='+rid+'&rate='+rate; xmlhttp.open("POST", qs); xmlhttp.onreadystatechange = handleResponse; xmlhttp.send(null); } function notext(raid) { var cy; var poy; cy = 'imgst'+raid; poy = document.getElementById(cy); poy.innerHTML=''; } function show(star_img,rnid,style) { if (shows){ if(rnid==lc){ return; } } var i; var image; var ny; var cy; var poy; cy = 'imgst'+rnid; poy = document.getElementById(cy); for (i=1; i<=star_img; i++) { image = 'qw'+rnid + i; ny = document.getElementById(image); ny.src="https://vinomaniawines.com/dexx/images/star_over.gif"; if(i=='1'){ poy.innerHTML='Poor'; } else if(i=='2'){ poy.innerHTML='Fair'; } else if(i=='3'){ poy.innerHTML='Good'; } else if(i=='4'){ poy.innerHTML='Very Good'; } else if(i=='5'){ poy.innerHTML='Excellent'; } } } function noshow(star_img,rnid,style) { if (shows){ if(rnid==lc){ return; } } var i; var image; var ny; for (i=1; i<=5; i++) { image = 'qw'+rnid + i; ny = document.getElementById(image); ny.src="https://vinomaniawines.com/dexx/images/star_out.gif"; } for (i=1; i<=star_img; i++) { image = 'qw'+rnid + i; ny = document.getElementById(image); ny.src="https://vinomaniawines.com/dexx/images/star_out.gif"; } //check(rnid,style); }function check(doc,rnid,style){ for (var i=1; i<=5; i++) { var image; var ny; image = 'qw'+rnid + i; ny = document.getElementById(image); if(i<=doc){ ny.src="https://vinomaniawines.com/dexx/images/star_over.gif"; } else { ny.src="https://vinomaniawines.com/dexx/images/star_out.gif"; } } }function mark(star_img,rid,style) { if (shows){ if(rid==lc){ return; } } show(star_img,rid,style); shows = 1; lc=rid; //var n = document.getElementById('n'+rid); //n.innerHTML = "Thank you for rating"; var qs = 'https://vinomaniawines.com/dexx/snippets/video_rating.inc.php?rate=' + star_img + '&id='+rid+'&st='+style; xmlhttp.open("POST", qs); xmlhttp.onreadystatechange = handleResponse1; xmlhttp.send(null); } function handleResponse() { if(xmlhttp.readyState == 4) { var response = xmlhttp.responseText; document.getElementById(lc).innerHTML = response; } }function handleResponse1() { if(xmlhttp.readyState == 4){ var response = xmlhttp.responseText; document.getElementById(lc).innerHTML = response; } }function showform(raid,style) { var doc="0"; document.write("
"); var i; for (i=1; i<=5; i++) { if(i<=doc){ document.write(""); } else { document.write(""); } } document.write("<- rate video
"); }