//š
function fIn(adrss, plts, aksts, bgspalva){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+plts+'" HEIGHT="'+aksts+'" id="fla" ALIGN="">	<PARAM NAME=movie VALUE="'+adrss+'">	<PARAM NAME=quality VALUE=high>	<PARAM NAME=bgcolor VALUE=#'+bgspalva+'> <PARAM NAME=menu VALUE=false>	<EMBED src="'+adrss+'" quality=high bgcolor="#'+bgspalva+'"  WIDTH="'+plts+'" HEIGHT="'+aksts+'" NAME="fla" menu="false" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>')
}

function bigF(adrs){	document.getElementById('big_fot').src='images/big/'+adrs;
}

function stat(){	status='Padidinti nuotrauką';
}
function stat_(){
	status='';
}

function zem(){
	x = (screen.width /2)-(plotiz/2);
	y = (screen.height /2)-(aukstiz/2);	aina = window.open("", "zemelapis", 'width='+plotiz+', status=yes, height='+aukstiz+', toolbar=no, top='+y+', left='+x+', resizable=no');
	aina.document.write ('<html><body style="margin:0px; padding:0px"><img src="images/wbig/'+zemelapis+'" galleryimg="no"></body>');
	aina.document.write ('</html>');}

function siu_f(){	jau = true;	for (i=1; i <= 5; i++){		if (document.getElementById("siu"+i).value == ''){			document.getElementById("siu"+i).style.background = '#fee4e1';
			if (jau){				document.getElementById("siu"+i).focus();
				jau = false;
			}
		} else {			document.getElementById("siu"+i).style.background = '#f7f7f7';
		}
	}
	if (!jau){		alert("Turite būtinai užpildyti raudonus laukelius!");
	}else{		document.getElementById("siu_form").submit();
	}
}

function n_obj(wch){	pazymeta = 0;	for (i=1; i <= kiek_obj; i++){		if (document.getElementById("o"+i).checked == true){
			pazymeta ++;
		}
	}
	if (pazymeta == 0 || pazymeta == kiek_obj){		document.getElementById("visos").checked = true;
	}else{		if (wch == 'v'){			for (i=1; i <= kiek_obj; i++){
				document.getElementById("o"+i).checked = false;
			}
			document.getElementById("visos").checked = true;
		} else {			document.getElementById("visos").checked = false;
		}
	}
}

function n_f(){	if (document.getElementById("elp").value !=''){		document.getElementById("n_ff").submit();
	} else {		alert("Neįvedėte Elektroninio pašto adreso!");
		document.getElementById("elp").focus();
	}
}

function fgps() {
	var link = document.getElementById('gps');
    if (link) {
    	link.style.display=(link.style.display=='none')?'block':'none';
    }
}
