function link(obj)
{
	obj.href = '/redir.php?url=' + escape(obj.href);
	obj.onmousedown = '';
	return true;
}

function showdiv(id)
{
	if(document.getElementById(id).style.display == 'inline')
	{
		obj = document.getElementById(id).style.display = 'none';
	}
	else {
		obj = document.getElementById(id).style.display = 'inline';
	}
}

function rateon(hotornot)
{
    for( x = 1; x < hotornot + 1; x++ )
        document.images['rate_'+x].src = 'pic/rating/'+x+'.png';
}

function rateoff()
{
    document.images['rate_1'].src = 'pic/rating/1-off.png';
    document.images['rate_2'].src = 'pic/rating/2-off.png';
    document.images['rate_3'].src = 'pic/rating/3-off.png';
    document.images['rate_4'].src = 'pic/rating/4-off.png';
    document.images['rate_5'].src = 'pic/rating/5-off.png';
}

var checkflag = "false";
function check(field) {
if (checkflag == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag = "true";
return "Uncheck All"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag = "false";
return "Check All"; }
}