<!--

var isDOM       = document.getElementById						//DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
var isOpera     = window.opera && isDOM							//Opera 5+
var isOpera6    = isOpera && window.print						//Opera 6+
var isOpera7    = isOpera && document.readyState				//Opera 7+
var isMSIE      = document.all && document.all.item && !isOpera	//Microsoft Internet Explorer 4+
var isMSIE5     = isDOM && isMSIE								//MSIE 5+
var isNetscape4 = document.layers								//Netscape 4.*
var isMozilla   = isDOM && navigator.appName=="Netscape"		//Mozilla or Netscape 6.*
var frm;
var ch = 105;
var cw = 200;
var ih = 0;
var iw = 0;

window.onload = function() {
	frm = document.forms["feed"];
	if(isMSIE || isMSIE5) {										// MS Internet Explorer
		ih = document.body.scrollHeight;
		iw = document.body.scrollWidth;
	} else if(isOpera6) {										// Opera 6
		ih = document.body.style.pixelHeight;
		iw = document.body.style.pixelWidth;
	} else if(isOpera7) {										// Opera 7
		ih = document.body.scrollHeight;
		iw = document.body.scrollWidth;
	} else if(isMozilla) {										// Mozilla and Netscape
		ih = document.height;
		iw = document.width;
	} else {													// old brouser
		ih = 625;	iw = 635;
		alert('You use old brouser\nCan be some problem');
	}
} 

function resizeOuterTo(w,h) {
	if(isMozilla) {
		top.outerWidth=w;
		top.outerHeight=h;
	} else {
		window.resizeTo(w,h);
	}
}

function compleatwindow() {
	if(frm) {
		resizeOuterTo(500,400);
	} else {
		setTimeout("compleatwindow()",100);
	}
}

function closewindow() {
	if(frm) {
		window.close();
	} else {
		setTimeout("compleatwindow()",6000);
	}
}

function selectform(i,v) {
	var a = frm.elements[i].value;
	if (a != v) {
		if (a >= 0) {
			document.getElementById((i + a)).className = '';
		}
		document.getElementById((i + v)).className = 'slc';
		frm.elements[i].value = v;
	}
}

function selectabr(i,v) {
	var a = frm.elements[i].value;
	if (a != v) {
		if (a != '') {
			document.getElementById((i + a)).className = '';
		}
		document.getElementById((i + v)).className = 'slc';
		frm.elements[i].value = v;
	}
}

function justvote() {
	var mailat  = frm.elements["eml"].value.indexOf("@",1);
	var maildot = frm.elements["eml"].value.indexOf(".",1);
	var message = frm.elements["txt"].value;
	var cnt     = message.length;
	var error   = 1;
	if((mailat == -1)||(maildot == -1)) { error = 0; }
	frm.elements["act"].value = 'vote';
	if(cnt > 1) {
		if(error) {
//			alert('Submit width e-mail');
			justsubmit();
		} else {
			alert ('Oops!\n\nAt least one valid e-mail address must be entered.');
			frm.elements["eml"].focus();
		}
	} else {
//		alert('Submit just vote');
		justsubmit();
	}
}

function justsubmit() {
	var ourUrl = location.pathname;
	ourUrl = ourUrl.substr(1,ourUrl.length);
	ourUrl = ourUrl.substr(0,ourUrl.indexOf("/"));
	if(ourUrl[1] == 'cgi-bin') {
		location.href="/index.html";
	} else {
		location.href="/" + ourUrl + "/index.shtml";
	}
	frm.submit();
}

function justresult() {
	frm.elements["act"].value = 'result';
	frm.submit();
}

-->