bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(href_) {
	if (bIE) window.event.returnValue=false;
	document.location.href=href_;
	return false;
}
function nrc2() {
	if (bIE) window.event.returnValue=false;
	var message="Pildi kopeerimine ja salvestamine on keelatud!";
	window.alert(message);
	return false;
}
function m(val){
	if(val==0 || val<0)return (0); else return (val.length+val);
}
function anektootide_kataloog(urla,val,mod){
	if(val<0)mod_t="02";else mod_t="01";
	return(document.location.href=urla+mod+mod_t);
	
}
function open_w(w_url,w_width,w_height){
	var w_url;
	var w_height;
	var w_width;
	if (w_height == undefined)w_height="425";
	if (w_width == undefined)w_width="500";
	window.open(w_url,'user_interface','resizable=yes,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,width='+w_width+',height='+w_height);
}
function vote(url,vc){
	var url;
	if (vc == '0'){ window.alert('Palun vali hinne!'); return false;}
	document.location.href=url+vc;
}
function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}
