function getidentifiantdatenow(){var d=new Date();item_number='id_'+d.getFullYear()+("0"+(d.getMonth()+1)).slice(-2)+("0"+d.getDate()).slice(-2)+("0"+d.getHours()).slice(-2)+("0"+d.getMinutes()).slice(-2)+("0"+d.getSeconds()).slice(-2);return(item_number);};function display_window_popup(arrayname,arraycmd,arrayconfig,arraynumber){var file='',filename='';if(arrayname){var cmd='';if(arraycmd){for(var i=0;i';inputs+='';inputs+='';inputs+='';inputs+='';inputs+='';inputs+='';tdcmd.innerHTML='';var price=(amount.value*1+0.001).toFixed(2);amount.value=price;item_number=getidentifiantdatenow();var id_number=(idx>0?' / '+item_number:'');var monthly=(price/12).toFixed(2);var remark='',os1=id_form.os1,rem=id_form.remarks;if(rem)remark=(rem.value?' - rem: '+rem.value+')':'');var textplus='Option 0: '+jset['1_single_payment_today'];switch(idx){case 0:inputs+='';inputs+='';inputs+='';inputs+='';inputs+='';break;case 1:case 2:case 3:inputs+='';inputs+='';inputs+='';var a3=monthly,t3='M',srt=0;switch(idx){case 1:textplus='Option 1: '+jset['1_one_time_payment_in_12_monthly_installments'];srt=12;break;case 2:textplus='Option 2: '+jset['permanent_annual_payment'];a3=price;t3='Y';break;case 3:textplus='Option 3: '+jset['permanent_monthly_payment'];break;};inputs+='';inputs+='';inputs+='';break;};item_name+=' ('+textplus+')';if(remark)item_name=item_name.replace(')',remark);inputs+='';inputs+='';if(!confirm(jset['are_you_sure_of_your_donation']+' : '+price+' '+params[5]+' ? \n ('+textplus+')')){tdcmd.innerHTML='';return(false);};tdcmd.innerHTML=inputs;};