function SecimlistesineEkle()
{
	secimlistesi = window.document.karsilastirmaform.elements['secimlistesi[]'];
	liste = window.document.karsilastirmaform.elements['liste[]'];

	if(secimlistesi.length == 3)
	{
		window.alert("En fazla 3 model  secebilirsiniz");
		return false;
	}

	var len = secimlistesi.length;
	for(var i = 0; i < liste.length; i++)
	{
		if ((liste.options[i] != null) && (liste.options[i].selected))
		{
			var found = false;
			for(var count = 0; count < len; count++)
			{
				if (secimlistesi.options[count] != null)
				{
					if (liste.options[i].text == secimlistesi.options[count].text)
					{
						found = true;
						break;
					}
				}
			}

			if (found != true)
			{
				secimlistesi.options[len] = new Option(liste.options[i].text, liste.options[i].value);
				len++;
			}
		}
	}
}


function selectAll(lang)
 {

	vergelijkList = window.document.karsilastirmaform.elements['secimlistesi[]'];

	if(vergelijkList.length < 3)
	{
		alert("Lütfen 3 model seçin");
		return false;
	}
	window.location = '/'+lang+'/camera/specification/compare/'+vergelijkList.options[0].value+'-'+vergelijkList.options[1].value+'-'+vergelijkList.options[2].value+'.html';
}


function SecimlistesindenSil() {
var secimlistesi  = window.document.karsilastirmaform.elements['secimlistesi[]'];
var secimadedi = secimlistesi.options.length;
for(var i = (secimadedi-1); i >= 0; i--) {
if ((secimlistesi.options[i] != null) && (secimlistesi.options[i].selected == true)) {
secimlistesi.options[i] = null;
	  }
   }
}
