//---------------------------------------
function lenthtextarea(obj, maxsymbol,idkiek){
	var textt;
  	eil = maxsymbol - obj.value.length; 	
  	if (eil < 1 ){   
		textt = obj.value.substr(0,maxsymbol);  
		obj.value =  textt;    
		if (eil <= 0) eil = 0 ; 
   	} 
//document.form.aprashviso.value = eil; 
	document.getElementById(idkiek).value = eil; 
}
  
function chbackgr1(thisid,trclass){
	document.getElementById(thisid).className = trclass ;
}

function chclass(thisid,toclass,thisid2,toclass2){
	document.getElementById(thisid).className = toclass ;
	document.getElementById(thisid2).className = toclass2 ;
}

function diplaynone(chboxid,divid){
	var chvalu = document.getElementById(chboxid).checked;
	
	if(document.getElementById(chboxid).checked){
		document.getElementById(divid).style.display="inline";
	}else{
		document.getElementById(divid).style.display="none";
	}

}

var preload=new Image();
<!--preload.src="noras1_failai/present.gif";-->

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}




function showtime() {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = hours;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
document.getElementById("laikrodis").childNodes[0].nodeValue = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}


function checkboxALL(sel) {
    var chbox = document.getElementsByTagName( 'input' );
    //document.getElementById("status").childNodes[0].nodeValue = chbox.length;
    for ( var i = 0; i < chbox.length; i++ ) {
        if ( chbox[i].type == 'checkbox' ) {
            chbox[i].checked = sel;
        }
    } 

    return true;
}

function chclass(thisid,trclass){
	document.getElementById(thisid).className = trclass ;
}

function tourl(url){
	window.location.href=url;
}
