
var check = window.parent.gonder_url;

if(!check) { 
	var url1 = document.URL; 
} else { 
	var url1 = window.parent.gonder_url; 
}

var url2 = 'http://www.oyyla.com/dod/url.php?url='+url1;

var xmlhttp;

if (!xmlhttp && typeof XMLHttpRequest != 'undefined'){
	try {xmlhttp = new XMLHttpRequest ();}
	catch (e) {xmlhttp = false}
}

function myXMLHttpRequest(){
	var xmlhttplocal;
	try {xmlhttplocal = new ActiveXObject ("Msxml2.XMLHTTP")}
	catch (e) {
		try {xmlhttplocal = new ActiveXObject ("Microsoft.XMLHTTP")}
		catch (E) {xmlhttplocal = false;}
	}
	if (!xmlhttplocal && typeof XMLHttpRequest != 'undefined') {
		try {var xmlhttplocal = new XMLHttpRequest ();}
		catch (e) {var xmlhttplocal = false;}
	}
	return (xmlhttplocal);
}

var mnmxmlhttp = Array ();
var mnmString = Array ();
var mnmPrevColor = Array ();
var responsestring = Array ();
var myxmlhttp = Array ();
var responseString = new String;

function menealo(user,id,htmlid,md5,value){
  	if(xmlhttp) {
		url = "http://www.oyyla.com/vote.php";
		var mycontent = "id=" + id + "&user=" + user + "&md5=" + md5 + "&value=" + value;
		anonymous_vote = false;
        if (anonymous_vote == false && user == '0') {
            window.location="http://www.oyyla.com/login.php?return="+location.href;
        } else {
    		mnmxmlhttp[htmlid] = new myXMLHttpRequest();
    		if (mnmxmlhttp) {
    			mnmxmlhttp[htmlid].open ("POST", url, true);
    			mnmxmlhttp[htmlid].setRequestHeader ('Content-Type','application/x-www-form-urlencoded');
    			mnmxmlhttp[htmlid].send (mycontent);
    			errormatch = new RegExp ("^ERROR:");
    			mnmxmlhttp[htmlid].onreadystatechange = function () {
    				if (mnmxmlhttp[htmlid].readyState == 4) {
    					mnmString[htmlid] = mnmxmlhttp[htmlid].responseText;
    				}
    			}
    		}
    	}
	}
}

document.write('<iframe width="50" height="77" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" src="'+url2+'"></iframe>');