function naujamlange(popurl,aukstis,plotis)
{
	Sonas=(screen.width)?(screen.width-plotis)/2:100;
	Topas=(screen.height)?(screen.height-aukstis)/2:100;
	winpops=window.open(popurl,"","width="+plotis+",height="+aukstis+",top="+Topas+",left="+Sonas+",Scrollbars=no,menubar=no")
}

function countChoices(obj) {
	max = 1; // max. number allowed at a time
	
	box1 = obj.form.fOnce.checked;  // your checkboxes here
	box2 = obj.form.fTwice.checked;
	box3 = obj.form.fFour.checked;  
	box4 = obj.form.fForEachNew.checked;
	
	count = (box1 ? 1 : 0) + (box2 ? 1 : 0) + (box3 ? 1 : 0)+ (box4 ? 1 : 0);
	// add more  (box_ ? 1 : 0)  's separated by '+'
	
	if (count > max) {
		alert("Jūs galite pasirinkti tik vieną!");
		obj.checked = false;
	   }
}

function countChoicesPayment(obj) {
	max = 1; // max. number allowed at a time
	
	box1 = obj.form.fVisa.checked;  // your checkboxes here
	box2 = obj.form.fMEcard.checked;
	box3 = obj.form.fBCheque.checked;  
	box4 = obj.form.fBTransfer.checked;
	
	count = (box1 ? 1 : 0) + (box2 ? 1 : 0) + (box3 ? 1 : 0)+ (box4 ? 1 : 0);
	// add more  (box_ ? 1 : 0)  's separated by '+'
	
	if (count > max) {
		alert("Jūs galite pasirinkti tik vieną apmokėjimo būdą!");
		obj.checked = false;
	   }
}
function countChoices_en(obj) {
	max = 1; // max. number allowed at a time
	
	box1 = obj.form.fOnce.checked;  // your checkboxes here
	box2 = obj.form.fTwice.checked;
	box3 = obj.form.fFour.checked;  
	box4 = obj.form.fForEachNew.checked;
	
	count = (box1 ? 1 : 0) + (box2 ? 1 : 0) + (box3 ? 1 : 0)+ (box4 ? 1 : 0);
	// add more  (box_ ? 1 : 0)  's separated by '+'
	
	if (count > max) {
		alert("You can choose only one!");
		obj.checked = false;
	   }
}

function countChoicesPayment_en(obj) {
	max = 1; // max. number allowed at a time
	
	box1 = obj.form.fVisa.checked;  // your checkboxes here
	box2 = obj.form.fMEcard.checked;
	box3 = obj.form.fBCheque.checked;  
	box4 = obj.form.fBTransfer.checked;
	
	count = (box1 ? 1 : 0) + (box2 ? 1 : 0) + (box3 ? 1 : 0)+ (box4 ? 1 : 0);
	// add more  (box_ ? 1 : 0)  's separated by '+'
	
	if (count > max) {
		alert("You can choose only one payment method!");
		obj.checked = false;
	   }
}

function countAnketa6(obj) {
	max = 1; // max. number allowed at a time
	
	box1 = obj.form._6_a.checked;  // your checkboxes here
	box2 = obj.form._6_b.checked;
	
	//box3 = obj.form.fFour.checked;  
	//box4 = obj.form.fForEachNew.checked;
	
	count = (box1 ? 1 : 0) + (box2 ? 1 : 0);
	// add more  (box_ ? 1 : 0)  's separated by '+'
	
	if (count > max) {
		alert("Jūs galite pasirinkti tik vieną!");
		obj.checked = false;
	   }
}
function countAnketa7(obj) {
	max = 1; // max. number allowed at a time
	
	box1 = obj.form._7_a.checked;  // your checkboxes here
	box2 = obj.form._7_b.checked;
	box3 = obj.form._7_c.checked;
	//box3 = obj.form.fFour.checked;  
	//box4 = obj.form.fForEachNew.checked;
	
	count = (box1 ? 1 : 0) + (box2 ? 1 : 0)+ (box3 ? 1 : 0);
	// add more  (box_ ? 1 : 0)  's separated by '+'
	
	if (count > max) {
		alert("Jūs galite pasirinkti tik vieną!");
		obj.checked = false;
	   }
}