function keisti(img_name1, img_src1)
   {
   document[img_name1].src = img_src1;
   }
function keisti_id(img_name1, img_src1,type)
   {
   document.getElementById(img_name1).src = img_src1;
if(type>1){
document.getElementById(img_name1).style.width = '225px'; 
document.getElementById(img_name1).style.height = '226px'; 

}
else {
document.getElementById(img_name1).style.width = '97px'; 
document.getElementById(img_name1).style.height = '97px'; 

}   
   }
function keitimas(reiksme){
if(intas==0){
bendrauti=reiksme;
intas=1;
}
else{
bendrauti2=reiksme;
}
}

function ajaxFunction(kint,kint1){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			document.getElementById('foto').innerHTML = ajaxRequest.responseText;
		}
	}
			var url2="/scriptas.php";	
		url2=url2+"?id="+kint+"&idd="+kint1;
		url2=url2+"&sid="+Math.random();
	ajaxRequest.open("GET",url2,true);
	ajaxRequest.send(null); 
}

