function hii(catid,bubu){
	var limage = eval('document.imgl_' + catid + '.filters.alpha');
	var rimage = eval('document.imgr_' + catid + '.filters.alpha');
	var barbar = 'bar_' + catid;
	var bcolor = "#c4ccf8";
	var fcolor = "#2145fb";
	if(bw.ns4){
		obj = document.getElementById(barbar);
		obj.backgroundColor = bcolor;
		obj.color = fcolor;
	}else if(bw.ns6){
		obj = document.getElementById(barbar);
		obj.style.backgroundColor = bcolor;
		obj.style.color = fcolor;
	}else{
		obj = document.all[barbar];
		obj.style.backgroundColor = bcolor;
		obj.style.color = fcolor;
	}
	limage.opacity = 100;
	rimage.opacity = 100;
	bubu.style.cursor = 'hand';
}

function loo(catid,bubu){
	var limage = eval('document.imgl_' + catid + '.filters.alpha');
	var rimage = eval('document.imgr_' + catid + '.filters.alpha');
	var barbar = 'bar_' + catid;
	var bcolor = "#83A6FF";
	var fcolor = "White";
	if(bw.ns4){
		obj = document.getElementById(barbar);
		obj.backgroundColor = bcolor;
		obj.color = fcolor;
	}else if(bw.ns6){
		obj = document.getElementById(barbar);
		obj.style.backgroundColor = bcolor;
		obj.style.color = fcolor;
	}else{
		obj = document.all[barbar];
		obj.style.backgroundColor = bcolor;
		obj.style.color = fcolor;
	}
	limage.opacity = 50;
	rimage.opacity = 50;
	bubu.style.cursor = 'default';
}
function goo(catid){
	if (catid != 0){location.replace('./cats.asp?CatID=' + catid);}
}

function GoCats(catid){
	if (catid != 0){location.replace('./cats.asp?CatID=' + catid);}
}
function GoElem(elemid){
	if (elemid != 0){location.replace('./ratings.asp?s=1&ID=' + elemid);}
}

function fixElement(element, message) {
alert(message);
element.focus();
}

function isFormReady(form) {
var passed = false;
    if (form.isim.value == "") {
    fixElement(form.isim, "Lütfen isminizi yazınız..");
    }
    else if ((form.email.value != "") && ((form.email.value.indexOf("@") == -1) ||
             form.email.value.indexOf(".") == -1)) {
    fixElement(form.email, "Lütfen geçerli bir e-mail adresi yazınız..");
    }
    else {
    passed = true;
    }
return passed;
}
/*    onSubmit = "return isMailReady(this);"   */


function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.ns=this.ns4||this.ns6
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ie || this.ns || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
	var bw=new lib_bwcheck()

	var today;
	var bugun;
	var buggun;

	today = new Date();
	lm_month=today.getMonth()+1;
	if (lm_month<10){
		lm_month='0'+lm_month;
	}
	lm_day=today.getDate();
	if (lm_day<10){
		lm_day='0'+lm_day;
	}
	lm_year=today.getYear();

	bugun = parseInt(lm_year+lm_month+lm_day);
	buggun = lm_day + '.' + lm_month + '.' + lm_year;