function SepeteEkle(FormName,SId){
    xajax_SepeteEkle(xajax.getFormValues(FormName));
    return void(0)
}
function SepetiGuncelle(FormName){
    xajax_SepetiGuncelle(xajax.getFormValues(FormName));
    return void(0)
}
function SepetiGuncelleSatinAl(FormName){
    xajax_SepetiGuncelle(xajax.getFormValues(FormName),1);
    return void(0)
}
function SiparisEkle(FormName,SId){
    xajax_SiparisOlustur(xajax.getFormValues(FormName),SId);
    return void(0)
}
function FormIsle(FormName){
    xajax_FormIsle(xajax.getFormValues(FormName),FormName);
}
function RadioValue(){
    var radioGrp = document['forms']['form_name_or_id']['radio_grp_name'];
    for(i=0; i < radioGrp.length; i++){
        if (radioGrp[i].checked == true) {
            var radioValue = radioGrp[i].value;
        }
    }
}
function confirmDelete(Soru){
	return confirm(Soru);
}
function GizleGoster(Islem,els){
    if(els.search(',')>0){
       var elsArr=els.split(',');
       for(i=0; i < elsArr.length; i++){
        if(Islem=='Gizle'){
            $(elsArr[i]).hide();
        }else{
            $(elsArr[i]).show();
        }

       }
    }else{
        if(Islem=='Gizle'){
            $(els).hide();
        }else{
            $(els).show();
        }
    }
}
function ComboChange(Talep,SValue,ComboId){
    $(ComboId).options.length = 0;
    xajax_ComboChange(Talep,SValue,ComboId);
    var optn = document.createElement("OPTION");
    optn.value=0;
    optn.text='İlçe Seçiniz';
    $(ComboId).add(optn,null);
}
function AddSelectOption(selectObj, text, value, isSelected) 
{
    if (selectObj != null && selectObj.options != null)
    {
        selectObj.options[selectObj.options.length] = 
            new Option(text, value, false, isSelected);
    }
}
function ComboAta(ComboId,Values){
    var Secenek;
    var Secenekler=Values.split('||');

	var theSelectList = $(ComboId);

    for(i=0;i<Secenekler.length;i++){
    	Secenek=Secenekler[i].split('|');
		AddSelectOption(theSelectList, Secenek[1], Secenek[0], false);
    }
}

function MM_jumpMenu(targ,Linki,selObj,restore){ //v3.0
  eval(targ+".location='"+Linki+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_jumpMenuOnlyLink(targ,Linki,restore){ //v3.0
  eval(targ+".location='"+Linki+"'");
  //if (restore) selObj.selectedIndex=0;
}
function TabloAc(){
	var modal2 = new Control.Modal($('Window2'),{
		overlayOpacity: 0.50,
		className: 'modal',
		closeOnClick: 'window2_close'
	});
	modal2.open();
	return void(0);
}
document.observe('dom:loaded',function(){
	var KYonetimi = new Control.Window($(document.body).down('[href=#KYonetimi]'),{
		className: 'simple_window',
		closeOnClick: true,
		position: 'relative',
		offsetTop: 15
	});
});
function IliskiliFIds(){
	var Foto=$$('input.FUploadIdInputs');
	var IFotoq='';
	Foto.each( function(val) { 
		if(val.value) IFotoq=IFotoq+'&'+val.id+'='+val.value; 
	  }); 
	return IFotoq;
}
