var vau={};var vv_siteUrl="www.vala.fr";var vn_siteUrl="http://www.vala-bleu.com/";var vb_siteUrl="https://secure.vala-bleu.com/";var vs_siteUrl="https://secure.vala-bleu.com/WHS/";var va_siteUrl="https://secure.vala-bleu.com/accounts/";var ve_siteUrl="https://secure.vala-bleu.com/WES/";var vs_sreuse="171425c4-9967-48b5-abd7-cb9c291dd358";var vs_currency="EUR";var vs_countrycode="FR";var vs_language="fr";var vs_ssl="0";var vs_dfd="3";var vs_dft="1946";$(document).ajaxStart(function(){showNotify('Traitement en cours...');});$(document).ajaxStop(function(){hideNotify();});function sendAjaxRequest(rType,rUrl,rData,rDataType,rSuccess){$.ajax({type:rType,url:rUrl,data:rData,cache:false,dataType:rDataType,success:function(data){$(rSuccess).html(data);}});}
function ProcessRequestStep_SearchDomain(){var getUrl=vs_siteUrl+'purchase-it/View_DomainNameSearch-Result.process';var getData="sAction="+$('input#nStepAction').val();getData+="&flowName="+$('input#nflowName').val();getData+="&flowid="+$('input#nflowid').val();getData+="&selectedProduct="+$('input#nselectedProduct').val();getData+="&domainName="+$('input#ndomainName').val();getData+="&TLDs="+getCheckedValue(document.domainNameSearch.TLDs);getData+="&c="+vs_countrycode;if($('input#nflowdtd').val()!='false'){getData+="&flowdtd="+$('input#nflowdtd').val();}
sendAjaxRequest("GET",getUrl,getData,"html",'#domainNameSearchResult');}
function focus(){document.domainNameSearch.domainName.focus();}
function RSearchDomain(countrycode){var getUrl=vs_siteUrl+'purchase-it/View_Displayflow-Start.html';var getData="sAction="+$('input#nStepAction').val();getData+="&flowName=shared-hosting";getData+="&selectedProduct=HP_DOMAIN_PKG_RE_YE";getData+="&as=true";getData+="&dn="+$('input#ndomainName').val();getData+="&tld="+getCheckedValue(document.domainSearch.TLDs);getData+="&c="+countrycode;document.location.href=getUrl+'?'+getData+'#dr';}
function processRequestStep(sAction){var getSUrl=vs_siteUrl+'purchase-it/View_Displayflow-Start.html';var getUrl=vs_siteUrl+'purchase-it/View_ProcessRequest-Step.process';var getData="language="+vs_language;getData+="&flow="+sAction;getData+="&c="+vs_countrycode;if(sAction=="step-DomainNameMap"){getData+="&flowName="+document.domainNameMap.flowName.value;getData+="&flowid="+document.domainNameMap.flowid.value;getData+="&selectedProduct="+document.domainNameMap.selectedProduct.value;if(checkDomain(document.domainNameMap.domainName.value)==true){getData+="&domainName="+document.domainNameMap.domainName.value;}else{return false;}}
if(sAction=="step-SDBin"){getData+="&flowName="+document.processSDBin.flowName.value;getData+="&selectedProduct="+document.processSDBin.selectedProduct.value;getData+="&sbin="+getCheckedValue(document.processSDBin.BIN);getData+="&RBI=TRUE";document.location.href=getSUrl+'?'+getData;}
if(sAction=="step-VPBin"){getData+="&flowName="+document.processVPBin.flowName.value;getData+="&selectedProduct="+document.processVPBin.selectedProduct.value;getData+="&sbin="+getCheckedValue(document.processVPBin.BIN);getData+="&VsStep="+document.processVPBin.VsStep.value;getData+="&RBI=TRUE";document.location.href=getSUrl+'?'+getData;}
if(sAction=="step-DomainNameSearch"){getData+="&flowName="+document.domainNameSearch.flowName.value;getData+="&flowid="+document.domainNameSearch.flowid.value;getData+="&selectedProduct="+document.domainNameSearch.selectedProduct.value;getData+="&domainName="+getCheckedValue(document.DomainNameSearchResult.TLDs);if(document.DomainNameSearchResult.flowdtd.value!='false'){getData+="&flowdtd="+document.DomainNameSearchResult.flowdtd.value;}}
if(sAction=="step-DomainTransfer"){getData+="&authcode="+document.DomainTransfer.authcode.value;getData+="&co="+document.DomainTransfer.co.checked;}
if(sAction=="step-AddPrivateRegistration"){getData+="&prireg="+document.AddPrivateRegistration.prireg.checked;}
if(sAction=="step-AddOption"){var ROSOption=getCheckedValue(document.AddOption.ROS);var WBSOption=getCheckedValue(document.AddOption.WBS);var EMSOption=getCheckedValue(document.AddOption.EMS);var SVDOption=getCheckedValue(document.AddOption.SVD);if(ROSOption!='false'){getData+="&ROSOption="+ROSOption;}
if(WBSOption!='false'){getData+="&WBSOption="+WBSOption;}
if(EMSOption!='false'){getData+="&EMSOption="+EMSOption;}
if(SVDOption!='false'){getData+="&SVDOption="+SVDOption;}}
if(sAction=="step-Optionsharedhosting"){var HHOOption=getCheckedValue(document.AddOptionsharedhosting.hostpkg);getData+="&selectedProduct="+HHOOption;getData+="&flowName="+document.AddOptionsharedhosting.flowName.value;}
if(sAction=="step-DedicatedHosting"){getData+="&selectedProduct="+document.DedicatedHosting.selectedProduct.value;getData+="&flowName="+document.DedicatedHosting.flowName.value;getData+="&CO_MT="+getCheckedValue(document.DedicatedHosting.CO_MT);getData+="&CO_CPU="+getCheckedValue(document.DedicatedHosting.CO_CPU);getData+="&CO_HD="+getCheckedValue(document.DedicatedHosting.CO_HD);getData+="&CO_RAM="+getCheckedValue(document.DedicatedHosting.CO_RAM);getData+="&CO_OS="+getCheckedValue(document.DedicatedHosting.CO_OS);getData+="&CO_IP="+getCheckedValue(document.DedicatedHosting.CO_IP);getData+="&CO_BW="+getCheckedValue(document.DedicatedHosting.CO_BW);getData+="&CO_NC="+getCheckedValue(document.DedicatedHosting.CO_NC);getData+="&CO_IC="+getCheckedValue(document.DedicatedHosting.CO_IC);getData+="&CO_BQ="+getCheckedValue(document.DedicatedHosting.CO_BQ);getData+="&CO_CP="+getCheckedValue(document.DedicatedHosting.CO_CP);getData+="&CO_DB="+getCheckedValue(document.DedicatedHosting.CO_DB);}
if(sAction=="step-Referencing"){getData+="&selectedProduct="+document.Referencing.selectedProduct.value;getData+="&flowName="+document.Referencing.flowName.value;getData+="&CO_DOM="+document.Referencing.CO_DOM.value;if(checkDomain(document.Referencing.CO_DOM.value)==true){sendAjaxRequest("GET",getUrl,getData,"html",'#ContainerServiceLeft');}else{return false;}}
if(sAction!="step-Referencing"){sendAjaxRequest("GET",getUrl,getData,"html",'#ContainerServiceLeft');}}
function viewShoppingCart(){var getStr=ve_siteUrl+"ViewShoppingCart-Info.process?";getStr+="language="+vs_language;getStr+="&c="+vs_countrycode;$('#ContainerServiceLeft').load(getStr);}
function View(Action){var getStr=ve_siteUrl;getStr+="ViewShoppingCart-Info.process?";getStr+="currency="+vs_currency;getStr+="&language="+vs_language;$('#ContainerServiceLeft').load(getStr);}
function rgoTo(Action){var getStr=ve_siteUrl+Action;$('#ContainerServiceLeft').load(getStr);}
function gotoa(Action){var getStr=va_siteUrl+Action;$('#ContainerServiceLeft').load(getStr);}
function myaccount(Action){var getStr=va_siteUrl+Action;getStr+="?currency="+vs_currency;getStr+="&language="+vs_language;$('#ContainerServiceLeft').load(getStr);}
function agoTo(Action){var getStr=va_siteUrl+Action;$('#ContainerServiceLeft').load(getStr);}
function vConfirmation(Action){if(fvalidate(document.checkout_confirmation)){var getStr=ve_siteUrl+Action;$('#ContainerServiceLeft').load(getStr);}}
function aConfirmation(Action){if(fvalidate(document.checkout_confirmation)){document.checkout_confirmation.submit()}}
function viewContact(Action){var postUrl=Action;var postData="action=Contact";postData+="&captcha="+document.Contact.captcha.value;postData+="&firstname="+document.Contact.firstname.value;postData+="&lastname="+document.Contact.lastname.value;postData+="&telephone="+document.Contact.telephone.value;postData+="&email="+document.Contact.email.value;postData+="&clientnnumber="+document.Contact.clientnnumber.value;postData+="&domainname="+document.Contact.domainname.value;postData+="&service="+getCheckedValue(document.Contact.service);postData+="&messages="+document.Contact.messages.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewLogin(Action){var postUrl=va_siteUrl+Action;var postData="action=login";postData+="&_email="+$('input#Email').val();postData+="&_pass="+$('input#Pass').val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewReset(Action){var postUrl=va_siteUrl+Action;var postData="action=reset";postData+="&_email="+$('input#Email').val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewSignup(Action){if(fvalidate(document.Signup)){var postUrl=va_siteUrl+Action;var postData="action=signup";postData+="&captcha="+document.Signup.captcha.value;postData+="&firstname="+document.Signup.firstname.value;postData+="&lastname="+document.Signup.lastname.value;postData+="&gender="+document.Signup.gender.value;postData+="&dob="+document.Signup.dob.value;postData+="&address="+document.Signup.address.value;postData+="&postcode="+document.Signup.postcode.value;postData+="&city="+document.Signup.city.value;postData+="&country="+document.Signup.country.value;postData+="&telephone="+document.Signup.telephone.value;postData+="&mobile="+document.Signup.mobile.value;postData+="&fax="+document.Signup.fax.value;postData+="&company="+document.Signup.company.value;postData+="&email="+document.Signup.email.value;postData+="&password="+document.Signup.password.value;postData+="&confirmation="+document.Signup.confirmation.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
function viewConfirmation(Action){var postUrl=ve_siteUrl+Action;var pval=0;for(i=0;i<document.Payment.payment.length;i++)
{if(document.Payment.payment[i].checked==true)
pval=document.Payment.payment[i].value;}
var postData="action=confirmation";postData+="&payment="+pval;if(pval=="cc")
{var pccval=0;for(i=0;i<document.Payment.cc.length;i++)
{if(document.Payment.cc[i].checked==true)
pccval=document.Payment.cc[i].value;}
if((pccval!="0")&&(pccval!="cc")){postData+="&cc="+pccval;}else{postData+="&cc_type="+document.Payment.cc_type.value;postData+="&cc_owner="+document.Payment.cc_owner.value;postData+="&cc_number="+document.Payment.cc_number.value;postData+="&cc_expires_month="+document.Payment.cc_expires_month.value;postData+="&cc_expires_year="+document.Payment.cc_expires_year.value;postData+="&cc_checkcode="+document.Payment.cc_checkcode.value;}}
sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewProcessEnd(Action,cmd,vpc,vin){var postUrl=ve_siteUrl+Action;var postData="pc="+vpc;postData+="&in="+vin;postData+="&cmd="+cmd;postData+="&currency="+vs_currency;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function go_ShoppingCart(){var loc=vs_siteUrl+"purchase-it/ViewShoppingCart-Info.process?";document.location.href=loc;}
function viewMydetailEdit(Action){var postUrl=va_siteUrl+Action;var postData="email="+document.Mydetail.email.value;postData+="&firstname="+document.Mydetail.firstname.value;postData+="&lastname="+document.Mydetail.lastname.value;postData+="&gender="+document.Mydetail.gender.value;postData+="&dob="+document.Mydetail.dob.value;postData+="&address="+document.Mydetail.address.value;postData+="&postcode="+document.Mydetail.postcode.value;postData+="&city="+document.Mydetail.city.value;postData+="&country="+document.Mydetail.country.value;postData+="&telephone="+document.Mydetail.telephone.value;postData+="&mobile="+document.Mydetail.mobile.value;postData+="&fax="+document.Mydetail.fax.value;postData+="&company="+document.Mydetail.company.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewMyPasswrdEdit(Action){var postUrl=va_siteUrl+Action;var postData="currentpassword="+document.MyPasswrd.currentpassword.value;postData+="&newpassword="+document.MyPasswrd.newpassword.value;postData+="&passwordconfirmation="+document.MyPasswrd.passwordconfirmation.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewMyCcEdit(Action){var postUrl=va_siteUrl+Action;var ccnumber=document.Mycc.cc_number.value;var Newccnumber=ccnumber.split(' ').join('');var postData="cctype="+document.Mycc.cc_type.value;postData+="&ccowner="+document.Mycc.cc_owner.value;postData+="&ccnumber="+Newccnumber;postData+="&ccexpires_month="+document.Mycc.cc_expires_month.value;postData+="&ccexpires_year="+document.Mycc.cc_expires_year.value;postData+="&cccheckcode="+document.Mycc.cc_checkcode.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewMyCcDelete(Action){var getData=va_siteUrl+Action;$('#ContainerServiceLeft').load(getData);}
function viewDomainEdit(Action){if(fvalidate(document.EditDomain)){var postUrl=va_siteUrl+Action;var postData="dac="+document.EditDomain.dac.value;postData+="&action="+document.EditDomain.action.value;postData+="&fname="+document.EditDomain.fname.value;postData+="&lname="+document.EditDomain.lname.value;postData+="&org="+document.EditDomain.org.value;postData+="&address1="+document.EditDomain.address1.value;postData+="&address2="+document.EditDomain.address2.value;postData+="&phone="+document.EditDomain.phone.value;postData+="&city="+document.EditDomain.city.value;postData+="&province="+document.EditDomain.province.value;postData+="&postal="+document.EditDomain.postal.value;postData+="&country="+document.EditDomain.country.value;postData+="&email="+document.EditDomain.email.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
function viewDomainDnsEdit(Action){if(fvalidate(document.DNSDomain)){var postUrl=va_siteUrl+Action;var postData="dac="+document.DNSDomain.dac.value;postData+="&action="+document.DNSDomain.action.value;postData+="&dnss1="+document.DNSDomain.dnss1.value;postData+="&dnss2="+document.DNSDomain.dnss2.value;if(document.DNSDomain.dnss3.value!=false){postData+="&dnss3="+document.DNSDomain.dnss3.value;}
if(document.DNSDomain.dnss4.value){postData+="&dnss4="+document.DNSDomain.dnss4.value;}
if(document.DNSDomain.dnss5.value){postData+="&dnss5="+document.DNSDomain.dnss5.value;}
if(document.DNSDomain.dnss6.value){postData+="&dnss6="+document.DNSDomain.dnss6.value;}
if(document.DNSDomain.dnss7.value){postData+="&dnss7="+document.DNSDomain.dnss7.value;}
if(document.DNSDomain.dnss8.value){postData+="&dnss8="+document.DNSDomain.dnss8.value;}
if(document.DNSDomain.dnss9.value){postData+="&dnss9="+document.DNSDomain.dnss9.value;}
if(document.DNSDomain.dnss10.value){postData+="&dnss10="+document.DNSDomain.dnss10.value;}
if(document.DNSDomain.dnss11.value){postData+="&dnss11="+document.DNSDomain.dnss11.value;}
if(document.DNSDomain.dnss12.value){postData+="&dnss12="+document.DNSDomain.dnss12.value;}
if(document.DNSDomain.dnss13.value){postData+="&dnss13="+document.DNSDomain.dnss13.value;}
sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
function viewDomainDnsAEdit(Action){var postUrl=va_siteUrl+Action;var postData="dac="+$('input#Adac').val();postData+="&action="+$('input#Aaction').val();postData+="&Arecordleft="+$('input#Arecordleft').val();postData+="&Arecordright="+$('input#Arecordright').val();if(verifyIP(document.DNSDomainA.Arecordright.value)=='true'){sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
function viewDomainDnsMXEdit(Action){var postUrl=va_siteUrl+Action;var postData="dac="+$('input#MXdac').val();postData+="&action="+$('input#MXaction').val();postData+="&MXrecordleft="+$('input#MXrecordleft').val();postData+="&MXrecordint="+$('input#MXrecordint').val();postData+="&MXrecordright="+$('input#MXrecordright').val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewDomainDnsCNAMEEdit(Action){var postUrl=va_siteUrl+Action;var postData="dac="+$('input#CNAMEdac').val();postData+="&action="+$('input#CNAMEaction').val();postData+="&CNAMErecordleft="+$('input#CNAMErecordleft').val();postData+="&CNAMErecordright="+$('input#CNAMErecordright').val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewDomainDnsDelete(Action,dac,actionval,dltrid){var postUrl=va_siteUrl+Action;var postData="dac="+$('input#CNAMEdac').val();postData+="&action="+actionval;postData+="&dltrid="+dltrid;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewTRDomeinEdit(Action){var postUrl=va_siteUrl+Action;var postData="newcompte="+document.TRACDomain.newcompte.value;postData+="&action="+document.TRACDomain.action.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewDomainDNSManagement(Action,Ac,did){if(Ac=='DnsAddA'){var postUrl=va_siteUrl+Action;var postData="&_dnsAdd=A";postData+="&ArecordSubdomain="+$('input#a_subdomain').val();postData+="&ArecordAddress="+$('input#a_address').val();if(verifyIP($('input#a_address').val())=='true'){sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
if(Ac=='DnsRemA'){var postUrl=va_siteUrl+Action;var postData="&_dnsRem=A";postData+="&ArecordSubdomain="+$('input#a_subdomain_'+did).val();postData+="&ArecordAddress="+$('input#a_address_'+did).val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
if(Ac=='DnsAddAAAA'){var postUrl=va_siteUrl+Action;var postData="&_dnsAdd=AAAA";postData+="&ArecordSubdomain="+$('input#aaaa_subdomain').val();postData+="&ArecordAddress="+$('input#aaaa_address').val();if(verifyIPv6($('input#aaaa_address').val())=='true'){sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
if(Ac=='DnsRemAAAA'){var postUrl=va_siteUrl+Action;var postData="&_dnsRem=AAAA";postData+="&ArecordSubdomain="+$('input#aaaa_subdomain_'+did).val();postData+="&ArecordAddress="+$('input#aaaa_address_'+did).val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
if(Ac=='DnsAddCNAME'){var postUrl=va_siteUrl+Action;var postData="&_dnsAdd=CNAME";postData+="&ArecordSubdomain="+$('input#cname_subdomain').val();postData+="&ArecordAddress="+$('input#cname_address').val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
if(Ac=='DnsRemCNAME'){var postUrl=va_siteUrl+Action;var postData="&_dnsRem=CNAME";postData+="&ArecordSubdomain="+$('input#cname_subdomain_'+did).val();postData+="&ArecordAddress="+$('input#cname_address_'+did).val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
if(Ac=='DnsAddMX'){var postUrl=va_siteUrl+Action;var postData="&_dnsAdd=MX";postData+="&ArecordSubdomain="+$('input#mx_subdomain').val();postData+="&ArecordPriority="+$('input#mx_priority').val();postData+="&ArecordServer="+$('input#mx_server').val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
if(Ac=='DnsRemMX'){var postUrl=va_siteUrl+Action;var postData="&_dnsRem=MX";postData+="&ArecordSubdomain="+$('input#mx_subdomain_'+did).val();postData+="&ArecordPriority="+$('input#mx_priority_'+did).val();postData+="&ArecordServer="+$('input#mx_server_'+did).val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
if(Ac=='DnsAddTXT'){var postUrl=va_siteUrl+Action;var postData="&_dnsAdd=TXT";postData+="&ArecordSubdomain="+$('input#txt_subdomain').val();postData+="&ArecordTxt="+$('input#txt_address').val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
if(Ac=='DnsRemTXT'){var postUrl=va_siteUrl+Action;var postData="&_dnsRem=TXT";postData+="&ArecordSubdomain="+$('input#txt_subdomain_'+did).val();postData+="&&ArecordTxt="+$('input#txt_address_'+did).val();sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
function viewDomainData(dom){$('#bot-'+dom).hide();$.ajax({type:"POST",url:vb_siteUrl+'ajax/domain.search',data:"iddom="+dom,success:function(data){$('#domData-'+dom).show();$('#ddomData-'+dom).html(data);}});}
function viewHelpDeskEdit(Action){var postUrl=va_siteUrl+Action;var postData="ticketpriority="+document.HelpDesk.ticketpriority.value;postData+="&ticketcategory="+document.HelpDesk.ticketcategory.value;postData+="&ticketseverity="+document.HelpDesk.ticketseverity.value;postData+="&ticketvseverities="+document.HelpDesk.ticketvseverities.value;postData+="&tickettitre="+document.HelpDesk.tickettitre.value;postData+="&ticketdescription="+document.HelpDesk.ticketdescription.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function viewHelpDeskCommentEdit(Action){var postUrl=va_siteUrl+Action;var postData="ticketcomments="+document.HelpDeskView.comments.value;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload=='function'){window.onload=function(){oldonload();func();}}else{window.onload=func;}}
function testPassword(passwd)
{var description=new Array();description[0]="<table border=0 cellpadding=0 cellspacing=0><tr><td><table cellpadding=0 cellspacing=2><tr><td height=10 width=30 bgcolor=#ff0000></td><td height=10 width=120 bgcolor=#dddddd></td></tr></table></td><td class=bold>Trop court</td></tr></table>";description[1]="<table border=0 cellpadding=0 cellspacing=0><tr><td><table cellpadding=0 cellspacing=2><tr><td height=10 width=60 bgcolor=#bb0000></td><td height=10 width=90 bgcolor=#dddddd></td></tr></table></td><td class=bold>Faible</td></tr></table>";description[2]="<table border=0 cellpadding=0 cellspacing=0><tr><td><table cellpadding=0 cellspacing=2><tr><td height=10 width=90 bgcolor=#ff9900></td><td height=10 width=60 bgcolor=#dddddd></td></tr></table></td><td class=bold>Correct</td></tr></table>";description[3]="<table border=0 cellpadding=0 cellspacing=0><tr><td><table cellpadding=0 cellspacing=2><tr><td height=10 width=120 bgcolor=#00bb00></td><td height=10 width=30 bgcolor=#dddddd></td></tr></table></td><td class=bold>Élevé(e)</td></tr></table>";description[4]="<table border=0 cellpadding=0 cellspacing=0><tr><td><table cellpadding=0 cellspacing=2><tr><td height=10 width=150 bgcolor=#00ee00></td></tr></table></td><td class=bold>Très Élevé</td></tr></table>";description[5]="<table border=0 cellpadding=0 cellspacing=0><tr><td><table cellpadding=0 cellspacing=2><tr><td height=10 width=150 bgcolor=#dddddd></td></tr></table></td><td class=bold></td></tr></table>";var intScore=0
var strVerdict=0
if(passwd.length==0||!passwd.length)
{intScore=-1}
else if(passwd.length>0&&passwd.length<5)
{intScore=(intScore+3)}
else if(passwd.length>4&&passwd.length<8)
{intScore=(intScore+6)}
else if(passwd.length>7&&passwd.length<12)
{intScore=(intScore+12)}
else if(passwd.length>11)
{intScore=(intScore+18)}
if(passwd.match(/[a-z]/))
{intScore=(intScore+1)}
if(passwd.match(/[A-Z]/))
{intScore=(intScore+5)}
if(passwd.match(/\d+/))
{intScore=(intScore+5)}
if(passwd.match(/(.*[0-9].*[0-9].*[0-9])/))
{intScore=(intScore+5)}
if(passwd.match(/.[!,@,#,$,%,^,&,*,?,_,~]/))
{intScore=(intScore+5)}
if(passwd.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/))
{intScore=(intScore+5)}
if(passwd.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/))
{intScore=(intScore+2)}
if(passwd.match(/(\d.*\D)|(\D.*\d)/))
{intScore=(intScore+2)}
if(passwd.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/))
{intScore=(intScore+2)}
if(intScore==-1)
{strVerdict=description[5];}
else if(intScore>-1&&intScore<16)
{strVerdict=description[0];}
else if(intScore>15&&intScore<25)
{strVerdict=description[1];}
else if(intScore>24&&intScore<35)
{strVerdict=description[2];}
else if(intScore>34&&intScore<45)
{strVerdict=description[3];}
else
{strVerdict=description[4];}
document.getElementById("Words").innerHTML=(strVerdict);}
function ASearchDomain(domain,rSuccess,rResult,ext,extwd,checked){$.ajax({type:"POST",url:vb_siteUrl+'ajax/domain.suggest',data:"qd="+domain,success:function(data){if(data=='200'){$(rSuccess).html('<div class="davailable"><img src="https://secure.vala-bleu.com/i/element/2.0/global/etc/available.gif" align="absmiddle" width="15" height="15"/> Disponible</div>');$(rResult).html('<input name="TLDs" value="REG:'+domain+'" type="radio" align="absmiddle" '+checked+'/>');if(ext=='mobi'){$('#ibutton').removeAttr("disabled");}}else if(data=='201'){$(rSuccess).html('<div class="dtaken"><img src="https://secure.vala-bleu.com/i/element/2.0/global/etc/taken.gif" align="absmiddle" width="15" height="15"/> Déjà enregistré</div>');$(rResult).html('<input name="TLDs" value="TRA:'+domain+'" type="radio" align="absmiddle" '+checked+' title="Je souhaite que Vala devienne le registrar de ce nom de domaine"/><span class="dtransf" title="Je souhaite que Vala devienne le registrar de ce nom de domaine">Transfert chez Vala-Belu</span>');if(ext=='mobi'){$('#ibutton').removeAttr("disabled");}}else{$(rSuccess).html('<div class="inconnu">Inconnu</div>');$(rResult).html('');if(ext=='mobi'){$('#ibutton').removeAttr("disabled");}}}});}
function RASearchDomain(){var domain=document.domainNameSearch.domainName.value;var dtld=getCheckedValue(document.domainNameSearch.TLDs);var domain=TerDomainIn_Array(domain);$('#dprocessrequest').css("display","block");$('#ibutton').attr("disabled",true);$('.domainavailability').html('<img src="https://secure.vala-bleu.com/i/element/2.0/global/etc/bloader.gif" align="absmiddle" width="16" height="16"/>');$('.dsearching').html('Recherche ...');$('#cdsearching').html('Recherche ...');var arr=new Array('com','net','org','biz','info','co','fr','be','tv','ma','net.ma','co.ma','org.ma','gov.ma','ac.ma','press.ma','mobi');var dot1=domain.lastIndexOf(".");var dname1=domain.substring(0,dot1);var extwd1=domain.substring(dot1,domain.length);var ext1=extwd1.replace(".","");if(ExtDomainIn_Array(ext1)==true){var domain=dname1;var dot2=domain.lastIndexOf(".");var dname2=domain.substring(0,dot2);var extwd2=domain.substring(dot2,domain.length);var ext2=extwd2.replace(".","");if(ExtDomainIn_Array(ext2)==true){var domain=dname2;}}
document.domainNameSearch.domainName.value=domain;for(var i=0;i<arr.length;i++)
{var dot=arr[i].lastIndexOf(".");var dname=arr[i].substring(0,dot);var extwd=arr[i].substring(dot,arr[i].length);var ext=extwd.replace(".","");var dext=dname+extwd;$('#d'+dname+ext).html(domain+'.'+arr[i]);if(dext==dtld){$('#tr'+dname+ext).css("display","none");$('#cdomaine').html(domain+'.'+arr[i]);$('#cdavailability').html('<img src="https://secure.vala-bleu.com/i/element/2.0/global/etc/bloader.gif" align="absmiddle" width="16" height="16"/>');ASearchDomain(domain+'.'+arr[i],'#cdavailability','#cdsearching',ext,dext,'checked="checked"');}else{$('#tr'+dname+ext).css("display","");ASearchDomain(domain+'.'+arr[i],'#domain'+dname+ext,'#result'+dname+ext,ext,dext,'');}}}
function ExtDomainIn_Array(varext){var arr=new Array('com','net','org','biz','info','co','fr','be','tv','ma','net.ma','co.ma','org.ma','gov.ma','ac.ma','press.ma','mobi');for(var i=0;i<arr.length;i++)
{var dot=arr[i].lastIndexOf(".");var dname=arr[i].substring(0,dot);var extwd=arr[i].substring(dot,arr[i].length);var ext=extwd.replace(".","");if(ext==varext){return true;}}
return false;}
function TerDomainIn_Array(domain){if(domain.substr(0,7)=='http://'){var reghttp=new RegExp("http://","g");domain=domain.replace(reghttp,"");}
if(domain.substr(0,4)=='www.'){var regwww=new RegExp("www.","g");domain=domain.replace(regwww,"");}
var arr=new Array('_','--');for(var i=0;i<arr.length;i++)
{var regter=new RegExp(arr[i],"g");domain=domain.replace(regter,"-");}
return domain;}
function HelpDeskSuggest(){var ttitre=document.HelpDesk.tickettitre.value;$('#HelpDeskSuggestDataT').show("slow");if(ttitre!=''){$.ajax({type:"POST",url:vb_siteUrl+'ajax/help.suggest',data:"q="+ttitre,success:function(data){if(data!='201'){$('#HelpDeskSuggestData').show("slow");$("#HelpDeskSuggestData").html(data);}else{$('#HelpDeskSuggestData').hide("slow");}}});}}
function ClDomainNameSearch(){var domainname=document.domainsearch.domainname.value;if(checkDomain(domainname)==true){$.ajax({type:"POST",url:vb_siteUrl+'ajax/domain.search',data:"dom="+domainname,success:function(data){if(data!='201'){$('#pagination').css("display","none");$('#domainsearchRe').show("slow");$("#domainsearchRe").html(data);}else{}}});}}
function ClDomainNameFiltre(){var domainfiltre=document.domainfitre.dfiltre.value;if(domainfiltre!='false'){agoTo('ManageDomains.account?f='+domainfiltre+'&p=&page=1');}}
function jqtoggle(cl){$(cl).toggle("slow");}
function cfqshhe(sh,he){$(he).hide("slow");$(sh).show("slow");}
function captchanext(){if(navigator.appVersion.indexOf("MSIE")!=-1){document.images("captcha-form").src=(va_siteUrl+'captcha?r='+Math.random());}else{document.getElementById("captcha-form").src=(va_siteUrl+'captcha?r='+Math.random());}
document.getElementById('captcha-form').focus();}
function captchanexts(){if(navigator.appVersion.indexOf("MSIE")!=-1){document.images("captcha-form").src=(vn_siteUrl+'captcha?r='+Math.random());}else{document.getElementById("captcha-form").src=(vn_siteUrl+'captcha?r='+Math.random());}
document.getElementById('captcha-form').focus();}
function getCheckedValue(radioObj){if(!radioObj)
return"";var radioLength=radioObj.length;if(radioLength==undefined)
if(radioObj.checked)
return radioObj.value;else
return"";for(var i=0;i<radioLength;i++){if(radioObj[i].checked){return radioObj[i].value;}}
return"";}
function setCheckedValue(radioObj,newValue){if(!radioObj)
return;var radioLength=radioObj.length;if(radioLength==undefined){radioObj.checked=(radioObj.value==newValue.toString());return;}
for(var i=0;i<radioLength;i++){radioObj[i].checked=false;if(radioObj[i].value==newValue.toString()){radioObj[i].checked=true;}}}
function fvalidate(of)
{if(!document.getElementById||!document.createTextNode){return;}
if(!document.getElementById('required')){return;}
var errorID='errormsg';var errorClass='input-err'
var errorMsg='Merci d\'entrer ou de modifier le contenu des champs suivants:';var errorImg='https://secure.vala-bleu.com/i/element/2.0/global/etc/m/warningp.png';var errorAlt='Erreur';var errorTitle='Ce champ est erroné !';var reqfields=document.getElementById('required').value.split(',');var digits="0123456789";var phoneNumberDelimiters="()- ";var validWorldPhoneChars=phoneNumberDelimiters+"+";var minDigitsInIPhoneNumber=10;if(document.getElementById(errorID))
{var em=document.getElementById(errorID);em.parentNode.removeChild(em);}
for(var i=0;i<reqfields.length;i++)
{var f=document.getElementById(reqfields[i]);if(!f){continue;}
if(f.nextSibling&&/img/i.test(f.nextSibling.nodeName))
{f.parentNode.removeChild(f.nextSibling);}
f.className='input-text';}
for(var i=0;i<reqfields.length;i++)
{var f=document.getElementById(reqfields[i]);if(!f){continue;}
switch(f.type.toLowerCase())
{case'password':if(f.value==''&&f.id!='confirmation'){cf_adderr(f)}
if(f.id=='confirmation'&&!cf_isPassConAddr(f.value)){cf_adderr(f)}
break;case'text':if(f.value==''&&f.id!='email'&&f.id!='dob'&&f.id!='telephone'){cf_adderr(f)}
if(f.id=='email'&&!cf_isEmailAddr(f.value)){cf_adderr(f)}
if(f.id=='dob'&&!cf_isValidDate(f.value)){cf_adderr(f)}
if(f.id=='telephone'&&!cf_checkInternationalPhone(f.value)){cf_adderr(f)}
break;case'textarea':if(f.value==''){cf_adderr(f)}
break;case'checkbox':if(!f.checked){cf_adderr(f)}
break;case'select-one':if(!f.selectedIndex&&f.selectedIndex==0){cf_adderr(f)}
break;}}
return!document.getElementById(errorID);function cf_adderr(o)
{var errorIndicator=document.createElement('img');errorIndicator.alt=errorAlt;errorIndicator.src=errorImg;errorIndicator.title=errorTitle;o.className=errorClass;o.parentNode.insertBefore(errorIndicator,o.nextSibling);if(!document.getElementById(errorID))
{var em=document.createElement('div');em.id=errorID;var newp=document.createElement('p');newp.appendChild(document.createTextNode(errorMsg))
em.appendChild(newp);var newul=document.createElement('ul');em.appendChild(newul);for(var i=0;i<of.getElementsByTagName('input').length;i++)
{if(document.getElementById('error'))
{var sb=document.getElementById('error');break;}}
if(sb)
{sb.parentNode.insertBefore(em,sb.nextSibling);}}
var em=document.getElementById(errorID).getElementsByTagName('ul')[0];var newli=document.createElement('li');var newa=document.createElement('a');for(var i=0;i<of.getElementsByTagName('label').length;i++)
{if(of.getElementsByTagName('label')[i].htmlFor==o.id)
{var txt=of.getElementsByTagName('label')[i].firstChild.nodeValue;break;}}
newa.appendChild(document.createTextNode(txt));newa.href='#'+f.id;newa.onclick=function()
{var loc=this.href.match(/#(\w.+)/)[1];document.getElementById(loc).focus();return false;}
newli.appendChild(newa);em.appendChild(newli);}
function cf_isEmailAddr(str)
{return str.match(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/);}
function cf_isPassConAddr(str)
{if(document.getElementById("password").value!=str){return false;}else{return true;}}
function cf_isValidDate(strDate){var dteDate;var day,month,year;var datePat=/^(\d{1,2})(\/)(\d{1,2})(\/)(\d{4})$/;var matchArray=strDate.match(datePat);if(matchArray==null)
return false;day=matchArray[1];month=matchArray[3];year=matchArray[5];month--;dteDate=new Date(year,month,day);return((day==dteDate.getDate())&&(month==dteDate.getMonth())&&(year==dteDate.getFullYear()));}
function isInteger(s)
{var i;for(i=0;i<s.length;i++)
{var c=s.charAt(i);if(((c<"0")||(c>"9")))return false;}
return true;}
function trim(s)
{var i;var returnString="";for(i=0;i<s.length;i++)
{var c=s.charAt(i);if(c!=" ")returnString+=c;}
return returnString;}
function stripCharsInBag(s,bag)
{var i;var returnString="";for(i=0;i<s.length;i++)
{var c=s.charAt(i);if(bag.indexOf(c)==-1)returnString+=c;}
return returnString;}
function cf_checkInternationalPhone(str){var bracket=3
strPhone=trim(str)
if(strPhone.indexOf("+")>1)return false
if(strPhone.indexOf("-")!=-1)bracket=bracket+1
if(strPhone.indexOf("(")!=-1&&strPhone.indexOf("(")>bracket)return false
var brchr=strPhone.indexOf("(")
if(strPhone.indexOf("(")!=-1&&strPhone.charAt(brchr+2)!=")")return false
if(strPhone.indexOf("(")==-1&&strPhone.indexOf(")")!=-1)return false
s=stripCharsInBag(strPhone,validWorldPhoneChars);return(isInteger(s)&&s.length>=minDigitsInIPhoneNumber);}}
function clearText(field){if(field.defaultValue==field.value){field.value='';}else if(field.value==''){field.value=field.defaultValue;}}
function checkDomain(nname)
{var arr=new Array('.com','.net','.org','.biz','.info','.co','.fr','.be','.tv','.ma','.net.ma','.co.ma','.org.ma','.gov.ma','.ac.ma','.press.ma','.mobi');var mai=nname;var val=true;var dot=mai.lastIndexOf(".");var dname=mai.substring(0,dot);var ext=mai.substring(dot,mai.length);if(dot>2&&dot<57)
{for(var i=0;i<arr.length;i++)
{if(ext==arr[i])
{val=true;break;}
else
{val=false;}}
if(val==false)
{alert("Le extension "+ext+" n'est pas correcte");return false;}
else
{for(var j=0;j<dname.length;j++)
{var dh=dname.charAt(j);var hh=dh.charCodeAt(0);if((hh>47&&hh<59)||(hh>64&&hh<91)||(hh>96&&hh<123)||hh==45||hh==46)
{if((j==0||j==dname.length-1)&&hh==45)
{alert("Le nom de domaine ne peut ni commencer, ni se terminer par un tiret (-)");return false;}}
else{alert(" Les noms de domaines ne peuvent être composés que de caractères alphanumériques (lettres ou chiffres)");return false;}}}}
else
{alert("Votre nom de domaine est trop court/long");return false;}
return true;}
function rowOverEffect(object){if(object.className=='dataTableRow')object.className='dataTableRowOver';}
function rowOutEffect(object){if(object.className=='dataTableRowOver')object.className='dataTableRow';}
function loginAccount()
{document.loginAccount.submit();}
function loginEmail()
{document.loginEmail.submit();}
function getScrollTop(){if(document.documentElement.scrollTop)
return document.documentElement.scrollTop;return document.body.scrollTop;}
function scrollHandler(){var e=document.getElementById('rc_notify');e.style.top=getScrollTop();}
function showNotify(str){var elem=document.getElementById('rc_notify');elem.style.display='block';elem.style.visibility='visible';if(elem.currentStyle&&elem.currentStyle.position=='absolute')
{elem.style.top=getScrollTop();window.onscroll=scrollHandler;}
elem.innerHTML='<img src="https://secure.vala-bleu.com/i/element/2.0/global/etc/ajax-loader.gif" align="middle" width="16" height="16"/> '+str;}
function hideNotify(){var elem=document.getElementById('rc_notify');elem.style.display='none';elem.style.visibility='hidden';window.onscroll=null;}
function aWhois(domain){if(checkDomain(domain)){document.location.href=vn_siteUrl+'whois/'+domain+'#r';}}
function addWhoisEngine(){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addSearchEngine=="function")){window.sidebar.addSearchEngine(vn_siteUrl+'valableudomainsearch.xml',vn_siteUrl+'favicon.ico','Vala Bleu LTD','Web');}else{try{window.external.AddSearchProvider(vn_siteUrl+'valableudomainsearch.xml');}catch(x){if(70==(x.number&0xFFFF)){alert("For security reasons, you must use the mouse"+
"\n(or the Enter key) to click the Install button.");}else{alert("Unable to add search provider. "+
"["+(x.number&0xFFFF)+"]");}
return false;}}}
function verifyIP(IPvalue){errorString="";theName="";var ipPattern=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;var ipArray=IPvalue.match(ipPattern);if(IPvalue=="0.0.0.0")
errorString=errorString+IPvalue+' est une adresse IP spéciale et ne peuvent pas être utilisées ici.';else if(IPvalue=="255.255.255.255")
errorString=errorString+IPvalue+' est une adresse IP spéciale et ne peuvent pas être utilisées ici.';if(ipArray==null)
errorString=errorString+IPvalue+' n\'est pas une adresse IP valide.';else{for(i=0;i<4;i++){thisSegment=ipArray[i];if(thisSegment>255){errorString=errorString+IPvalue+' n\'est pas une adresse IP valide.';i=4;}
if((i==0)&&(thisSegment>255)){errorString=errorString+IPvalue+' est une adresse IP spéciale et ne peuvent pas être utilisées ici.';i=4;}}}
extensionLength=3;if(errorString==""){return'true';}else{alert(errorString);return false;}}
function verifyIPv6(IPvalue){errorString="";theName="";var ipPattern="/^(([A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4})$|^([A-Fa-f0-9]{1,4}::([A-Fa-f0-9]{1,4}:){0,5}[A-Fa-f0-9]{1,4})$|^(([A-Fa-f0-9]{1,4}:){2}:([A-Fa-f0-9]{1,4}:){0,4}[A-Fa-f0-9]{1,4})$|^(([A-Fa-f0-9]{1,4}:){3}:([A-Fa-f0-9]{1,4}:){0,3}[A-Fa-f0-9]{1,4})$|^(([A-Fa-f0-9]{1,4}:){4}:([A-Fa-f0-9]{1,4}:){0,2}[A-Fa-f0-9]{1,4})$|^(([A-Fa-f0-9]{1,4}:){5}:([A-Fa-f0-9]{1,4}:){0,1}[A-Fa-f0-9]{1,4})$|^(([A-Fa-f0-9]{1,4}:){6}:[A-Fa-f0-9]{1,4})$/";var ipArray=IPvalue.match(ipPattern);if(IPvalue=="::1")
errorString=errorString+IPvalue+' est une adresse IP spéciale et ne peuvent pas être utilisées ici.';else if(IPvalue=="fe80::")
errorString=errorString+IPvalue+' est une adresse IP spéciale et ne peuvent pas être utilisées ici.';if(errorString==""){if(ipArray==null)
errorString=errorString+IPvalue+' n\'est pas une adresse IP valide.';}
extensionLength=3;if(errorString==""){return'true';}else{alert(errorString);return false;}}
function vVirtualServerControl(idvs,action){if((idvs)||(action)){if($('#mrebootsuccess').css("display")!="none"){$('#mrebootsuccess').css('display','none');}
if($('#mshutdownsuccess').css("display")!="none"){$('#mshutdownsuccess').css('display','none');}
if($('#mbootsuccess').css("display")!="none"){$('#mbootsuccess').css('display','none');}
if(action=='reboot'){$('#vpscreboot').attr('disabled','disabled');$('#vpscshutdown').attr('disabled','disabled');$('#vpscboot').attr('disabled','disabled');$.ajax({type:'POST',url:va_siteUrl+'VirtualServerControl.account',data:'iVps='+idvs+'&action='+action,cache:false,timeout:3600,success:function(msg){if(msg=='rebooted'){$('#prebooted').show().delay(36000).queue(function(){gotoa('PowerControl.account?iVps='+idvs+'&vpsmsg=rebootsuccess');});}
if(msg=='error'){gotoa('PowerControl.account?iVps='+idvs+'&vpsmsg=rebooterror');}}});}
if(action=='shutdown'){$('#vpscreboot').attr('disabled','disabled');$('#vpscshutdown').attr('disabled','disabled');$('#vpscboot').attr('disabled','disabled');$.ajax({type:'POST',url:va_siteUrl+'VirtualServerControl.account',data:'iVps='+idvs+'&action='+action,cache:false,timeout:3600,success:function(msg){if(msg=='shutdown'){$('#pshutdown').show().delay(36000).queue(function(){gotoa('PowerControl.account?iVps='+idvs+'&vpsmsg=shutdownsuccess');});}
if(msg=='error'){gotoa('PowerControl.account?iVps='+idvs+'&vpsmsg=shutdownerror');}}});}
if(action=='boot'){$('#vpscreboot').attr('disabled','disabled');$('#vpscshutdown').attr('disabled','disabled');$('#vpscboot').attr('disabled','disabled');$.ajax({type:'POST',url:va_siteUrl+'VirtualServerControl.account',data:'iVps='+idvs+'&action='+action,cache:false,timeout:3600,success:function(msg){if(msg=='booted'){$('#pboot').show().delay(36000).queue(function(){gotoa('PowerControl.account?iVps='+idvs+'&vpsmsg=bootsuccess');});}
if(msg=='error'){gotoa('PowerControl.account?iVps='+idvs+'&vpsmsg=booterror');}}});}}}
vau.fc_scrollTo=function(hash){var $target=$('#'+hash);if($target.length){var targetOffset=$target.offset().top;$('html,body').animate({scrollTop:targetOffset},1000);return false;}}
vau.SFMA_Set=function(){if(vs_currency=='MAD'){$("#SFMA").html('');}else{$("#SFMA").html('<img src="https://secure.vala-bleu.com/i/element/2.0/global/nav/header/SFAM-EUR.png" style="border: none;" width="240" height="181"/>');}}
var clicked=false;function allowClick(){if(!clicked){clicked=true;return true;}
return false;}
var windowNameSeq=0;var windows=new Array();function windowExists(name){for(var i=0;i<windows.length;i++){try{if(windows[i].name==name){return true;}}
catch(exception){}}
return false;}
function getWindow(name){for(var i=0;i<windows.length;i++){try{if(windows[i].name==name){return windows[i];}}
catch(exception){}}}
function removeWindow(name){for(var i=0;i<windows.length;i++){try{if(windows[i].name==name){windows.splice(i,1);return;}}
catch(exception){}}}
function launchWinWithOptions(name,url,options){if(!windowExists(name)){var winVar=window.open(url,name,options);windows[windows.length]=winVar;return winVar;}
else{var theWin=getWindow(name);theWin.focus();}}
function launchWin(name,url,width,height){var defaultOptions="location=no,status=no,toolbar=no,personalbar=no,menubar=no,directories=no,";var winleft=(screen.width-width)/2;var winUp=(screen.height-height)/2;defaultOptions+="scrollbars=no,resizable=yes,top="+winUp+",left="+winleft+",";defaultOptions+="width="+width+",height="+height;launchWinWithOptions(name,url,defaultOptions);}
vau.showChatButton=function(workgroup){var d=new Date();var v1=d.getSeconds()+''+d.getDay();var gotoURL="http://real-time.vala-bleu.com/webchat/start.jsp?workgroup="+workgroup+"&location="+window.location.href;if(vs_ssl=='1'){var rturl=vs_siteUrl+'RealtimeStat'}else{var rturl='http://'+vv_siteUrl+'/RealtimeStat'}
$.ajax({type:'GET',url:rturl,data:'workgroup='+workgroup,cache:false,success:function(msg){if(msg==200){$(".va_vss2Live").html('<a onclick="launchWin(\'framemain\',\''+gotoURL+'\',500, 400);return false;"><img src="https://secure.vala-bleu.com/i/element/2.0/global/fr/Online.png" id="LiveChatButtonStatus" style="border: none;" />');}
if(msg==201){$(".va_vss2Live").html('<a onclick="launchWin(\'framemain\',\''+gotoURL+'\',500, 400);return false;"><img src="https://secure.vala-bleu.com/i/element/2.0/global/fr/Offline.png" id="LiveChatButtonStatus" style="border: none;" />');}}});var refreshLiveChatButtonStatus=setInterval(function(){$.ajax({type:'GET',url:rturl,data:'workgroup='+workgroup,cache:false,success:function(msg){if(msg==200){$("#LiveChatButtonStatus").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/fr/Online.png");}
if(msg==201){$("#LiveChatButtonStatus").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/fr/Offline.png");}}});},300000);}
vau.SFMA_scrollToVapm=function(){$('html, body').animate({scrollTop:$("#vapm").offset().top},2000);javascript:onClickShowHide('pmContainerI');}
vau.SFMA_Vapm=function(){setTimeout('vau.SFMA_scrollToVapm();',10000);}
vau.SFMA_Set();vau.showChatButton('commercial@workgroup.real-time.vala-bleu.com');$(".valaboxnav ul li.navItem").hover(function(){$(this).css({'background':'transparent url(https://secure.vala-bleu.com/i/element/2.0/global/nav/header/big-menu-on.png) 0 0 no-repeat'});$("a.subnav",this).css({'background':' transparent url(https://secure.vala-bleu.com/i/element/2.0/global/nav/header/big-menu-on2.png) no-repeat center right'});$("a.subnav-active",this).css({'background':' transparent url(https://secure.vala-bleu.com/i/element/2.0/global/nav/header/big-menu-on2.png) no-repeat center right'});$(this).find("div.subnav").show();},function(){$(this).css({'background':'none'});$("a.subnav",this).css({'background':'transparent url(https://secure.vala-bleu.com/i/element/2.0/global/nav/header/big-menu.png) 100% -84px no-repeat'});$("a.subnav-active",this).css({'background':'none'});$(this).find("div.subnav").hide();});vau.VpsSwitchTo='STANDARD';vau.VpsSwitchClick='s';vau.VPS_SetD=function(){$("#img-s").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-s-1.gif");$("#img-m").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-m-1.gif");$("#img-l").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-l-1.gif");$("#img-xl").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-xl-1.gif");$("#img-xxl").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-xxl-1.gif");$('#selectedProduct').attr('value','VPS_PKG_S');}
vau.VPS_PS=function(){vau.VPS_SetD();$("#valaVpsOptCpu").html('0,84');$("#valaVpsOptGram").html('512');$("#valaVpsOptSpace").html('40');$("#valaVpsOptSpace").css('color','#357EBB');if(vau.VpsSwitchTo=='STANDARD'){$("#valaVpsOptCpu").html('0,84');$("#valaVpsboxlist-s #bw").css('color','#D90101');$("#valaVpsboxlist-s #bw").html('1000 GO');$("#valaVpsPrice-s-p").hide();$("#valaVpsPrice-s-s").show();}else{$("#valaVpsOptCpu").html('1,98');$("#valaVpsboxlist-s #bw").css('color','#357EBB');$("#valaVpsboxlist-s #bw").html('2000 GO');$("#valaVpsPrice-s-s").hide();$("#valaVpsPrice-s-p").show();}
vau.VPS_HideShowP('s');vau.VpsSwitchClick='s';$("#img-s").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-s-2.gif");if(vau.VpsSwitchTo=='PREMIUM'){$('#selectedProduct').attr('value','VPSP_PKG_S');}else{$('#selectedProduct').attr('value','VPS_PKG_S');}}
vau.VPS_PM=function(){vau.VPS_SetD();$("#valaVpsOptCpu").html('1,13');$("#valaVpsOptGram").html('768');$("#valaVpsOptSpace").html('50');$("#valaVpsOptSpace").css('color','#357EBB');if(vau.VpsSwitchTo=='STANDARD'){$("#valaVpsOptCpu").html('1,13');$("#valaVpsboxlist-m #bw").css('color','#D90101');$("#valaVpsboxlist-m #bw").html('1000 GO');$("#valaVpsPrice-m-p").hide();$("#valaVpsPrice-m-s").show();}else{$("#valaVpsOptCpu").html('2,98');$("#valaVpsboxlist-m #bw").css('color','#357EBB');$("#valaVpsboxlist-m #bw").html('2000 GO');$("#valaVpsPrice-m-s").hide();$("#valaVpsPrice-m-p").show();}
vau.VPS_HideShowP('m');vau.VpsSwitchClick='m';$("#img-m").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-m-2.gif");if(vau.VpsSwitchTo=='PREMIUM'){$('#selectedProduct').attr('value','VPSP_PKG_M');}else{$('#selectedProduct').attr('value','VPS_PKG_M');}}
vau.VPS_PL=function(){vau.VPS_SetD();$("#valaVpsOptCpu").html('1,98');$("#valaVpsOptGram").html('1024');$("#valaVpsOptSpace").html('60');$("#valaVpsOptSpace").css('color','#357EBB');if(vau.VpsSwitchTo=='STANDARD'){$("#valaVpsOptCpu").html('1,98');$("#valaVpsboxlist-l #bw").css('color','#D90101');$("#valaVpsboxlist-l #bw").html('1500 GO');$("#valaVpsPrice-l-p").hide();$("#valaVpsPrice-l-s").show();}else{$("#valaVpsOptCpu").html('3,98');$("#valaVpsboxlist-l #bw").css('color','#357EBB');$("#valaVpsboxlist-l #bw").html('3000 GO');$("#valaVpsPrice-l-s").hide();$("#valaVpsPrice-l-p").show();}
vau.VPS_HideShowP('l');vau.VpsSwitchClick='l';$("#img-l").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-l-2.gif");if(vau.VpsSwitchTo=='PREMIUM'){$('#selectedProduct').attr('value','VPSP_PKG_L');}else{$('#selectedProduct').attr('value','VPS_PKG_L');}}
vau.VPS_PXL=function(){vau.VPS_SetD();$("#valaVpsOptCpu").html('2,68');$("#valaVpsOptGram").html('2048');$("#valaVpsOptSpace").html('100');$("#valaVpsOptSpace").css('color','#357EBB');if(vau.VpsSwitchTo=='STANDARD'){$("#valaVpsOptCpu").html('2,68');$("#valaVpsboxlist-xl #bw").css('color','#D90101');$("#valaVpsboxlist-xl #bw").html('2000 GO');$("#valaVpsPrice-xl-p").hide();$("#valaVpsPrice-xl-s").show();}else{$("#valaVpsOptCpu").html('4,98');$("#valaVpsboxlist-xl #bw").css('color','#357EBB');$("#valaVpsboxlist-xl #bw").html('4000 GO');$("#valaVpsPrice-xl-s").hide();$("#valaVpsPrice-xl-p").show();}
vau.VPS_HideShowP('xl');vau.VpsSwitchClick='xl';$("#img-xl").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-xl-2.gif");if(vau.VpsSwitchTo=='PREMIUM'){$('#selectedProduct').attr('value','VPSP_PKG_XL');}else{$('#selectedProduct').attr('value','VPS_PKG_XL');}}
vau.VPS_PXXL=function(){vau.VPS_SetD();$("#valaVpsOptCpu").html('3,39');$("#valaVpsOptGram").html('2560');$("#valaVpsOptSpace").html('100');if(vau.VpsSwitchTo=='STANDARD'){$("#valaVpsOptCpu").html('3,39');$("#valaVpsboxlist-xxl #bw").css('color','#D90101');$("#valaVpsOptSpace").css('color','#357EBB');$("#valaVpsboxlist-xxl #bw").html('3000 GO');$("#valaVpsPrice-xxl-p").hide();$("#valaVpsPrice-xxl-s").show();$("#valaVpsOptSpace").html('100');}else{$("#valaVpsOptCpu").html('5,98');$("#valaVpsboxlist-xxl #bw").css('color','#357EBB');$("#valaVpsOptSpace").css('color','#D90101');$("#valaVpsboxlist-xxl #bw").html('6000 GO');$("#valaVpsPrice-xxl-s").hide();$("#valaVpsPrice-xxl-p").show();$("#valaVpsOptSpace").html('150');}
vau.VPS_HideShowP('xxl');vau.VpsSwitchClick='xxl';$("#img-xxl").attr("src","https://secure.vala-bleu.com/i/element/2.0/global/vps/P-xxl-2.gif");if(vau.VpsSwitchTo=='PREMIUM'){$('#selectedProduct').attr('value','VPSP_PKG_XXL');}else{$('#selectedProduct').attr('value','VPS_PKG_XXL');}}
vau.VPS_SetP=function(e){$(".valaVpsSlider").slider("value",e);vau.VPS_ID=e;}
vau.VPS_SetDR=function(){$("#valaVpsResult-1").show();}
vau.VPS_HideShowP=function(e){$("#valaVpsPriceI-s").hide();$("#valaVpsPriceI-m").hide();$("#valaVpsPriceI-l").hide();$("#valaVpsPriceI-xl").hide();$("#valaVpsPriceI-xxl").hide();$("#valaVpsPriceI-"+e).show();$("#valaVpsboxlist-s").hide();$("#valaVpsboxlist-m").hide();$("#valaVpsboxlist-l").hide();$("#valaVpsboxlist-xl").hide();$("#valaVpsboxlist-xxl").hide();$("#valaVpsboxlist-"+e).show();}
vau.VPS_SetSlider=function(){$(".valaVpsSlider").slider({animate:true,range:"min",value:0,min:1,max:5,step:1,slide:function(event,ui){$("#valaVpsSliderResult").html(ui.value);$(".valaVpsSliderResult").hide();$("#valaVpsresult-"+ui.value).show();if(ui.value==1)vau.VPS_PS();if(ui.value==2)vau.VPS_PM();if(ui.value==3)vau.VPS_PL();if(ui.value==4)vau.VPS_PXL();if(ui.value==5)vau.VPS_PXXL();}});}
vau.VpsSwitch=function(){$(".cb-enable").click(function(){var parent=$(this).parents('.cb-switch');$('.cb-disable',parent).removeClass('selected');$(this).addClass('selected');vau.VpsSwitchTo='STANDARD';if(vau.VpsSwitchClick=='s')vau.VPS_PS();if(vau.VpsSwitchClick=='m')vau.VPS_PM();if(vau.VpsSwitchClick=='l')vau.VPS_PL();if(vau.VpsSwitchClick=='xl')vau.VPS_PXL();if(vau.VpsSwitchClick=='xxl')vau.VPS_PXXL();$("#valaVpsContainer").css({'background':'#F4F4F4 url(https://secure.vala-bleu.com/i/element/2.0/global/vps/vi_vps_b-1.jpg) no-repeat top'});$(".valaVpsNiveau").css({'background':'url(https://secure.vala-bleu.com/i/element/2.0/global/vps/niveau.png?024) no-repeat top'});$("#netw strong").html('10 Mbps');$("#netw strong").css('color','#D90101');});$(".cb-disable").click(function(){var parent=$(this).parents('.cb-switch');$('.cb-enable',parent).removeClass('selected');$(this).addClass('selected');vau.VpsSwitchTo='PREMIUM';if(vau.VpsSwitchClick=='s')vau.VPS_PS();if(vau.VpsSwitchClick=='m')vau.VPS_PM();if(vau.VpsSwitchClick=='l')vau.VPS_PL();if(vau.VpsSwitchClick=='xl')vau.VPS_PXL();if(vau.VpsSwitchClick=='xxl')vau.VPS_PXXL();$("#valaVpsContainer").css({'background':'#F4F4F4 url(https://secure.vala-bleu.com/i/element/2.0/global/vps/vi_vps_bx-1.jpg) no-repeat top'});$(".valaVpsNiveau").css({'background':'url(https://secure.vala-bleu.com/i/element/2.0/global/vps/niveau-x.png?1597) no-repeat top'});$("#netw strong").html('100 Mbps');$("#netw strong").css('color','#357EBB');});}
vau.VPS_ProcessRequestStep=function(flow){if(flow=='Start'){var getUrl=vs_siteUrl+'purchase-it/View_DisplayVpsflow-Start.process?';var getData="flowName=vps-hosting&flow="+flow+"&selectedProduct="+$('input#selectedProduct').val()+"&c="+vs_countrycode;document.location.href=getUrl+getData;}
if(flow=='Domaine'){var postUrl=vs_siteUrl+'purchase-it/View_DisplayVpsflow.process';var postData="flow="+flow;postData+="&flowName="+$('input#flowName').val();postData+="&selectedProduct="+$('input#selectedProduct').val();postData+="&sbin="+getCheckedValue(document.processVPBin.BIN);postData+="&_act="+$('input#_act').val();postData+="&c="+vs_countrycode;sendAjaxRequest("POST",postUrl,postData,"html",'#aContainerCenter');}
if(flow=='TRADomaine'){var postUrl=vs_siteUrl+'purchase-it/View_DisplayVpsflow.process';var postData="flow=Option";postData+="&flowName="+$('input#flowName').val();postData+="&authcode="+$('input#_authcode').val();postData+="&traco="+document.DomainTransfer.traco.checked
postData+="&_act="+$('input#_act').val();postData+="&c="+vs_countrycode;sendAjaxRequest("POST",postUrl,postData,"html",'#aContainerCenter');}
if(flow=='Option'){var postUrl=vs_siteUrl+'purchase-it/View_DisplayVpsflow.process';var postData="flow="+flow;postData+="&flowName="+$('input#flowName').val();postData+="&dn="+getCheckedValue(document.DomainNameSearchResult.TLDs);postData+="&_act="+$('input#_act').val();postData+="&c="+vs_countrycode;sendAjaxRequest("POST",postUrl,postData,"html",'#aContainerCenter');}
if(flow=='End'){var postUrl=vs_siteUrl+'purchase-it/View_DisplayVpsflow.process';var postData="flow="+flow;postData+="&_act="+$('input#_act').val();postData+="&opt_dns1="+$('input#_dns1').val();postData+="&opt_dns2="+$('input#_dns2').val();postData+="&opt_os="+getCheckedValue(document.processVPOption._OS);postData+="&opt_cp="+getCheckedValue(document.processVPOption._CP);postData+="&opt_ig="+getCheckedValue(document.processVPOption._IG);postData+="&flowName="+$('input#flowName').val();postData+="&c="+vs_countrycode;sendAjaxRequest("POST",postUrl,postData,"html",'#ContainerServiceLeft');}}
vau.SetBodyBackground=function(){$('#valaHeader').css("background","none");if(vs_currency=='MAD'){$('body').css("background","#ffffff url(https://secure.vala-bleu.com/i/element/2.0/global/big/big-vps-MAD.jpg?87019) no-repeat center top");}else{$('body').css("background","#ffffff url(https://secure.vala-bleu.com/i/element/2.0/global/big/big-holiday-EUR.jpg?15454) no-repeat center top");}}
vau.LABELHTEL=function(id,index,seconds){var Specialoffer=['<img src="https://secure.vala-bleu.com/i/element/2.0/global/etc/sp/co-'+vs_countrycode+'.jpg" border="0" title="Offre spécial au bout de fil n\'héitez pas à appeler aujourd\'hui." alt="Offre spécial au bout de fil n\'hésitez pas à appeler aujourd\'hui" />','<a href="http://'+vv_siteUrl+'/Hebergement_web/Cloud/Revendeurs/Basic/?c='+vs_countrycode+'"><img src="https://secure.vala-bleu.com/i/element/2.0/global/ban-958-71/'+vs_currency+'/host-ress.jpg?9863325" border="0" title="La solution N°1 d\'hébergement Revendeur adapté pour les web designers, agence web et développeurs" alt="image La solution N°1 d\'hébergement Revendeur adapté pour les web designers, agence web et développeurs" /></a>','<img src="https://secure.vala-bleu.com/i/element/2.0/global/etc/sp/co-'+vs_countrycode+'.jpg" border="0" title="Offre spécial au bout de fil n\'héitez pas à appeler aujourd\'hui." alt="Offre spécial au bout de fil n\'hésitez pas à appeler aujourd\'hui" />','<a href="http://'+vv_siteUrl+'/Hebergement_web/Cloud/Illimite/Basic/?c='+vs_countrycode+'"><img src="https://secure.vala-bleu.com/i/element/2.0/global/ban-958-71/'+vs_currency+'/host-cloud.jpg?250354" border="0" title="Nouvell gamme d\'hébergement web 100% CLOUD, CPU dédie, Mémoire dédié, Multi sites" alt="Nouvell gamme d\'hébergement web 100% CLOUD, CPU dédie, Mémoire dédié, Multi sites" /></a>'];$('#'+id).show("slow");$('#'+id).html(Specialoffer[1]);function vala_rotateSpecialoffer()
{$('#'+id).fadeOut("slow",function(){$(this).html(Specialoffer[index]);$(this).fadeIn("slow",function(){if(index==Specialoffer.length-1){index=0;}else{index++;}});});}
setInterval(vala_rotateSpecialoffer,seconds);}
vau.LABELHTEL('LABEL_EXT',1,10000);vau.SetBodyBackground();vau.VpsSwitch();vau.VPS_SetSlider();vau.VPS_SetD();vau.VPS_SetDR();vau.VPS_PS();
