floatX=10;floatY=10;layerwidth=234;layerheight=125;halign="left";valign="top";delayspeed=3;NS6=false;IE4=(document.all);if(!IE4){NS6=(document.getElementById)}NS4=(document.layers);function adjust(){if((NS4)||(NS6)){if(lastX==-1||delayspeed==0){lastX=window.pageXOffset+floatX;lastY=window.pageYOffset+floatY}else{var b=Math.abs(window.pageXOffset+floatX-lastX);var a=Math.abs(window.pageYOffset+floatY-lastY);var g=Math.sqrt(b*b+a*a);var h=Math.round(g/10);if(window.pageXOffset+floatX>lastX){lastX=lastX+delayspeed+h}if(window.pageXOffset+floatXlastY){lastY=lastY+delayspeed+h}if(window.pageYOffset+floatYlastX){lastX=lastX+delayspeed+h}if(e.scrollLeft+floatXlastY){lastY=lastY+delayspeed+h}if(e.scrollTop+floatY0){var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=packoblig&var='+Math.random());alrt +="Extensions : "+texte+" must be linked to a hosting package\n";}var check_condition=document.getElementById('check_condition');if(check_condition.checked==false)alrt +="You must read and accept the terms and conditions of use.\n";if(document.getElementById('check_nommage')!=null){if(document.getElementById('check_nommage').checked==false)alrt +="You must read and accept the «Décision ANRT/DG/N°12/14» as well as «procédure alternative de résolution des litiges».\n";}var exist_ssl=0;if(document.getElementById('check_ssl_0')!=null){for(var i=0; i<=document.getElementById('nbr_lien_cond_ssl').value*1; i++){if(document.getElementById('check_ssl_'+i).checked==false)exist_ssl++;};if(exist_ssl>0)alrt +="You must read and accept the terms and conditions of SSL Certificates.\n";};if(document.getElementById('check_proc')!=null){if(document.getElementById('check_proc').checked==false)alrt +="_LIRE_PROC\n";};if(document.getElementById('check_termes')!=null){if(document.getElementById('check_termes').checked==false)alrt +="You must read the reserved words list and verify that the .MA domains ordered are not listed.\n";};if(document.getElementById('check_conscient')!=null){if(document.getElementById('check_conscient').checked==false)alrt +="You must understand and accept that the .MA domains activation can take up to 5 business days.\n";};if(document.getElementById('check_pays')!=null){if(document.getElementById('check_pays').checked==false)alrt +="Applicants for .MA domain names residing abroad must designate Arcanes Technologies (Heberjahiz) as agent/administrative contact to complete the registration and management of their domain names.\n";};if(document.getElementById('check_enom')!=null){if(document.getElementById('check_enom').checked==false)alrt +="You must read and accept the Registration Agreement.\n";};if(alrt==""){if(document.getElementById("mdp_choisi_hidd").value==""){alrt +="Please choose a payment method\n";document.getElementById('other_mdp').style.display=='';}};if(alrt==""){if(logid!=1){alrt +='Please sign-in\n'; login("commande");}};if(alrt==""){if((""!="" && ""=="renew")) {var texte=filep("https://www.heberjahiz.com/en/inc/alimpanier.php","action=verif_login&from=renew&var="+Math.random());if(texte=="banned"){ alert("Votre compte a temporairement été verrouillé par mesure de sécurité. Merci de réessayer dans quelques minutes.");} else if(texte&&texte!="banned"){var affiche=texte.split("|");if(affiche[3]==1||$('#logModal').hasClass('in')){alert("Veuillez compléter/valider vos informations");return false;}}}if(confirm("You are about to confirm your order.\nDo you really want to continue?"))window.location.href='https://www.heberjahiz.com/en/panier.php?action=commander';}else{alert(alrt);if(alrt.match("extensions")){var ids_oblig=document.getElementById("id_oblig").value;if(ids_oblig){var tab=ids_oblig.split("|");for(var k=0;k=nbr_max_prd){alert("You can not order more than 25 products at a time!");}else{$.each($("tr[id^='trdom_']"),function(){$(this).hide();});$.each($("img[id^='img_pl_']"),function(){$(this).attr("src",wwwroot+"images/add.gif");});if(document.getElementById('listpack').style.display==""){$('#listpack').hide("slow");};if($('#logModal').hasClass('in')){$('#logModal').modal('hide');};if(document.getElementById('ajoutdomdiv').style.display==""){$('#ajoutdomdiv').hide("slow");}document.getElementById('packdiv').innerHTML=divformpack1; if(cd_promo)document.getElementById('id_promo').value=cd_promo;if(document.getElementById('packdiv').style.display=="none"){$('#packdiv').show("slow");}}};function hideAllTrDom(active_td,active_id){$.each($("input[type=checkbox][class^='stlds_']"),function (){if($(this).attr("value")!="ma") $(this).prop('checked',false);else $(this).prop('checked',true);});affiche_cat_stlds(19);$.each($("form[id^='id_formdom']"),function(){$(this).remove();});$.each($("tr[id^='trdom_']").not('[id^='+active_td+']'),function(){$(this).hide();});$.each($("tr[id^='trjdom_']").not('[id^='+active_td+']'),function(){$(this).hide();});$.each($("tr[id^='trssl_']").not('[id^='+active_td+']'),function(){$(this).hide();});$.each($("img[id^='img_pl_']").not('[id^=img_pl_'+active_id+']'),function(){$(this).attr("src",wwwroot+"images/add.gif");});$.each($("img[id^='img_jm_']").not('[id^=img_jm_'+active_td+']'),function (){$(this).attr("src",wwwroot+"images/add.gif");});$('#ajoutdomdiv').hide();$('#listpack').hide();$('#packdiv').hide();$('#logModal').modal('hide');$('#operationdom').empty();}function file_js(fichier){if(window.XMLHttpRequest)xhr_object=new XMLHttpRequest();else if(window.ActiveXObject)xhr_object=new ActiveXObject("Microsoft.XMLHTTP");else return(false);xhr_object.open("GET",fichier,false);xhr_object.send(null);if(xhr_object.readyState==4){return(xhr_object.responseText);}else return(false);}var is_searched=0;var code_promo_final="";var promo_direct=0;var ligne_ssl=0;function verifformpack(os){var produit=document.getElementById("prd_choi").value;var id_promo=document.getElementById("id_promo").value;if(produit=='')alert("Choose a type of hosting");else if(os==''&&produit!='serveurs')alert("Choose an operating system:");else{goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=showlistpack&div=listpack&heberg='+ produit +'&os='+ os +'&cd_promo='+id_promo,this,'listpack'); $('#listpack').show("slow");$('#tab_prd').hide("slow");if(id_promo)setTimeout("recup_total()",1500);}}function verifformpack3(produit,os,domaine,ext,trans,id_prd,stlds){if(os=='choix'){var prd='vps';document.getElementById("prd_choi").value=prd;document.getElementById("td_prd").innerHTML='  ';document.getElementById('packdiv').innerHTML=divformpack1;if(document.getElementById('packdiv').style.display=="none"){$('#packdiv').show("slow");}document.getElementById("td_prd").style.display="none";$('#td_prd').show("slow");$('#td_os').show("slow");continuer="non";}else{if(produit=="domaine"){ajout_dom_fn(domaine,ext,os,trans,'',stlds);if(stlds!=""&&stlds!=null)domaine_commande_stlds();else if(trans==1)domaine_commande();} else if(produit=="hebergement"&&os=="")verifformpack_promo('hebergement','');else if(produit=="vps"&&os==""){goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php', 'action=showlistpack&div=listpack&heberg=vps&os=linux',this,'listpack');$('#listpack').show("slow");}else if(produit=='serveurs_gen'){formpack(1,2);affiche_prd('serveurs_gen');}else if(produit=='ssl'){formpack(1,2);affiche_prd('ssl');}else{if(produit||os||id_prd){goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=showlistpack&div=listpack&heberg='+produit+'&os='+os+'&id_prd='+id_prd+'&trans='+trans,this,'listpack');$('#listpack').show("slow");}else formpack(1,2);}}}function verifformpack_promo(produit,os,domaine,ext,trans,id_prd,cdpromo){if(os=='choix'){var prd='vps';document.getElementById("prd_choi").value=prd;document.getElementById("td_prd").innerHTML='  ';document.getElementById('packdiv').innerHTML=divformpack1; if(document.getElementById('packdiv').style.display=="none"){$('#packdiv').show("slow");}document.getElementById("td_prd").style.display="none";$('#td_prd').show("slow");$('#td_os').show("slow");continuer="non";}else{if(produit=="domaine")ajout_dom_fn(domaine,ext,os,trans,cdpromo);else if(produit=="vps"||produit=="serveurs"||produit=="hebergement"||produit=="rev"||produit=="ssl"||produit=="messagerie"){if(os==""){formpack(1,2,cdpromo);if(produit)affiche_prd(produit,cdpromo);}else{goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=showlistpack&div=listpack&heberg='+ produit +'&os='+os+'&id_prd='+id_prd+'&cd_promo='+cdpromo,this,'listpack'); $('#listpack').show("slow");if(cdpromo)setTimeout("recup_total()",1500);}}else formpack(1,2,cdpromo);}}function sauve_mode(valeur,total_panier){if(valeur=="chq"&&total_panier<1){alert("Vous ne pouvez pas utiliser le paiement par chèque pour une somme inférieure à 250.00 DH TTC.");}else file("https://www.heberjahiz.com/en/inc/alimpanier.php?action=sauve_mode&mode="+valeur+"&var="+Math.random());}function change_img(img,trpl){if(trpl){if($('#'+trpl).is(':visible')) document.getElementById(img).src=wwwroot+"images/moin.gif";else document.getElementById(img).src=wwwroot+"images/add.gif";}else{if(document.getElementById(img).src==wwwroot+"images/add.gif")document.getElementById(img).src=wwwroot+"images/moin.gif";else document.getElementById(img).src=wwwroot+"images/add.gif";}}var port_eth_glob="";function domaine_commande(){if(document.getElementById("hidd_domaine_choix")!=null)verifdom(document.forms.frm0,'','operationdom');else setTimeout("domaine_commande()",300);}function domaine_commande_stlds(){if(document.getElementById("hidd_domaine_choix")!=null)verifdom_stlds(document.forms.frm0,'','operationdom');else setTimeout("domaine_commande_stlds()",300);}function non_espaces(valeur){var new_val='';for(var i=0; i<=valeur.length-1; i++){if(valeur.charAt(i)!=' '){new_val +=valeur.charAt(i);}}return new_val;};function verifdom(form,direct_trans,operationdom){var opdomaine="";var extension="";code_promo_final="";if($('#domaine_choix').length)document.getElementById("domaine_choix").value=document.getElementById("domaine_choix").value.replace(/[\&+\%|\(|\)|\= <>\'\\]/g, '');if($('#hidd_domaine_choix').length)document.getElementById("hidd_domaine_choix").value=document.getElementById("domaine_choix").value.replace(/[\.\&+\%|\(|\)|\= <>\'\\]/g, '').toLowerCase();if(form!=2){is_searched=0;if(form.opdomaine[0].checked)opdomaine='crea';else if(form.opdomaine[1].checked)opdomaine='transf';else opdomaine='chngdns';var extension=document.getElementById('idext_'+opdomaine+'1').value;var cd_promo=document.getElementById('code_promotion').value;form.domaine_choix.value=form.domaine_choix.value.toLowerCase();};if(extension!=""||direct_trans==1){if(opdomaine=="crea"&&direct_trans!=1&&form.domaine_choix.value!="")goAjax_Domaines('https://www.heberjahiz.com/en/inc/alimpanier.php','action=checkdom&domaine='+form.domaine_choix.value+'&extid='+extension+'&opdom='+opdomaine+'&j2='+form.j2_c.value+'&gamme='+form.gamme.value+'&cd_promo='+cd_promo+'&operationdom='+operationdom,form.verifier,operationdom);else{if(direct_trans!=1&&form.domaine_choix.value!="")goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=checkdom&domaine='+form.domaine_choix.value+'&extid='+extension+'&opdom='+opdomaine+'&j2='+form.j2_c.value+'&gamme='+form.gamme.value+'&cd_promo='+cd_promo,form.verifier,operationdom);if(document.getElementById('idp1')==null)setTimeout("verifdom(2,1)",500);else load_promo(1,'dom');};if(document.getElementById(operationdom) && document.getElementById(operationdom).style.display=="none"){$('#'+operationdom).show("slow");}}else alert("Please select a TLD");};function verifdom_stlds(form, direct_trans, operationdom) {var opdomaine="";var extension="";code_promo_final="";if($('#domaine_choix').length)document.getElementById("domaine_choix").value=document.getElementById("domaine_choix").value.replace(/[\&+\%|\(|\)|\= <>\'\\]/g, '');if($('#hidd_domaine_choix').length)document.getElementById("hidd_domaine_choix").value=document.getElementById("domaine_choix").value.replace(/[\&+\%|\(|\)|\= <>\'\\]/g, '').toLowerCase();if(form!=2){is_searched=0;if(form.opdomaine[0].checked)opdomaine='crea';else if(form.opdomaine[1].checked)opdomaine='transf';else opdomaine='chngdns';var extension=document.getElementById('stlds_val').value;var cd_promo=document.getElementById('code_promotion').value;form.domaine_choix.value=form.domaine_choix.value.toLowerCase();};if (extension!=""||direct_trans==1){if(opdomaine=="crea"&&direct_trans!=1&&form.domaine_choix.value!=""){goAjax_Domaines_stlds('https://www.heberjahiz.com/en/inc/alimpanier.php','action=checkdom_stlds&domaine='+form.domaine_choix.value+'&stlds='+extension+'&opdom='+opdomaine+'&j2='+form.j2_c.value+'&gamme='+form.gamme.value+'&cd_promo='+cd_promo+'&operationdom='+operationdom,form.verifier,operationdom);}else{if(direct_trans!=1&&form.domaine_choix.value!="")goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=checkdom_stlds&domaine='+form.domaine_choix.value+'&stlds='+extension+'&opdom='+opdomaine+'&j2='+form.j2_c.value+'&gamme='+form.gamme.value+'&cd_promo='+cd_promo,form.verifier, operationdom);if(document.getElementById('idp1')==null)setTimeout("verifdom_stlds(2,1)",500);else load_promo(1,'dom');};if (document.getElementById(operationdom) && document.getElementById(operationdom).style.display=="none"){$('#'+operationdom).show("slow");}} else alert("Please select a TLD");};function goAjax_Domaines(page,data,Felement,contener,method){method='post';var xhr_object=null;var origclass=Felement.className;if(window.XMLHttpRequest)xhr_object=new XMLHttpRequest();else if(window.ActiveXObject)xhr_object=new ActiveXObject("Microsoft.XMLHTTP");else{alert("Your browser does not support XMLHTTPRequest objects");return;}xhr_object.onreadystatechange=function(){if(contener!="")document.getElementById(contener).innerHTML='
Please wait ...
';Felement.disabled=true;Felement.className=origclass+" disabled";if($("#ritema").length){$("#ritema").attr("disabled",true);}if($("#ritemb").length){$("#ritemb").attr("disabled",true);}if($("#ritemc").length){$("#ritemc").attr("disabled",true);}if($("#domaine_choix").length){$("#domaine_choix").attr("disabled",true);}if($("#stlds_combo").length){$("#stlds_combo").attr("disabled",true);}if($("#idext_transf1").length){$("#idext_transf1").attr("disabled",true);}if($("#idext_chngdns1").length){$("#idext_chngdns1").attr("disabled",true);}if(xhr_object.readyState==4){Felement.disabled=false;Felement.className=origclass;if($("#ritema").length){$("#ritema").attr("disabled",false);}if($("#ritemb").length){$("#ritemb").attr("disabled",false);}if($("#ritemc").length){$("#ritemc").attr("disabled",false);}if($("#domaine_choix").length){$("#domaine_choix").attr("disabled",false);}if($("#stlds_combo").length){$("#stlds_combo").attr("disabled",false);}if($("#idext_transf1").length){$("#idext_transf1").attr("disabled",false);}if($("#idext_chngdns1").length){$("#idext_chngdns1").attr("disabled",false);}if(document.getElementById("val_total_dom")!=null){var total=document.getElementById("val_total_dom").value;var domaine=document.getElementById("domaine").value;var extension_choi=document.getElementById("idext_crea1").value;if(document.getElementById("verifier")!=null){document.getElementById("verifier").disabled=true;$("#verifier").addClass("disabled");if($("#ritema").length){$("#ritema").attr("disabled",true);}if($("#ritemb").length){$("#ritemb").attr("disabled",true);}if($("#ritemc").length){$("#ritemc").attr("disabled",true);}if($("#domaine_choix").length){$("#domaine_choix").attr("disabled",true);}if($("#stlds_combo").length){$("#stlds_combo").attr("disabled",true);}if($("#idext_transf1").length){$("#idext_transf1").attr("disabled",true);}if($("#idext_chngdns1").length){$("#idext_chngdns1").attr("disabled",true);}}for(var i=0;i Please wait ...';Felement.disabled=true;Felement.className=origclass+" disabled";if($("#ritema").length){$("#ritema").attr("disabled",true);}if($("#ritemb").length){$("#ritemb").attr("disabled",true);}if($("#ritemc").length){$("#ritemc").attr("disabled",true);}if($("#domaine_choix").length){$("#domaine_choix").attr("disabled",true);}if($("#stlds_combo").length){$("#stlds_combo").attr("disabled",true);}if($("#idext_transf1").length){$("#idext_transf1").attr("disabled",true);}if($("#idext_chngdns1").length){$("#idext_chngdns1").attr("disabled",true);}if(xhr_object.readyState==4){Felement.disabled=false;Felement.className=origclass;if($("#ritema").length){$("#ritema").attr("disabled",false);}if($("#ritemb").length){$("#ritemb").attr("disabled",false);}if($("#ritemc").length){$("#ritemc").attr("disabled",false);}if($("#domaine_choix").length){$("#domaine_choix").attr("disabled",false);}if($("#stlds_combo").length){$("#stlds_combo").attr("disabled",false);}if($("#idext_transf1").length){$("#idext_transf1").attr("disabled",false);}if($("#idext_chngdns1").length){$("#idext_chngdns1").attr("disabled",false);}document.getElementById(contener).innerHTML=xhr_object.responseText;if(document.getElementById("val_total_dom")!=null){var total=document.getElementById("val_total_dom").value;var domaine=document.getElementById("domaine").value;if(document.getElementById("verifier")!=null){document.getElementById("verifier").disabled=true;$("#verifier").addClass("disabled");}if($("#ritema").length){$("#ritema").attr("disabled",true);}if($("#ritemb").length){$("#ritemb").attr("disabled",true);}if($("#ritemc").length){$("#ritemc").attr("disabled",true);}if($("#domaine_choix").length){$("#domaine_choix").attr("disabled",true);}if($("#stlds_combo").length){$("#stlds_combo").attr("disabled",true);}if($("#idext_transf1").length){$("#idext_transf1").attr("disabled",true);}if($("#idext_chngdns1").length){$("#idext_chngdns1").attr("disabled",true);}for(var i=0;i';image.disabled=true;if(xhr_object.readyState==4){image.disabled=false;image.innerHTML=xhr_object.responseText;is_searched++;if(is_searched==total){document.getElementById("btn_ajout_dom").disabled=false;$("#btn_ajout_dom").removeClass("disabled");document.getElementById("verifier").disabled=false;$("#verifier").removeClass("disabled");if($("#ritema").length){$("#ritema").attr("disabled",false);}if($("#ritemb").length){$("#ritemb").attr("disabled",false);}if($("#ritemc").length){$("#ritemc").attr("disabled",false);}if($("#domaine_choix").length){$("#domaine_choix").attr("disabled",false);}if($("#stlds_combo").length){$("#stlds_combo").attr("disabled",false);}if($("#idext_transf1").length){$("#idext_transf1").attr("disabled",false);}if($("#idext_chngdns1").length){$("#idext_chngdns1").attr("disabled",false);}};if((xhr_object.responseText.match("panier_checked.png")||xhr_object.responseText.match("panier_valide.png"))&&document.getElementById("btn_ajout_dom").style.display=="none")document.getElementById("btn_ajout_dom").style.display="";}else{image.disabled=true;}};if(method=='post'){xhr_object.open("POST",lien,true);xhr_object.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhr_object.send(data);}}function verif_libre(){if(document.getElementById("operationdom").innerHTML.match("est libre")){document.getElementById("nobord").style.display="none";}else{setTimeout("verif_libre()",2000);}}function ext_reserve(i,ext){if(document.getElementById("check_"+i).src.match("valide")){if(document.getElementById("reserve_ext_"+i).title==1){var div='';if(ext=='press.ma'||ext=='ac.ma'||ext=='gov.ma'){div="extension_press_ac";div1="ext_press_ac";if(ext=='press.ma'){document.getElementById("span_press_acc").innerHTML="The .press.ma extension is reserved for press agencies authorized by the competent authorities. The registration of domain names under this restrictive extension requires a prior review by the National Telecommunications Regulatory Agency (ANRT).

After completing your order, you will receive an automatic e-mail from our services to which you must reply within 5 days by sending this form completed, signed and stamped.";document.getElementById("expression").innerHTML="Accept and continue";}else if(ext=='gov.ma'){document.getElementById("span_press_acc").innerHTML="The .gov.ma extension is reserved for government agencies. The registration of domain names under this restrictive extension requires a prior review by the National Telecommunications Regulatory Agency (ANRT).

After completing your order, you will receive an automatic e-mail from our services to which you must reply within 5 days by sending this form completed, signed and stamped.";document.getElementById("expression").innerHTML="Accept and continue";}else{document.getElementById("span_press_acc").innerHTML="The .ac.ma extension is reserved for academies and schools authorized by the competent authorities. The registration of domain names under this restrictive extension requires a prior review by the National Telecommunications Regulatory Agency (ANRT).

After completing your order, you will receive an automatic e-mail from our services to which you must reply within 5 days by sending this form completed, signed and stamped.";document.getElementById("expression").innerHTML="Accept and continue";}} else if(ext=='pro'){div="extension_pro";div1="ext_pro";}else{div="extension_reservee_message";div1="ext_reserv_aff";}$.fancybox({'href':'#'+div,padding:0,closeBtn:false,keys:{close:null},helpers:{overlay:{closeClick:false}}});document.getElementById(div1).title=i;} else if(document.getElementById("reserve_dom_"+i).title==1||document.getElementById("reserve_dom2_"+i).title==1){$.fancybox({'href':'#domaine_reservee_message',padding:0,closeBtn:false,keys:{close:null},helpers:{overlay:{closeClick:false}}});document.getElementById("dom_reserv_aff").title=i;}}}function chang_valide(i){var val=document.getElementById("check_"+i);if(val.src=="https://www.heberjahiz.com/en/media/img/panier_valide.png"){val.src="https://www.heberjahiz.com/en/media/img/panier_checked.png";}else{val.src="https://www.heberjahiz.com/en/media/img/panier_valide.png";}}function alimenter(laselect,dutext,form){if(laselect=="transf"){$("#idext_crea").css("display","none");$("#idext_exist").css("display","none");$("#idext_transf").css("display","inline-block");}else if(laselect=="crea") {$("#idext_crea").css("display","inline-block");$("#idext_exist").css("display","none");$("#idext_transf").css("display","none");}else{$("#idext_crea").css("display","none");$("#idext_exist").css("display","inline-block");$("#idext_transf").css("display","none");}}function change_ext_for_all(selecte){document.getElementById('idext_transf1').value=selecte.value;document.getElementById('idext_chngdns1').value=selecte.value;}function promo_exist_dom(total,rel){var code_pr=document.getElementById("code_promo_d").value;if(code_promo_final!=''){code_pr=code_promo_final+document.getElementById("code_promo_d").value;}var is_renew="";if(document.getElementById("is_renew")!=null)is_renew=1;var incorrect=0; var existe1=0;if(document.getElementById("code_promo_d").value!="Enter your promo code"&&document.getElementById("code_promo_d").value!=""){for (var j=0;j< total;j++){var prd_id=document.getElementById("id_ext_"+j).value;var paiement=document.getElementById("periode"+j).value;if(is_renew==1)var destination_ajax="verif_promo_renew";else var destination_ajax="verif_promo_prd";var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action='+destination_ajax+'&paiement='+paiement+'&code_p='+code_pr+'&prd_id='+prd_id+'&gamme=d&code_promo_ch='+document.getElementById("code_promo_d").value+'&var='+Math.random());var tab_result=texte.split("|");var tab_promo=code_promo_final.split("|");var fst_char=texte.substr(0,1);if(texte!="n"&&texte!="nn"&&!texte.match("err")&&fst_char!="n"&&tab_result[1]!=""){existe1++;if(tab_result[1]){if(document.getElementById("periode_span"+j)!=null)document.getElementById("periode_span"+j).innerHTML='';document.getElementById("promo_prix_"+j).value="oui";document.getElementById("cd_promo_"+j).value+=document.getElementById("code_promo_d").value+"|";document.getElementById('div_promo_d').innerHTML="";}}else{incorrect++;}} document.getElementById("chargement_promos").style.display="none";document.getElementById("block_n").style.display="none";if(incorrect > 0&&existe1=="0"){document.getElementById('div_promo_d').innerHTML=" Incorrect promo code";document.getElementById("code_promo_d").value="";}else{if(rel!=1)code_promo_final +=document.getElementById("code_promo_d").value+"|";var text_codes=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=detail_promos_utilses&compte='+total+'&gamme=dom&lst_codes='+code_promo_final.substring(0,((code_promo_final.length)-1))+'&var='+Math.random());document.getElementById("codes_utilises").innerHTML=text_codes;if(rel!=1)document.getElementById("cd_promo_d").value=code_promo_final;document.getElementById("code_promo_d").value="";}promo_direct=0;}}function check_domaines(total,div){if(!div) div="operationdom";if(document.getElementById("idext_crea1"))var ext_ch=document.getElementById("idext_crea1").value;else var ext_ch="";var cd_promo=document.getElementById("idp1").value;var ids="";var number_dom=0;if(document.getElementById("j2")!=null)var j2=document.getElementById("j2").value;if(document.getElementById("gamme1")!=null)var gamme=document.getElementById("gamme1").value;for(var i=0;i<=total;i++){if(document.getElementById("check_"+i)!=null){if(document.getElementById("check_"+i).src==wwwroot+"media/img/panier_checked.png"){ids+=document.getElementById("check_"+i).name+"|";number_dom++;}}};if(''!='')var nbr_prd='';else var nbr_prd=0;var curr_prods=number_dom+(nbr_prd*1);if(curr_prods>25){alert("You can not order more than 25 products at a time!");}else{if(ids){var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=add_doms&extension_ch='+ext_ch+'&domaine='+encodeURIComponent(document.getElementById("hidd_domaine_choix").value)+'&extids='+ids+'&j2='+j2+'&gamme='+gamme+'&cdp1='+cd_promo+'&var='+Math.random());document.getElementById(div).innerHTML=texte;if(cd_promo)setTimeout("recup_total()",1500);}else alert("Please select a domain name");}}function changer_image(index){var sel=document.forms.frm_cmd.cpu;var proc=sel.options[index].text;if(document.getElementById('action').value=='addcloud'){document.getElementById('img_proc').innerHTML = proc.replace(/ [0-9]{1}.[0-9]{1,2} Ghz\+/gi,'')+'

'+proc.replace(/[0-9]{1,2}x coeur(s)? /gi,'');}else{var action='affiche_image';var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?proc='+encodeURIComponent(proc)+'&action='+action+'&var='+Math.random());if(texte){var tab_txt=texte.split("|");document.getElementById("img_proc").src=wwwroot+'images/processeurs/'+tab_txt[0];}}}function recalcule(){port_eth_glob=document.frm_cmd.port_eth.selectedIndex;var res=0;res+=parseFloat(document.getElementById("cpu").value);var remises=0;if(document.getElementById("action").value=="addcloud") var typep = "cloud";else var typep = "sd";var text=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=GetRemise&periodicite='+document.getElementById("periodicite").value+'&res='+res+'&cpu='+encodeURIComponent(document.getElementById("hidd_cpu").value)+'&t='+typep+'&var='+Math.random());var tab_res=text.split("|");res=tab_res[0]*1;remises=tab_res[1]*1;var res_n_rem=res+remises;res_n_rem=format(res_n_rem);remises=format(remises);document.getElementById("ligne_remise").style.display="none";if(remises!=""&&remises!=0){document.getElementById("remise").innerHTML=remises+" .د.م";document.getElementById("ligne_remise").style.display="";}else{document.getElementById("remise").innerHTML="0 DH";document.getElementById("ligne_remise").style.display="none";}document.getElementById("total").innerHTML=format(res)+" .د.م";document.getElementById("hidd_total").value=res;document.getElementById("hidd_total_n_remise").value=(res_n_rem);}function change_val_hid(id_hidd,id_sel,slected,promo){selected_txt=document.getElementById(id_sel).options[slected].text;var sel_error=0;var affect_hidd=1;if(id_sel=="interface_ges"){if(!selected_txt.toLowerCase().match("cpanel")){selected_support=document.getElementById("support").options[document.frm_cmd.support.selectedIndex].text;if(!(selected_support.toLowerCase()).match("bas")){alert("Managed services are available for servers with cPanel/WHM only.");document.frm_cmd.support.selectedIndex=0;affect_hidd=0;}}selected_txt_os=document.getElementById('se').options[document.frm_cmd.se.selectedIndex].text;if(document.getElementById("action").value=="addcloud") var typep = "cloud";else var typep = "sd";var text=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=GetCompa&composant='+encodeURIComponent(selected_txt)+'&os='+encodeURIComponent(selected_txt_os)+'&id_composant='+id_sel+'&t='+typep+'&var='+Math.random());if(text!=1){alert(text);document.frm_cmd.interface_ges.selectedIndex=0;document.getElementById("hidd_interface_ges").value=document.frm_cmd.interface_ges.options[0].text.replace(" - .د.م/month",'');affect_hidd=0;}};if(id_sel=="se"){document.frm_cmd.interface_ges.selectedIndex=0;document.getElementById("hidd_interface_ges").value=document.frm_cmd.interface_ges.options[0].text.replace(" - .د.م/month",'');if(document.getElementById('action').value!='addcloud') {document.frm_cmd.stats.selectedIndex=0;document.getElementById("hidd_stats").value=document.frm_cmd.stats.options[0].text.replace(" - .د.م/month",'');}document.frm_cmd.antivirus.selectedIndex=0;document.getElementById("hidd_antivirus").value=document.frm_cmd.antivirus.options[0].text.replace(" - .د.م/month",'');document.frm_cmd.support.selectedIndex=0;document.getElementById("hidd_support").value=document.frm_cmd.support.options[0].text.replace(" - .د.م/month",'');if((selected_txt.toLowerCase()).match("windows")){selected_interface=document.getElementById("interface_ges").options[document.frm_cmd.interface_ges.selectedIndex].text;if((selected_interface.toLowerCase()).match("cpanel")){var message="cPanel/WHM is not compatible with Windows.";document.frm_cmd.interface_ges.selectedIndex=0;selected_support=document.getElementById("support").options[document.frm_cmd.support.selectedIndex].text;if(!(selected_support.toLowerCase()).match("gratuit")){document.frm_cmd.support.selectedIndex=0;message +="\nManaged services are available for servers with cPanel/WHM only.";affect_hidd=0;}alert(message);}}};if(id_sel=="support"){if(!(selected_txt.toLowerCase()).match("gratuit")){selected_interface=document.getElementById("interface_ges").options[document.frm_cmd.interface_ges.selectedIndex].text;if(!(selected_interface.toLowerCase()).match("cpanel")){alert("Managed services are available for servers with cPanel/WHM only.");document.frm_cmd.support.selectedIndex=0;affect_hidd=0;}}};if(id_sel=="dd"){if((selected_txt.toLowerCase()).match("san")){selected_dd2=document.getElementById("dd2").options[document.frm_cmd.dd2.selectedIndex].text;if(!(selected_dd2.toLowerCase()).match("san") && !(selected_dd2.toLowerCase()).match("none")){alert("You can not mix the two modes of storage Local and SAN");document.frm_cmd.dd2.selectedIndex=0;affect_hidd=0;}}if((selected_txt.toLowerCase()).match("local")){selected_dd2=document.getElementById("dd2").options[document.frm_cmd.dd2.selectedIndex].text;if(!(selected_dd2.toLowerCase()).match("local") && !(selected_dd2.toLowerCase()).match("none")){alert("You can not mix the two modes of storage Local and SAN");document.frm_cmd.dd2.selectedIndex=0;affect_hidd=0;}}};if(id_sel=="dd2"){if((selected_txt.toLowerCase()).match("san")){selected_dd=document.getElementById("dd").options[document.frm_cmd.dd.selectedIndex].text;if(!(selected_dd.toLowerCase()).match("san")){alert("You can not mix the two modes of storage Local and SAN");document.frm_cmd.dd2.selectedIndex=0;affect_hidd=0;}}if((selected_txt.toLowerCase()).match("local")){selected_dd=document.getElementById("dd").options[document.frm_cmd.dd.selectedIndex].text;if(!(selected_dd.toLowerCase()).match("local")){alert("You can not mix the two modes of storage Local and SAN");document.frm_cmd.dd2.selectedIndex=0;affect_hidd=0;}}};if(id_sel=="stats"||id_sel=="antivirus"){selected_txt_os=document.getElementById('se').options[document.frm_cmd.se.selectedIndex].text;if(document.getElementById("action").value=="addcloud") var typep = "cloud"; else var typep = "sd";var text=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=GetCompa&composant='+encodeURIComponent(selected_txt)+'&os='+encodeURIComponent(selected_txt_os)+'&id_composant='+id_sel+'&t='+typep+'&var='+Math.random());if(text!=1){alert(text);document.frm_cmd.elements[id_sel].selectedIndex=0;document.getElementById("hidd_"+id_sel).value=document.frm_cmd.elements[id_sel].options[0].text.replace(" - .د.م/month",'');affect_hidd=0;}};if(id_sel=="port_eth"){var sel=document.forms.frm_cmd.transfert_mens;var selected_port=document.getElementById("port_eth").options[document.frm_cmd.port_eth.selectedIndex].text;var now_val=document.getElementById("transfert_mens").options[document.frm_cmd.transfert_mens.selectedIndex].text;var test_val=now_val.split(' - ');test_val=(test_val[0].replace(" GB",''))*1;if((!selected_port.match("100 ")&&now_val.match("100 "))||((!selected_port.match("10 ")&&now_val.match("10 ")))){alert("You can not change the uplink");document.frm_cmd.port_eth.selectedIndex=port_eth_glob;affect_hidd=0;return false;}else if(selected_port.match("10 ")&&(test_val > 3269.5)){alert("You can not enjoy all the selected bandwidth with uplink you have selected");document.frm_cmd.port_eth.selectedIndex=port_eth_glob;affect_hidd=0;return false;}else port_eth_glob=document.frm_cmd.port_eth.selectedIndex;};if(id_sel=="transfert_mens"){var sel=document.forms.frm_cmd.port_eth;var selected_transf=document.getElementById("transfert_mens").options[document.frm_cmd.transfert_mens.selectedIndex].text;var selected_port=document.getElementById("port_eth").options[document.frm_cmd.port_eth.selectedIndex].text;var test_val=selected_transf.split(' - ');test_val=(test_val[0].replace(" GB",''))*1;if(selected_port.match("10 ")&&(test_val > 3269.5)){alert("You can not enjoy all the selected bandwidth with uplink you have selected");document.frm_cmd.transfert_mens.selectedIndex=0;affect_hidd=0;return false;};if(selected_transf.match("100 "))var ereg='100';else if(selected_transf.match("10 ")&&!selected_transf.match("100 "))var ereg='10';for(i=0;i< sel.options.length;i++){if(sel.options[i].value!=""){if(sel.options[i].text.match(ereg+' ')){sel.options[i].selected=true;document.getElementById("hidd_port_eth").value=sel.options[i].text.replace(" - .د.م/month",'');port_eth_glob=i;break;}}}};if(id_sel=="dc"){var driv_c=selected_txt.split(' - ');driv_c=driv_c[0];var text=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=nbr_dd_add&nom_driv='+encodeURIComponent(driv_c)+'&var='+Math.random());var total_dd=1;for(var i=2;i<=6;i++){if(!document.getElementById('dd'+i).options[document.getElementById('dd'+i).options.selectedIndex].text.match('None'))total_dd++;};if(text*1>total_dd){alert("You must select "+text+" Drives at least for this disk controller");document.frm_cmd.dc.selectedIndex=0;affect_hidd=0;}};if(id_sel.match("^[dd2-6]+$")&&promo!=1){var ligne=id_sel.replace("dd","");var tab_dd_ordre=Array('','','a second drive','a third drive','a fourth drive','a fifth drive','a sixth drive');for(var i=2; i<=(ligne*1); i++){if(i!=ligne&&document.getElementById('dd'+i).options[document.getElementById('dd'+i).options.selectedIndex].text.match('None')){alert("You must select "+tab_dd_ordre[i]);document.frm_cmd.elements[id_sel].selectedIndex=0; document.getElementById('dd'+i).focus();affect_hidd=0;break;}}};if(id_sel=="cpu")document.getElementById("hidd_cpu_num").value=slected;if(affect_hidd==1){selected_txt=selected_txt.replace(" - .د.م/month",'');document.getElementById("hidd_"+id_sel).value=selected_txt;}else document.getElementById("hidd_"+id_sel).value=document.frm_cmd.elements[id_sel].options[0].text.replace(" - .د.م/month",'');}function titre_panier(){var valeur=document.getElementById("periodicite").value;if(valeur=="mensuel") valeur="1 month";else if(valeur=="trimestriel")valeur="3 months";else if(valeur=="semestriel")valeur="6 months";else if(valeur=="annuel")valeur="1 year";else if(valeur=="2an")valeur="2 years";else{for(var i=3;i<=10;i++){if(i+"an"==valeur){valeur=i+" years";break;}}}document.getElementById("panier_prix").innerHTML="Cost of subscription
"+valeur;document.getElementById("panier_prix_mobile").innerHTML="Cost of subscription "+valeur;}function changer_prix(){res=0;res+=parseFloat(document.getElementById("cpu").value);res+=parseFloat(document.getElementById("ram").value)-parseFloat(document.getElementById("hidd_ram_prix").value);res+=parseFloat(document.getElementById("dd").value)-parseFloat(document.getElementById("hidd_dd_prix").value);res+=parseFloat(document.getElementById("dd2").value)- parseFloat(document.getElementById("hidd_dd2_prix").value);if(document.getElementById("dd3")!=null) res+=parseFloat(document.getElementById("dd3").value)- parseFloat(document.getElementById("hidd_dd3_prix").value);if(document.getElementById("dd4")!=null) res+=parseFloat(document.getElementById("dd4").value)- parseFloat(document.getElementById("hidd_dd4_prix").value);if(document.getElementById("dd5")!=null) res+=parseFloat(document.getElementById("dd5").value)- parseFloat(document.getElementById("hidd_dd5_prix").value);if(document.getElementById("dd6")!=null) res+=parseFloat(document.getElementById("dd6").value)- parseFloat(document.getElementById("hidd_dd6_prix").value);res+=parseFloat(document.getElementById("port_eth").value)- parseFloat(document.getElementById("hidd_port_eth_prix").value);res+=parseFloat(document.getElementById("transfert_mens").value)- parseFloat(document.getElementById("hidd_transfert_mens_prix").value);res+=parseFloat(document.getElementById("support").value)- parseFloat(document.getElementById("hidd_support_prix").value);res+=parseFloat(document.getElementById("backup").value)- parseFloat(document.getElementById("hidd_backup_prix").value);res+=parseFloat(document.getElementById("se").value)- parseFloat(document.getElementById("hidd_se_prix").value);res+=parseFloat(document.getElementById("interface_ges").value)- parseFloat(document.getElementById("hidd_interface_ges_prix").value);res+=parseFloat(document.getElementById("adresse_ip").value)- parseFloat(document.getElementById("hidd_adresse_ip_prix").value);if(document.getElementById("adresse_ipv6")!=null) res+=parseFloat(document.getElementById("adresse_ipv6").value)- parseFloat(document.getElementById("hidd_adresse_ipv6_prix").value);if(document.getElementById("stats")!=null) res+=parseFloat(document.getElementById("stats").value)- parseFloat(document.getElementById("hidd_stats_prix").value);res+=parseFloat(document.getElementById("firewall").value)- parseFloat(document.getElementById("hidd_firewall_prix").value);res+=parseFloat(document.getElementById("antivirus").value)- parseFloat(document.getElementById("hidd_antivirus_prix").value);if(document.getElementById("kvm")!=null) res+=parseFloat(document.getElementById("kvm").value)- parseFloat(document.getElementById("hidd_kvm_prix").value);if(document.getElementById("dc")!=null) res+=parseFloat(document.getElementById("dc").value)- parseFloat(document.getElementById("hidd_dc_prix").value);var remises=0;if(document.getElementById("action").value=="addcloud") var typep = "cloud";else var typep = "sd";var text=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=GetRemise&periodicite='+document.getElementById("periodicite").value+'&res='+res+'&cpu='+encodeURIComponent(document.getElementById("hidd_cpu").value)+'&t='+typep+'&var='+Math.random());var tab_res=text.split("|");res=tab_res[0]*1;remises=tab_res[1]*1;var res_n_rem=res+remises;res_n_rem=format(res_n_rem);res=res;remises=format(remises);document.getElementById("ligne_remise").style.display="none";if(remises!=""&&remises!=0){document.getElementById("remise").innerHTML=remises+" .د.م";document.getElementById("ligne_remise").style.display="";}else{document.getElementById("remise").innerHTML="0 .د.م";document.getElementById("ligne_remise").style.display="none";}document.getElementById("total").innerHTML=format(res)+" .د.م";document.getElementById("hidd_total").value=res;document.getElementById("hidd_total_n_remise").value=res_n_rem;}function format(nStr){nStr=nStr.toFixed(2);nStr +='';x=nStr.split('.');x1=x[0];x2=x.length > 1 ? '.'+x[1] : '';if('ar'!='en'){var rgx=/(\d+)(\d{3})/;while (rgx.test(x1)){x1=x1.replace(rgx,'$1'+' '+'$2');}}return x1+x2;}function verif_hostname(lien){var err="";document.getElementById("hostname").value=document.getElementById("hostname").value.toLowerCase();var hostname=document.getElementById("hostname").value;if(hostname.match("[^a-z0-9\-.]"))err="The hostname must contain only alphanumeric characters and hyphens.\n";if(hostname.indexOf(".")==-1)err +="\nThe hostname must contain at least one period.";if(hostname.indexOf(".")=="0"||hostname.charAt((hostname.length)-1)==".")err +="\nThe hostname should not start or end with a period.";if(hostname.indexOf("-")=="0"||hostname.charAt((hostname.length)-1)=="-")err +="\nThe hostname should not start or end with a hyphen.";if(hostname.length < 2||hostname.length >57)err +="\nHostname too short or too long.";if(trim(hostname)=="server.domain.com")err +="\nInvalide hostname";if(err){alert(err);return false;}else document.getElementById("periodicite").disabled="";}function verif_nbr_dom(id_vps,tot_opt){var texte=file("https://www.heberjahiz.com/en/inc/alimpanier.php?action=verif_nbr_dom&id_vps="+id_vps+"&var="+Math.random());for(var i=0; i< tot_opt; i++){if(document.getElementById("val_opt_"+i).value.match("à Plesk "+texte+" domaines")){document.getElementById("id_opt_"+i).checked=false;document.getElementById("id_opt_"+i).disabled=true;document.getElementById("contener_"+i).style.display="none";}else{document.getElementById("id_opt_"+i).disabled=false;document.getElementById("contener_"+i).style.display="";};if(document.getElementById("val_opt_"+i).value.match("à Plesk domaines "+texte)){for(var j=0; j< tot_opt; j++){if(document.getElementById("val_opt_"+j).value.match("Upgrade")){document.getElementById("id_opt_"+j).checked=false;document.getElementById("id_opt_"+j).disabled=true;document.getElementById("contener_"+j).style.display="none";}}}}}function verif_hostname1(nbr,nbr_opt){var err="";document.getElementById("n_machine_vps").value=document.getElementById("n_machine_vps").value.toLowerCase();var hostname=document.getElementById("n_machine_vps").value;if(hostname.match("[^a-z0-9\-.]"))err="The hostname must contain only alphanumeric characters and hyphens.\n";if(hostname.indexOf(".")==-1)err +="\nThe hostname must contain at least one period.";if(hostname.indexOf(".")=="0"||hostname.charAt((hostname.length)-1)==".")err +="\nThe hostname should not start or end with a period.";if(hostname.indexOf("-")=="0"||hostname.charAt((hostname.length)-1)=="-")err +="\nThe hostname should not start or end with a hyphen.";if(hostname.length < 2||hostname.length > 57)err +="\nHostname too short or too long.";if(hostname=="server.my-vps.com")err +="Please enter a hostname.";var nb_checked=0;for(var i=0;i<=nbr; i++){if(document.getElementById("rad_"+i)!=null){if(document.getElementById("rad_"+i).checked)nb_checked++;}};if(nb_checked=="0"){alert("Please select a package");return false;}for(var i=0; i< nbr_opt; i++){if(document.getElementById("id_opt_"+i).checked==true&&document.getElementById("val_opt_"+i).value.match("IP additionnelles")&&document.getElementById("nbr_ips").value==""){err +="\nYou must choose the number of additional IP addresses";};if(document.getElementById("id_opt_"+i).checked==true&&document.getElementById("val_opt_"+i).value.match("Language")&&document.getElementById("nbr_lang").value==""){err +="\nYou must choose the number of Plesk Language Pack";}};if(err){alert(err);return false;}else{non_disabled1(nbr,nbr_opt);if(document.getElementById('code_promo').value!=''&&document.getElementById('code_promo').value!='Enter your promo code'){document.getElementById('code_promo').value='';}else document.getElementById('cd_promo').value=code_promo_final;document.form_vps.submit();}}function desac_check(nbr_check,nbr_total,compt){var nb_checked_pack=0;for(var i=0;i<=nbr_total;i++){if(document.getElementById("rad_"+(i+1))!=null){if(document.getElementById("rad_"+(i+1)).checked)nb_checked_pack++;}};if(nb_checked_pack>0){if(document.getElementById("val_opt_"+nbr_check).value.match("cPanel")&&document.getElementById("id_opt_"+nbr_check).checked==true){for(var i=0; i< nbr_total; i++){if(document.getElementById("val_opt_"+i).value.match("Plesk")){document.getElementById("id_opt_"+i).checked=false;document.getElementById("id_opt_"+i).disabled=true;document.getElementById("nbr_lang").disabled=true;document.getElementById("contener_"+i).style.color="#CAC8BB";document.getElementById("nbr_lang").value="";}}}else{if(!document.getElementById("val_opt_"+nbr_check).value.match("IP")){for(var i=0; i< nbr_total; i++){if(document.getElementById("val_opt_"+i).value.match("Plesk")&&!document.getElementById("val_opt_"+i).value.match("100 domaines")){document.getElementById("id_opt_"+i).disabled=false;document.getElementById("nbr_lang").disabled=false;document.getElementById("contener_"+i).style.color="#8D97A0";}}}};if(document.getElementById("val_opt_"+nbr_check).value.match("Plesk")&&document.getElementById("id_opt_"+nbr_check).checked==true){for(var i=0; i< nbr_total; i++){if(document.getElementById("val_opt_"+i).value.match("cPanel")){document.getElementById("id_opt_"+i).checked=false;document.getElementById("id_opt_"+i).disabled=true;document.getElementById("contener_"+i).style.color="#CAC8BB";}}}else if(document.getElementById("id_opt_"+nbr_check).checked==false){var affiche_cpanel=0;for(var i=0; i< nbr_total; i++){if(document.getElementById("val_opt_"+i).value.match("Plesk")&&document.getElementById("id_opt_"+i).checked==true&&i!=nbr_check){affiche_cpanel++;}};if(affiche_cpanel=="0"){for(var j=0; j< nbr_total; j++){if(document.getElementById("val_opt_"+j).value.match("cPanel")){document.getElementById("id_opt_"+j).disabled=false;document.getElementById("contener_"+j).style.color="#8D97A0";}}}};if(document.getElementById("val_opt_"+nbr_check).value.match("Upgrade Plesk 100 domaines")&&document.getElementById("id_opt_"+nbr_check).checked==true){var prd="";for(var i=1; i< compt; i++){if(document.getElementById("rad_"+i).checked==true){prd=document.getElementById("rad_"+i).value;if(document.getElementById("domaines_"+prd).innerHTML.match("10")){document.getElementById("id_opt_"+(nbr_check-1)).checked=true;document.getElementById("id_opt_"+(nbr_check-1)).disabled=true;}break;}}}else if(document.getElementById("val_opt_"+nbr_check).value.match("Upgrade Plesk 100 domaines")&&document.getElementById("id_opt_"+nbr_check).checked==false){var prd="";for(var i=1; i< compt; i++){if(document.getElementById("rad_"+i).checked==true){prd=document.getElementById("rad_"+i).value;if(document.getElementById("domaines_"+prd).innerHTML.match("10")){document.getElementById("id_opt_"+(nbr_check-1)).disabled=false;}break;}}}}else{alert("Please select a package");document.getElementById("id_opt_"+nbr_check).checked=false;}}function check2(nbr_line,nbr_total){var nb_checked_pack=0;for(var i=0;i<=nbr_total; i++){if(document.getElementById("rad_"+i)!=null){if(document.getElementById("rad_"+i).checked)nb_checked_pack++;}};if(nb_checked_pack > 0){if(document.getElementById("nbr_lang").value!=""){document.getElementById("id_opt_"+nbr_line).checked=true;for(var i=0; i< nbr_total; i++){if(document.getElementById("val_opt_"+i).value.match("cPanel")){document.getElementById("id_opt_"+i).disabled=true;document.getElementById("id_opt_"+i).checked=false;}}}else{document.getElementById("id_opt_"+nbr_line).checked=false;for(var i=0; i< nbr_total; i++){if(document.getElementById("val_opt_"+i).value.match("cPanel")){document.getElementById("id_opt_"+i).disabled=false;}}}}else{alert("Please select a package");document.getElementById("nbr_lang").value="";}}function check2ip(nbr_line,nbr_total){var nb_checked_pack=0;for(var i=0;i<=nbr_total;i++){if(document.getElementById("rad_"+(i+1))!=null){if(document.getElementById("rad_"+(i+1)).checked)nb_checked_pack++;}};if(nb_checked_pack>0){if(document.getElementById("nbr_ips").value!=""){document.getElementById("id_opt_"+nbr_line).checked=true;}else{document.getElementById("id_opt_"+nbr_line).checked=false;}}else{alert("Please select a package");document.getElementById("nbr_ips").value="";}}function desactiver_flech(id_td,image){document.getElementById(id_td).innerHTML='';}function activer_flech(id_td,fonction,image){document.getElementById(id_td).innerHTML='';}function sui_ssl(){if(document.getElementById("div_"+(ligne_ssl+1))!=null){document.getElementById("div_"+ligne_ssl).style.display="none";ligne_ssl++;document.getElementById("div_"+ligne_ssl).style.display="";};if(document.getElementById("div_"+(ligne_ssl+1))==null)desactiver_flech("sui","sui_ssl_n");if(document.getElementById("div_"+(ligne_ssl-1))!=null)activer_flech("prec","prec_ssl()","prec_ssl");}function prec_ssl(){if(document.getElementById("div_"+(ligne_ssl-1))!=null){document.getElementById("div_"+ligne_ssl).style.display="none";ligne_ssl--;document.getElementById("div_"+ligne_ssl).style.display="";};if(document.getElementById("div_"+(ligne_ssl-1))==null)desactiver_flech("prec","prec_ssl_n");if(document.getElementById("div_"+(ligne_ssl+1))!=null)activer_flech("sui","sui_ssl()","sui_ssl");}function decrypt_csr(id_ssl){var i=id_ssl;if(document.getElementById("tab_asup_"+i)!=null&&document.getElementById("tab_asup_"+i).style.display==""){if(document.getElementById("csr_"+i)!=null){if(document.getElementById("csr_"+i).value!=""){var val_csr=encodeURIComponent(document.getElementById("csr_"+i).value);var texte=file("https://www.heberjahiz.com/en/inc/ajax.php?action1=csr&prdssl="+document.getElementById("prod_name_"+i).value+"&csr="+val_csr+"&var="+Math.random());var err="";if(texte.match("bad end line"))err="Please check that you have entered the last line: -----END CERTIFICATE REQUEST-----";else if(texte.match("no start line"))err="Please check that you have entered the first line: -----BEGIN CERTIFICATE REQUEST-----";else if(texte.match("bad base64 decode"))err="Bad Request";else if(texte.match("errwildcard1"))err="The common name given to your CSR must begin with an asterisk * since have chosen a WildCard SSL certificate.";else if(texte.match("errwildcard2"))err="The common name given to your CSR shouldn't begin with an asterisk * since have not chosen a WildCard SSL certificate.";else if(texte==""||texte.match("error"))err="Your CSR is invalid";else if(texte.match("errkeylength")){var tab_err=texte.split("|");err="CSR key length less than 2048 bits is considered weak. The size of your CSR key is "+tab_err[1]+" bits";}if(err){document.getElementById("err_ssl_"+i).style.display='';document.getElementById("err_ssl_"+i).innerHTML='

'+err+'
';document.getElementById("area1_"+i).innerHTML='';}else{var tab_res=texte.split("|");document.getElementById("hid_courant_"+i).value=tab_res[6];var text=file("inc/ajax.php?action1=ssltabmail&elem="+i+"&ext_dom="+tab_res[6]+"&var="+Math.random());document.getElementById("area_"+i).innerHTML="
Analysis of your CSR

Here is the information contained in your CSR request. If any of the information below is incorrect, please click the Edit button to enter a new request.

URL : https://"+tab_res[6]+"
Key length : "+tab_res[7]+" bits
Organization : "+tab_res[0]+"
Department : "+tab_res[1]+"
City : "+tab_res[2]+"
State : "+tab_res[3]+"
Country : "+tab_res[4]+"
Email : "+tab_res[5]+"

Approval email:

Choose one of the email addresses below to receive the confirmation email and approve the application.

"+text+"
";document.getElementById("hid_inf_"+i).value=val_csr;}}else alert("CSR code is required");}}}function modif_csr(id_ssl){var i=id_ssl;document.getElementById("area_"+i).innerHTML='Certificate Signing Request (CSR):

Paste your CSR request in the box below. Make sure to integrate the headers and footers included with the request (\"BEGIN CERTIFICATE REQUEST\" and \"END CERTIFICATE REQUEST\").
If you have not yet generated the Certificate Signing Request (CSR), you can simply and quickly do so by clicking here.

See an example

';}function verif_content_form(id_ssl){var err=0;var total_emails=document.getElementById("total_adresses").value;for(var i=0; i<=total_emails; i++){for(var j=0;j< 5;j++){if(document.getElementById("radio_email_"+id_ssl+'_'+j+'_'+i).checked==true){err=1;document.getElementById("hid_email_"+id_ssl).value=document.getElementById("radio_email_"+id_ssl+'_'+j+'_'+i).value;break;}};if(err==1)break;};if(err==0){alert("Please select an email address for approval");return false;}}function select_stats(val_pays,contact){if(val_pays!="MA"){document.getElementById("tr_ice").style.display="none";document.getElementById("tr_idf").style.display="none";document.getElementById("ice").value='';document.getElementById("idf").value='';}else{if(document.forms.frm_add_Client.typei.value!="Particulier"){document.getElementById("tr_ice").style.display="";document.getElementById("tr_idf").style.display="";}}if(val_pays=="US"||val_pays=="CA"){var texte=file("https://www.heberjahiz.com/en/inc/ajax.php?action1=select_etat&py="+val_pays+"&var="+Math.random());document.getElementById("tr_states").style.display="";document.getElementById("td_states").innerHTML=texte;}else{document.getElementById("tr_states").style.display="none";document.getElementById("td_states").innerHTML="";}}function ajax_login(){$("#div_error_login").empty();if(document.getElementById("username").value&&document.getElementById("pass").value){var texte=filep("https://www.heberjahiz.com/en/inc/alimpanier.php","action=verif_login&login="+encodeURIComponent(document.getElementById("username").value)+"&pass="+encodeURIComponent(document.getElementById("pass").value)+"&var="+Math.random());if(texte=="banned"){$("#div_error_login").html("
Votre compte a temporairement été verrouillé par mesure de sécurité. Merci de réessayer dans quelques minutes.
");document.getElementById("username").value="";document.getElementById("pass").value="";return false;}else if(texte&&texte!="banned"){var affiche=texte.split("|");if(confirm(affiche[0])){if(affiche[2]=="com"||affiche[2]=="multi")document.getElementById("log_id").value=affiche[1]+affiche[2];else document.getElementById("log_id").value=affiche[1];if(affiche[3]=='1'||confirm('Do you want to edit your details?')){var login=document.getElementById("username").value;var mdp_clr=document.getElementById("pass").value;var texte=filep("https://www.heberjahiz.com/en/inc/alimpanier.php","action=compte_incomplet&l="+login+"&p="+mdp_clr+"&id_compte="+affiche[1]+affiche[2]+"&var="+Math.random());$('#logModal').modal('show');document.getElementById('completeacctinfo').innerHTML=texte;$("#logModalLabel,#logModalLabel2,#loginHTML,#ajout_clt,#logindiv").slideUp("slow");$("#logModalLabel3,#completeacctinfo").slideDown("slow");document.getElementById("mdp_clair").value=mdp_clr;document.getElementById("login").value=login;if(affiche[2]=="com"||affiche[2]=="multi")document.getElementById("log_id").value=affiche[1]+affiche[2];else document.getElementById("log_id").value=affiche[1];return false;}document.getElementById("mdp_clair").value=document.getElementById("pass").value;document.getElementById("login").value=document.getElementById("username").value;document.forms.log_direct.submit();}else{document.getElementById("username").value="";document.getElementById("pass").value="";if(document.getElementById("newlf").value=="renew"){document.location.href="logout.php"}else{return false};}}else{$("#div_error_login").html("
Credentials are incorrect. Please try again.
");document.getElementById("username").value="";document.getElementById("pass").value="";return false;}}else return false;}function passer(){var themessage=0;var mail=document.getElementById("email").value;var reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;if(reg.test(mail)!=true){document.getElementById("msg_mail").innerHTML=" Invalid email";themessage++;}if(document.getElementById("passwd").value.trim()==""||document.getElementById("passwd").value.trim().length<8){document.getElementById("msg_passwd").innerHTML=" Password too short! Minimum 8 characters.";themessage++;}else if(document.getElementById("passwd").value.trim()!=""&&document.getElementById("passwd1").value.trim()==""){document.getElementById("msg_passwd1").innerHTML=" This field is required";themessage++;}else if(document.getElementById("passwd").value.trim()!=""&&document.getElementById("passwd1").value.trim()!=document.getElementById("passwd").value.trim()){document.getElementById("msg_passwd1").innerHTML=" The two passwords don't match !";themessage++;}if(document.getElementById('mdp_puissance').value=='faible'){document.getElementById("msg_passwd").innerHTML=" Your password is weak";themessage++;}if(themessage==0){if(!window.VerifCodeTimer){$("#button_next").prop("disabled",true);file('https://www.heberjahiz.com/en/js/f_panier.php?action=verif_email&email='+mail+'&var='+Math.random());}$("#verif_email_email").text(mail);$("#information_du_compte,#msg_alert").slideUp("slow");$("#email_verification").slideDown("slow");EmailVerifCountdown();$("#button_next").prop("disabled",false);}}function EmailVerifCountdown(){var timeleft=59;if(!window.VerifCodeTimer){window.VerifCodeTimer = setInterval(function(){if(timeleft<=0){clearInterval(window.VerifCodeTimer);window.VerifCodeTimer = "";$("#verifcountdown").html("Click here to resend the verification code.");}else{var txtcountdown = "You will be able to request a new code in: "+timeleft+" ";if(timeleft>1)txtcountdown+="secs";else txtcountdown+="sec";$("#verifcountdown").html(txtcountdown);}timeleft-=1;},1000);}}function resendVerifCode(){var mail=document.getElementById("email").value;file('https://www.heberjahiz.com/en/js/f_panier.php?action=verif_email&email='+mail+'&var='+Math.random());$("#email_verif_alert").slideDown("slow").delay(10000).slideUp('slow');EmailVerifCountdown();}function passer2(){var themessage=0;var mail=document.getElementById("email").value;var verif_code=document.getElementById("verif_code").value.trim();var numbers=/^[0-9]+$/;if(verif_code==""||verif_code.length<4){document.getElementById("msg_verif_code").innerHTML=" The verification code entered is too short.";themessage++;}else if(!verif_code.match(numbers)){document.getElementById("msg_verif_code").innerHTML=" The verification code entered is incorrect.";themessage++;}if(themessage==0){var email_verification=file('https://www.heberjahiz.com/en/js/f_panier.php?action=verif_email_do&email='+mail+'&verif_code='+verif_code+'&var='+Math.random());if(email_verification=="PASS"){$("#email_verification").slideUp("slow");$("#information_personnel,#msg_alert").slideDown("slow"); document.getElementById("verif_code").value="";}else{ document.getElementById("msg_verif_code").innerHTML=" The verification code entered is incorrect.";}}}function retour(){document.getElementById("information_du_compte").style.display="";document.getElementById("information_personnel").style.display="none";}function verify2(orderform){var themessage=0;var arabic = /[\u0600-\u06FF]/;if ((orderform.typei[1].checked == true || orderform.typei[2].checked == true || orderform.typei[3].checked == true) && (orderform.societe.value.trim() == ""||arabic.test(orderform.societe.value))) {$('#societe').addClass('has-error');themessage++;}if (orderform.typei[1].checked == true && orderform.pays.value.trim() == "MA") {var iceRegex = /^[0-9]{15}$/;if (orderform.ice.value.trim() == "") { $('#ice').addClass('has-error');themessage++;} else if (!iceRegex.test(orderform.ice.value.trim())) { $('#ice').addClass('has-error');themessage++;}}if (orderform.typei[1].checked == true && orderform.pays.value.trim() == "MA") {var idfRegex = /^[0-9]{1,}$/;if (orderform.idf.value.trim() == "") { $('#idf').addClass('has-error');themessage++;} else if (!idfRegex.test(orderform.idf.value.trim())) { $('#idf').addClass('has-error');themessage++;}}if ((orderform.typei[1].checked == true || orderform.typei[2].checked == true || orderform.typei[3].checked == true) && (orderform.n_responsable.value.trim() == ""||arabic.test(orderform.n_responsable.value))) {$('#n_responsable').addClass('has-error');themessage++;}if ((orderform.typei[1].checked == true || orderform.typei[2].checked == true || orderform.typei[3].checked == true) && (orderform.p_responsable.value.trim() == ""||arabic.test(orderform.p_responsable.value))) {$('#p_responsable').addClass('has-error');themessage++;}if ((orderform.typei[1].checked == true || orderform.typei[2].checked == true || orderform.typei[3].checked == true) && (orderform.f_responsable.value.trim() == ""||arabic.test(orderform.f_responsable.value))) {$('#f_responsable').addClass('has-error');themessage++;}if (orderform.typei[0].checked == true && (orderform.nom.value.trim() == ""||arabic.test(orderform.nom.value))) {$('#nom').addClass('has-error');themessage++;}if (orderform.typei[0].checked == true && (orderform.prenom.value.trim() == ""||arabic.test(orderform.prenom.value))) {$('#prenom').addClass('has-error');themessage++;}if (orderform.civilite.value.trim() == "") {$('#civilite').addClass('has-error');themessage++;}if (orderform.addr.value.trim() == ""||arabic.test(orderform.addr.value)) {$('#addr').addClass('has-error');themessage++;}if (orderform.cp.value.trim() == ""||arabic.test(orderform.cp.value)||!isValidPostalCode(orderform.cp.value.trim(),orderform.pays.value.trim())){$('#cp').addClass('has-error');themessage++;}if (orderform.ville.value.trim() == ""||arabic.test(orderform.ville.value)) {$('#ville').addClass('has-error');themessage++;}if (orderform.pays.value.trim() == "") {$('#pays').addClass('has-error');themessage++;}if (orderform.pays.value == "CA" || orderform.pays.value == "US") {if (orderform.state.value.trim() == ""){$('#state').addClass('has-error');themessage++;}}if (!orderform.tel.value.match("^[0-9]+$")) {$('#tel').addClass('has-error');themessage++;}if (orderform.tel.value.trim() == "") {$('#tel').addClass('has-error');themessage++;}if (orderform.indicatif_tel.value.trim() == "") {$('#indicatif_tel').addClass('has-error');themessage++;}if (orderform.fax.value.trim() != "" && orderform.indicatif_fax.value.trim() == "") {$('#indicatif_fax').addClass('has-error');themessage++;}if (!orderform.fax.value.match("^[0-9]+$") && orderform.fax.value.trim() != "") {$('#fax').addClass('has-error');themessage++;}if (themessage > 0) {return false;} else return true;}function choix_particulier(){document.getElementById("tr_nom").style.display="";document.getElementById("tr_prenom").style.display="";document.getElementById("tr_societe").style.display="none";document.getElementById("tr_ice").style.display="none";document.getElementById("tr_idf").style.display="none";document.getElementById("tr_p_responsable").style.display="none";document.getElementById("p_responsable").value='';document.getElementById("tr_n_responsable").style.display="none";document.getElementById("n_responsable").value='';document.getElementById("tr_f_responsable").style.display="none";document.getElementById("f_responsable").value='';document.getElementById("societe").value='';document.getElementById("ice").value='';document.getElementById("idf").value='';}function autre_choix(){document.getElementById("tr_nom").style.display="none";document.getElementById("tr_prenom").style.display="none";document.getElementById("nom").value='';document.getElementById("prenom").value='';document.getElementById("tr_societe").style.display="";if(document.getElementById("pays").value.trim()=="MA"){document.getElementById("tr_ice").style.display="";document.getElementById("tr_idf").style.display="";}document.getElementById("tr_p_responsable").style.display="";document.getElementById("tr_n_responsable").style.display="";document.getElementById("tr_f_responsable").style.display="";}function passwordStrength(password){var score=0;if(password.length > 6)score++;if(password.length > 10)score++;if(password.length > 0)score++;if((password.match(/[a-z]/))&&(password.match(/[A-Z]/)))score++;if((password.match(/\d+/)))score++;else if(score>1)score--;if(score >=4){document.getElementById('mdp_puissance').value='fort';document.getElementById('faible').style.background='#07b450';document.getElementById('moyen').style.background='#07b450';document.getElementById('fort').style.background='#07b450';document.getElementById('faible').style.color='#b8b8b9';document.getElementById('moyen').style.color='#b8b8b9';document.getElementById('fort').style.color='#FFFFFF';}else if(score < 4&&score >=3){document.getElementById('mdp_puissance').value='moyen';document.getElementById('faible').style.background='#f2a02b';document.getElementById('moyen').style.background='#f2a02b';document.getElementById('fort').style.background='#EEEEEE';document.getElementById('faible').style.color='#b8b8b9';document.getElementById('moyen').style.color='#FFFFFF';document.getElementById('fort').style.color='#b8b8b9';}else if(score < 3&&score > 0){document.getElementById('mdp_puissance').value='faible';document.getElementById('faible').style.background='#f03047';document.getElementById('moyen').style.background='#EEEEEE';document.getElementById('fort').style.background='#EEEEEE';document.getElementById('faible').style.color='#FFFFFF';document.getElementById('moyen').style.color='#b8b8b9';document.getElementById('fort').style.color='#b8b8b9';} else if(score==0){document.getElementById('mdp_puissance').value='';document.getElementById('faible').style.background='#EEEEEE';document.getElementById('moyen').style.background='#EEEEEE';document.getElementById('fort').style.background='#EEEEEE';document.getElementById('faible').style.color='#b8b8b9';document.getElementById('moyen').style.color='#b8b8b9';document.getElementById('fort').style.color='#b8b8b9';}}var divformpack1='
';function ajout_dom_fn(domaine,ext,os,trans,cp,stlds){promo_direct=0;if(select_promo_direct('dom')&&!cp){var tab_promo_direct=select_promo_direct('dom').split("|");cp=tab_promo_direct[0];promo_direct=1;};if(document.getElementById('packdiv').style.display==""){$('#packdiv').hide("slow");}goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=showform&div=ajoutdomdiv&dom_ch='+domaine+'&tr='+trans+'&ext_ch='+ext+'&cd_promo='+cp+'&stlds='+stlds,this,'ajoutdomdiv');$('#ajoutdomdiv').show("slow");return false;}function appliquer_new_code(compte,gamme){code_promo_final="";if(document.getElementById("cd_promo")!=null)document.getElementById("cd_promo").value="";fermer_divs();if(gamme=="ser" || gamme=="cloud"){if(gamme=="ser") initialise_proc(document.getElementById("cpu").selectedIndex);else initialise_proc_cloud(document.getElementById("cpu").selectedIndex);change_val_hid("hidd_cpu","cpu",document.getElementById("cpu").selectedIndex);setTimeout("recup_total()",1500);} else if(gamme=="dom"){for(var j=0;j< compte;j++){document.getElementById("cd_promo_"+j).value="";}load_promo(compte,gamme);} else load_promo(compte,gamme);}function initialise_proc(laval){document.getElementById("sel_charged").value=0;if(document.getElementById("cd_promo").value){document.getElementById("cd_promo").value="";code_promo_final='';var sel_cpu=document.forms.frm_cmd.elements["cpu"];for(s=0;s< sel_cpu.options.length;s++){sel_cpu.options[s].style.background="#FFFFFF";var nom_cpu=sel_cpu.options[s].text;var prix_cpu=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=prix_cpu&nom_cpu='+encodeURIComponent(nom_cpu)+'&var='+Math.random());sel_cpu.options[s].value=prix_cpu;}}document.getElementById("lien_ajouter").style.display="none";document.getElementById("table_cout").style.display="none";document.getElementById("table_total").style.display="none";document.getElementById("ligne_remise").style.display="none";var rnum=Math.round(Math.random()*100);goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=ram&r="+rnum,"div_ram");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dc&r="+rnum,"div_dc");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dd&r="+rnum,"div_dd");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dd2&r="+rnum,"div_dd2");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dd3&r="+rnum,"div_dd3");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dd4&r="+rnum,"div_dd4");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dd5&r="+rnum,"div_dd5");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dd6&r="+rnum,"div_dd6");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=port_eth&r="+rnum,"div_port_eth");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=transfert_mens&r="+rnum,"div_transfert_mens");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=support&r="+rnum,"div_support");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=backup&r="+rnum,"div_backup");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=se&r="+rnum,"div_se");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=interface_ges&r="+rnum,"div_interface_ges");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=adresse_ip&r="+rnum,"div_adresse_ip");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=stats&r="+rnum,"div_stats");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=firewall&r="+rnum,"div_firewall");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=antivirus&r="+rnum,"div_antivirus");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=periode&r="+rnum,"div_periode");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=kvm&r="+rnum,"div_kvm");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc.php","val="+laval+"&sel_id=dc&r="+rnum,"div_dc");}function initialise_proc_cloud(laval){document.getElementById("sel_charged").value=0;if(document.getElementById("cd_promo").value){document.getElementById("cd_promo").value="";code_promo_final='';var sel_cpu=document.forms.frm_cmd.elements["cpu"];for(s=0;s< sel_cpu.options.length;s++){sel_cpu.options[s].style.background="#FFFFFF";var nom_cpu=sel_cpu.options[s].text;var prix_cpu=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=prix_cpu&nom_cpu='+encodeURIComponent(nom_cpu)+'&var='+Math.random());sel_cpu.options[s].value=prix_cpu;}}document.getElementById("lien_ajouter").style.display="none";document.getElementById("table_cout").style.display="none";document.getElementById("table_total").style.display="none";document.getElementById("ligne_remise").style.display="none";var rnum=Math.round(Math.random()*100);goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=ram&r="+rnum,"div_ram");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=dd&r="+rnum,"div_dd");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=dd2&r="+rnum,"div_dd2");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=port_eth&r="+rnum,"div_port_eth");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=transfert_mens&r="+rnum,"div_transfert_mens");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=support&r="+rnum,"div_support");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=backup&r="+rnum,"div_backup");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=se&r="+rnum,"div_se");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=interface_ges&r="+rnum,"div_interface_ges");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=adresse_ip&r="+rnum,"div_adresse_ip");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=adresse_ipv6&r="+rnum,"div_adresse_ipv6");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=firewall&r="+rnum,"div_firewall");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=antivirus&r="+rnum,"div_antivirus");goAjax1("https://www.heberjahiz.com/en/inc/initialise_proc_cloud.php","val="+laval+"&sel_id=periode&r="+rnum,"div_periode");}function reload_promo(code_promo,gamme,compte){code_promo_final=code_promo_final.replace(code_promo+"|","");var last_code="";var tab_codes=code_promo_final.split("|");if(tab_codes[tab_codes.length-2]){last_code=tab_codes[tab_codes.length-2];if(gamme=="dom"){document.getElementById("cd_promo_d").value=document.getElementById("cd_promo_d").value.replace(code_promo+"|","");document.getElementById("code_promo_d").value=last_code;for(var i=0; i<=compte; i++){if(document.getElementById("cd_promo_"+i)!=null){document.getElementById("cd_promo_"+i).value="";if(document.getElementById("periode_span"+i)!=null){document.getElementById("periode_span"+i).innerHTML=document.getElementById("periode_span_db"+i).innerHTML.replace('name="periode_db'+i+'"','name="periode'+i+'"');document.getElementById("cd_promo_"+i).value='';}}}load_promo(compte,gamme,1);}else{if(gamme!="ser" && gamme!="cloud"){document.getElementById("cd_promo").value=document.getElementById("cd_promo").value.replace(code_promo+"|","");document.getElementById("code_promo").value=last_code;load_promo(compte,gamme,1);}else{document.getElementById("code_promo").value=last_code;if(gamme=="ser") initialise_proc(document.getElementById("cpu").selectedIndex);else initialise_proc_cloud(document.getElementById("cpu").selectedIndex);change_val_hid("hidd_cpu","cpu",document.getElementById("cpu").selectedIndex); setTimeout("recup_total()",1500);}}}else{document.getElementById("codes_utilises").innerHTML="";if(gamme=="dom"){for(var i=0; i<=compte; i++){if(document.getElementById("periode_span"+i)!=null){document.getElementById("periode_span"+i).innerHTML=document.getElementById("periode_span_db"+i).innerHTML.replace('name="periode_db'+i+'"','name="periode'+i+'"');document.getElementById("cd_promo_"+i).value='';}}document.getElementById("cd_promo_d").value='';}else{if(gamme!="ser"&& gamme!="cloud"){if(gamme=="p"||gamme=="ssl")var deb=0;else var deb=1;for(var i=deb;i< compte;i++){prd_id=document.getElementById("rad_"+i).value;etat_normal(prd_id,i);}}else{if(gamme=="ser") initialise_proc(document.getElementById("cpu").selectedIndex);else initialise_proc_cloud(document.getElementById("cpu").selectedIndex);change_val_hid("hidd_cpu","cpu",document.getElementById("cpu").selectedIndex); setTimeout("recup_total()",1500)}}}}function load_promo(compte,gamme,rel){var continuer_direct=1;if(promo_direct==1){if(gamme=="dom")code_promo=document.getElementById("code_promo_d").value;else code_promo=document.getElementById("code_promo").value;var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=GetInfosPromoDirect&code_promo='+code_promo+'&var='+Math.random());if(!confirm(texte)){continuer_direct=0;if(gamme=="dom"){document.getElementById("code_promo_d").value="";}else{document.getElementById("code_promo").value="";}}};if(continuer_direct==1){if(gamme=="dom"){var code_test=document.getElementById("code_promo_d").value;document.getElementById("code_promo_d").blur();}else{var code_test=document.getElementById("code_promo").value;document.getElementById("code_promo").blur();};if(code_test!=""&&code_test!="Enter your promo code"){var continuer="oui";var code_p="";var tab_promo=code_promo_final.split("|");var existe="";for(var j=0;j<=tab_promo.length-1;j++){if(code_test==tab_promo[j]&&code_test!=""){existe="oui";break;}};if(existe&&rel!=1){if(gamme=='dom')document.getElementById("code_promo_d").value="";else document.getElementById("code_promo").value="";alert("You have already used this promo code");continuer="non";code_test="";};if(code_promo_final!=''&&continuer=="oui"){var tab_old_promos=code_promo_final.split("|");var last_promo_cumm=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=verif_promo_cum&code_promo_ch='+tab_old_promos[tab_old_promos.length-2]+'&var='+Math.random());var new_promo_cumm=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=verif_promo_cum&code_promo_ch='+code_test+'&gamme='+gamme+'&var='+Math.random());if((last_promo_cumm=="0"||new_promo_cumm=="0")&&new_promo_cumm!=""){document.getElementById("old_promos").innerHTML='';var inner_tab='';for(var i=0; i';}}texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=GetInfosPromo&cod_promo='+code_test+'&var='+Math.random());var titre_ancien=((tab_old_promos.length)-1>1)? "Promo codes already applied" : "Promo code already applied";document.getElementById("old_promos").innerHTML +='
New promo code'+titre_ancien+'
'+texte+'

'+inner_tab+'
';first_affiche("div_non_cumm");var width=600;document.getElementById("div_non_cumm").style.top=300+"px";document.getElementById("div_non_cumm").style.left=((document.documentElement.clientWidth/2)-(width/2))+"px";document.getElementById("div_non_cumm").style.display="";continuer="non";}};if(continuer=="oui"){first_affiche("chargement_promos");var width=320;document.getElementById("chargement_promos").style.display="";if(gamme=="dom")setTimeout("promo_exist_dom('"+compte+"','"+rel+"')",1);else setTimeout("promo_exist('"+compte+"','"+gamme+"','"+rel+"')",1);}}}}function affiche_prd(prd,id_promo){if(document.getElementById('ajoutdomdiv')!=null)document.getElementById('ajoutdomdiv').innerHTML='';promo_direct=0;code_promo_final="";if(select_promo_direct(prd)&&!id_promo&&document.getElementById('id_promo').value==""){var tab_promo_direct=select_promo_direct(prd).split("|");id_promo=tab_promo_direct[0];promo_direct=1; };if(document.getElementById("cd_promo")!=null){document.getElementById("cd_promo").value="";code_promo_final="";};if(prd=='vps'){if(id_promo)document.getElementById("id_promo").value=id_promo;}else if(prd=='serveurs'||prd=='cloud'||prd=='messagerie'||prd.match('ssl_cat_')){if(document.getElementById("id_promo").value)id_promo=document.getElementById("id_promo").value;goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=showlistpack&div=listpack&heberg='+prd+'&cd_promo='+id_promo,this,'listpack');$('#listpack').show("slow");$('#tab_prd').hide("slow");if(id_promo) setTimeout("recup_total()",1500);}else if(prd=='rev1'){document.getElementById("td_prd").innerHTML='

Add a service

Please select your reseller service :
';$("#td_prd").show("slow");}else if(prd=='serveurs_gen'){document.getElementById("td_prd").innerHTML='

Server Solutions

';$("#td_prd").show("slow");}else if(prd=='services_pl'){document.getElementById("td_prd").innerHTML='

SSL Certificates
          

ID Protect
';document.getElementById("td_prd").style.display="none";document.getElementById("td_prd").style.display="";}else if(prd=='dom_rev'){goAjax('https://www.heberjahiz.com/en/inc/alimpanier.php','action=showlistpack&div=listpack&heberg=dom_rev',this,'listpack');$('#listpack').show("slow");$('#tab_prd').hide("slow");}else if(prd=='ssl'){var tds='';var nbr_td=10;tds +='
Digicert
';tds +='
Sectigo
';tds +='
Thawte
';tds +='
';tds +='
Geotrust
';tds +='
Comodo
';document.getElementById("td_prd").innerHTML='

Add a service

Choose an SSL brand:
'+tds+'
';document.getElementById("td_prd").style.display="none";document.getElementById("td_prd").style.display="";}else{if(prd=="hebergement")var val_aff='Hosting';if(prd=="rev")var val_aff='Resellers';if(prd=="vps")var val_aff='Virtual Private Servers (VPS)';document.getElementById("prd_choi").value=prd;if(id_promo)document.getElementById("id_promo").value=id_promo;var inner_td_os="";inner_td_os ='
Select the operating system :
';inner_td_os +='
';inner_td_os +='';inner_td_os +='';inner_td_os +='
';document.getElementById("td_prd").style.display="none";if(prd=="vps")var padd_top="90px";else padd_top="107px";document.getElementById("td_prd").innerHTML='

Add a service

';document.getElementById("td_prd").style.display="";$('#td_os').show("slow");}}function non_disabled(compte){for(var i=0;i< compte;i++){if(document.getElementById("paiement_"+i)!=null)document.getElementById("paiement_"+i).disabled="";}}function promo_exist(compte,gamme,rel){if(gamme=="p"||gamme=="ssl")var deb=0;else var deb=1;var number_continue=0;var code_pr=document.getElementById("code_promo").value;var code_pr_choisi=document.getElementById("code_promo").value;if(code_pr_choisi){if(document.getElementById("cd_promo").value!=''){code_pr=document.getElementById("cd_promo").value+document.getElementById("code_promo").value;}var continuer="oui";var val_cum=0;var prd_id="";var paiement="";var element=0;var lst_per=Array();if(continuer=="oui"){if(gamme=="ser"){var periode_choisi=document.getElementById("periodicite").value;var prix_cpu=document.getElementById('cpu').value;var nom_cpu=document.forms.frm_cmd.cpu.options[document.forms.frm_cmd.cpu.options.selectedIndex].text;var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=verif_promo_serveurs&periode_choisi='+periode_choisi+'&code_p='+code_pr+'&nom_cpu='+encodeURIComponent(nom_cpu)+'&code_promo_ch='+code_pr_choisi+'&var='+Math.random());var tab_promo=document.getElementById("cd_promo").value.split("|");var tab_if_cumm=texte.split("#");texte=tab_if_cumm[(tab_if_cumm.length)-2];if(texte&&texte!="n"&&texte!="nn"&&texte!="id_err"&&texte!="id_errn"&&texte!="id_err1"&&texte!="id_errid_errn"&&texte!="id_err1||||||"){var tab_result=texte.split("}");var texte_ch=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=champs_promo_serveurs&champs='+tab_result[0]+'&pos='+tab_result[5]+'&id_process='+tab_result[6]+'&var='+Math.random());var tab_champs=texte_ch.split(',');valeur=tab_result[1];lst_per=tab_result[2].split(",");id_cpu=tab_result[3];number_continue ++;if(number_continue==1){if(rel!=1)code_promo_final +=code_pr_choisi+"|";var text_codes=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=detail_promos_utilses&compte='+compte+'&gamme='+gamme+'&lst_codes='+code_promo_final.substring(0,((code_promo_final.length)-1))+'&var='+Math.random());document.getElementById("codes_utilises").innerHTML=text_codes;if(rel!=1)document.getElementById("cd_promo").value+=code_pr_choisi+"|";}var options_per="";for(var c=0; c< tab_champs.length; c++){var tab_ch_val=tab_champs[c].split("@");tab_champs[c]=tab_ch_val[0];valeur=tab_ch_val[1];if(tab_champs[c].substr(0,5)=="prix_"){var champs1=tab_champs[c].replace("prix_","");var sel=document.forms.frm_cmd.elements[champs1];for(s=0;s'+tab_text[0]+'Setup '+new_val+' MAD';}}}else if(tab_champs[c]=="prix"){var sel=document.forms.frm_cmd.elements["cpu"];for(s=0;s< sel.options.length;s++){if(sel.options[s].value!=""){var prix_act=sel.options[s].value;var new_prix=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=val_after_promo&valeur='+valeur+'&det_sel='+prix_act+'&periode_choisi='+periode_choisi+'&var='+Math.random());sel.options[s].value=new_prix;sel.options[s].style.background="#E4F8E4";}change_val_hid('hidd_cpu','cpu',sel.selectedIndex,1);}}changer_prix();};if(options_per!="")document.getElementById("div_periode").innerHTML='';}}else{for(var i=deb;i< compte;i++){prd_id=document.getElementById("rad_"+i).value;element=i;var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=verif_promo_prd&code_p='+code_pr+'&prd_id='+prd_id+'&gamme='+gamme+'&code_promo_ch='+code_pr_choisi+'&paiement='+paiement+'&var='+Math.random());var tab_promo=document.getElementById("cd_promo").value.split("|");var tab_result1=texte.split("|");if(texte=="n"){document.getElementById("chargement_promos").style.display="none";document.getElementById("block_n").style.display="none";if(number_continue=="0"){document.getElementById('div_promo').innerHTML=" Incorrect promo code";document.getElementById("chargement_promos").style.display="none";document.getElementById("block_n").style.display="none";}break;}etat_normal(prd_id,i);if((texte.match("option")||texte.match("'+tab_result[1]+'';document.getElementById("promo_prix_"+prd_id).value="oui";};if(tab_result[2]){if(document.getElementById("disk_"+prd_id)!=null)document.getElementById("disk_"+prd_id).innerHTML=" "+tab_result[2]+"";};if(tab_result[3]){if(document.getElementById("traffic_"+prd_id)!=null)document.getElementById("traffic_"+prd_id).innerHTML=" "+tab_result[3]+"";};if(tab_result[4]){if(document.getElementById("domaines_"+prd_id)!=null)document.getElementById("domaines_"+prd_id).innerHTML=" "+tab_result[4]+"";};if(tab_result[5]){if(document.getElementById("adr_ip_"+prd_id)!=null)document.getElementById("adr_ip_"+prd_id).innerHTML=" "+tab_result[5]+"";};if(tab_result[6]){if(document.getElementById("ram_"+prd_id)!=null)document.getElementById("ram_"+prd_id).innerHTML=" "+tab_result[6]+"";}change_value(document.getElementById('paiement_'+element).value,code_pr_choisi,element,prd_id,gamme);}}}document.getElementById("chargement_promos").style.display="none";document.getElementById("block_n").style.display="none";if(number_continue=="0"){document.getElementById('div_promo').innerHTML=" Incorrect promo code";document.getElementById("chargement_promos").style.display="none";document.getElementById("block_n").style.display="none";}promo_direct=0;}}document.getElementById("code_promo").value="";}function etat_normal(prd_id,i){if(document.getElementById("hidd_detail_db_"+i)!=null&&document.getElementById("td_detail_"+i)!=null){var idnorm=new RegExp("(idnorm_)", "g");document.getElementById("td_detail_"+i).innerHTML=document.getElementById("hidd_detail_db_"+i).innerHTML.replace(idnorm,"");}if(document.getElementById("hidd_paiement_db_"+i)!=null&&document.getElementById("paiement_span_"+i)!=null){var inner=document.getElementById("hidd_paiement_db_"+i).innerHTML.replace("paiement_"+prd_id+"_db","paiement_"+prd_id);document.getElementById("paiement_span_"+i).innerHTML=inner;}}function change_value(paiement,cd_promo,ligne,id_prd,gamme){var texte=file('https://www.heberjahiz.com/en/inc/alimpanier.php?action=change_value&code_p='+cd_promo+'&prd_id='+id_prd+'&gamme='+gamme+'&paiement='+paiement+'&var='+Math.random());tab_result=texte.split("|");if(tab_result[0]){if(document.getElementById("disk_"+id_prd)!=null)document.getElementById("disk_"+id_prd).innerHTML=" "+tab_result[0]+"";};if(tab_result[1]){if(document.getElementById("traffic_"+id_prd)!=null)document.getElementById("traffic_"+id_prd).innerHTML=" "+tab_result[1]+"";};if(tab_result[2]){if(document.getElementById("domaines_"+id_prd)!=null)document.getElementById("domaines_"+id_prd).innerHTML=" "+tab_result[2]+"";};if(tab_result[3]){if(document.getElementById("adr_ip_"+id_prd)!=null)document.getElementById("adr_ip_"+id_prd).innerHTML=" "+tab_result[3]+"";};if(tab_result[4]){if(document.getElementById("ram_"+id_prd)!=null)document.getElementById("ram_"+id_prd).innerHTML=" "+tab_result[4]+"";}}function varif_check_pack(total){var nb_checked=0;for(var i=0;i<=total; i++){if(document.getElementById("rad_"+i)!=null){if(document.getElementById("rad_"+i).checked)nb_checked++;}};if(nb_checked=="0"){alert("Please select a package");return false;}}var type='';function mdp_oublie(){var reg= /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;var identifiant=document.getElementById('username').value;var text='';if(!reg.test(identifiant)&&identifiant){text=file('inc/ajax.php?action1=mdp_oublie1&login='+identifiant+'&var='+Math.random());if(text){var tab_res=text.split('|');for(var i=0;i

Domain names';inner +='';inner +='

Email';inner +='

Shared hosting';inner +='

Revendeurs Hébergement';inner +='';inner +='

Virtual Private Servers (VPS)';inner +='

Dedicated Servers';inner +='

RD Plan';inner +='';document.getElementById('div_mdp_oublie').innerHTML = inner;first_affiche('div_mdp_oublie');break;}}}else $('#div_error_login').html("
This username does not exist.
");}else if(!identifiant)$('#div_error_login').html("
To reset your password, please enter your username in the appropriate field and click on \'Forgot Password\'.
");else if(reg.test(identifiant)){text=file('inc/ajax.php?action1=mdp_oublie_multi&e='+identifiant+'&var='+Math.random());$('#div_error_login').html('
'+text+'
');}}function mdp_oublie1(tp){if(tp=='renew'||tp=='renew_rd') type = tp;var identifiant=document.getElementById('username').value;if(type) {var text=file('inc/ajax.php?action1=mdp_oublie&login='+identifiant+'&type='+type+'&ref=ac&var='+Math.random());$('#div_error_login').html("
"+text+"
");}else alert("Please choose the type of your product");}function verif_webnom(id,num){for(var ii=0;ii