function $(id) {return document.getElementById(id);}var __attachedEvents = new Array();function $AttachEvent(elem, event, func) {var ob = { elemid: elem.id, eventName: event };__attachedEvents.push(ob);if (elem == null) { return; }if (event == null || event == '') { return; }if (func == null) { return; }if (elem.addEventListener) {elem.addEventListener(event.replace('on', ''), func, false);}else if (elem.attachEvent) {elem.attachEvent(event, func);}else {elem.event = func;}}function $IsEventAttached(elem, event) {for (var i = 0; i < __attachedEvents.length; i++) {if (__attachedEvents[i].elemid == elem.id && __attachedEvents[i].eventName == event) {return true;}}return false;}function $AttachLink(id, lnk) {$(id).setAttribute('href', lnk);}function $GetEventKey(event) {return (window.event) ? event.keyCode : event.which;}function $GetQueryParameter(ParameterName) {var strReturn = "";var strHref = window.location.href;if (strHref.indexOf("?") > -1) {var strQueryString = strHref.substr(strHref.indexOf("?"));var aQueryString = strQueryString.split("&");for (var iParam = 0; iParam < aQueryString.length; iParam++) {if (aQueryString[iParam].indexOf(ParameterName + "=") > -1) {var aParam = aQueryString[iParam].split("=");strReturn = aParam[1];break;}}}return unescape(strReturn);}function IsAnEmailAddress(str) {var verif = /^([a-zA-Z0-9_\+\-\.]{1,})@([a-zA-Z0-9_\+\-\.]{1,})\.([a-zA-Z0-9_\+\-\.]{1,})$/i;if (verif.exec(str) != null) {return true;}return false;}function $ImportScript(src) {var src = __CONF__URL_MEDIA + "JScripts/" + src + ".js?" + new Date().toDateString().replace(' ', '-').replace(' ', '-').replace(' ', '-');document.write("<script type='text/javascript' src='"+src+"'></script>");}function $ImportScriptAjaxCB(response, Params) {window.eval(response);if(Params && Params[0]){Params[0](Params[1]);}}function $ImportScriptAjax(src,callback,params) {if (src.substring(0, 4).toLowerCase() != "http") {src = __CONF__URL_MEDIA + "JScripts/" + src + ".js";}var co = "?";if (src.indexOf('?', 0) > 0) {co = '&';}src += co + new Date().toDateString().replace(' ', '-').replace(' ', '-').replace(' ', '-');AjaxHttpGet(src, $ImportScriptAjaxCB, [callback,params]);}function $ImportScriptInHead(src, callback) {if (src.substring(0, 4).toLowerCase() != "http") {src = __CONF__URL_MEDIA + "JScripts/" + src + ".js";}src += "?" + new Date().toDateString().replace(' ', '-').replace(' ', '-').replace(' ', '-');var script = document.createElement("script");script.src = src;script.type = "text/javascript";script.onload = callback;script.onreadystatechange = function() {if (/loaded|complete/.test(this.readyState)) {callback();}};document.getElementsByTagName("head")[0].appendChild(script);}function GetElementByClassNamePath(myElem, ClassNamePath) {if (myElem == null) return myElem;if (ClassNamePath.length == 0) return myElem;if (myElem.className == ClassNamePath) return myElem;if (myElem.hasChildNodes()) {var ClassNames = ClassNamePath.split('::');for (var i = 0; i < myElem.childNodes.length; i++) {if (myElem.childNodes[i].className == ClassNames[0])return GetElementByClassNamePath(myElem.childNodes[i], ClassNamePath.substr(ClassNames[0].length, ClassNamePath.length - ClassNames[0].length).replace(/^::/gi, ''));}}return myElem;}function ShowAjaxLoading() {$('AjaxLoadingBlk').style.display = '';}function HideAjaxLoading() {$('AjaxLoadingBlk').style.display = 'none';}function ChangeDivOpacity(dvID, Opacity) {var object = $(dvID).style;object.opacity = (Opacity / 100);object.MozOpacity = (Opacity / 100);object.KhtmlOpacity = (Opacity / 100);object.filter = "alpha(opacity=" + Opacity + ")";}function HTMLEncode(str) {if (str == null) return null;msgEncoded = '';allLines = str.split('\n');for (var i = 0; i < allLines.length; i++) {if (i > 0) msgEncoded += '<br />';div = document.createElement('div');text = document.createTextNode(allLines[i]);div.appendChild(text);msgEncoded += div.innerHTML;}return msgEncoded;}function HTMLDecode(str) {var RegEx1 = /&amp;/gi;var RegEx2 = /&gt;/gi;var RegEx3 = /&lt;/gi;return str.replace(RegEx1, "&").replace(RegEx2, ">").replace(RegEx3, "<");}function GetCurentPageName() {var uri = new Object();uri.dir = location.href.substring(0, location.href.lastIndexOf('\/'));uri.page = location.href.substring(uri.dir.length + 1, location.href.length + 1);pos = uri.page.indexOf('?'); if (pos > -1) { uri.page = uri.page.substring(0, pos); }pos = uri.page.indexOf('#'); if (pos > -1) { uri.page = uri.page.substring(0, pos); }uri.ext = ''; pos = uri.page.indexOf('.'); if (pos > -1) { uri.ext = uri.page.substring(pos + 1); uri.page = uri.page.substr(0, pos); }uri.file = uri.page;if (uri.page == '' || uri.page=='default')return "Default";return uri.page}function EndRequestHandler(sender, args) {if (args.get_error() != undefined) {var errorMessage;if (args.get_response().get_statusCode() == '200') {errorMessage = args.get_error().message;}else {errorMessage = 'An unspecified error occurred. ';}args.set_errorHandled(true);if (JSDebugMode) {alert(errorMessage);}}}function AttachSysErrorHandling() {try {Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);} catch (ex) {}}function AttachWindowOnLoadCall(method) {if (window.onload) {var oldOnLoad = window.onload;var onloadfunction = function() {oldOnLoad();method();};} else {var onloadfunction = method;}window.onload = onloadfunction;}function AttachWindowOnUnloadCall(method) {if (window.onunload) {var oldOnUnload = window.onunload;var onunloadfunction = function() {oldOnUnload();method();};} else {var onunloadfunction = method;}window.onunload = onunloadfunction;}AttachWindowOnLoadCall(AttachSysErrorHandling);var __WaterMarkTexts = new Array();function IsWaterMarkEntrySet(id) {if ($(id).value == __WaterMarkTexts[id])return false;return true;}function InitWaterMark(id) {__WaterMarkTexts[id] = $(id).value;var ClassSuffix = 'WaterMarked';if ($(id).className.length > 0)ClassSuffix = ' ' + ClassSuffix;if (!$(id).className.match('WaterMarked'))$(id).className += ClassSuffix;$(id).onfocus = function() {if ($(this.id).value == __WaterMarkTexts[this.id]) {$(this.id).value = "";$(this.id).className = $(this.id).className.replace(' WaterMarked', '').replace('WaterMarked', '');}};$(id).onblur = function() {if ($(this.id).value == "" || $(this.id).value == __WaterMarkTexts[this.id]) {var ClassSuffix = "";if ($(this.id).className.length > 0) {ClassSuffix += ' ';}ClassSuffix += 'WaterMarked';$(this.id).className += ClassSuffix;$(this.id).value = __WaterMarkTexts[this.id];}};}function AnnimScrollBlockRight(ScrollToPosition, BlockId, Step, Speed, GoFast) {if ($(BlockId).scrollLeft < ScrollToPosition) {$(BlockId).scrollLeft = $(BlockId).scrollLeft + (GoFast ? Step * 4 : Step);setTimeout('AnnimScrollBlockRight(' + ScrollToPosition + ', \'' + BlockId + '\', ' + Step + ', ' + GoFast + ')', Speed);}else {document.getElementById(BlockId).scrollLeft = ScrollToPosition;}}function AnnimScrollBlockLeft(ScrollToPosition, BlockId, Step, Speed, GoFast) {if ($(BlockId).scrollLeft > ScrollToPosition) {$(BlockId).scrollLeft = $(BlockId).scrollLeft - (GoFast ? Step * 4 : Step);setTimeout('AnnimScrollBlockLeft(' + ScrollToPosition + ', \'' + BlockId + '\', ' + Step + ', ' + GoFast + ')', Speed);}else {$(BlockId).scrollLeft = ScrollToPosition;}}function ReduceDiv(divId, fromHeight) {var newheight = fromHeight / 2 - 1;if (newheight > 10) {$(divId).style.height = newheight + 'px';setTimeout('ReduceDiv("' + divId + '", ' + newheight + ')', 40);}else {$(divId).style.height = '0px';}}function RaiseDiv(divId, fromHeight, toHeight) {var newheight = fromHeight + (((toHeight - fromHeight) / 2) + 1);if (newheight + 10 < toHeight) {$(divId).style.height = newheight + 'px';setTimeout('RaiseDiv("' + divId + '", ' + newheight + ', ' + toHeight + ')', 40);}else {$(divId).style.height = toHeight + 'px';}}function getXhr() { if (window.XMLHttpRequest) xhr = new XMLHttpRequest(); else if (window.ActiveXObject) { try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } } else { alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest, veuillez le mettre à jour"); xhr = false; } }function GetFullUrl(Url) {if (Url.toString().indexOf("?", 0) > 1) {Url += '&' + new Date().getTime();}else {Url += '?' + new Date().getTime();}return Url;}function AjaxCall(Type, Url, PostData, CallBack, Params) {this._Type = Type;this._Url = Url;this._PostData = PostData;this._CallBack = CallBack;this._Params = Params;this.ExecuteNow = function() {getXhr();var tmpCallBack = this._CallBack;var tmpParams = this._Params;xhr.onreadystatechange = function() {if (xhr.readyState == 4) {if (xhr.status == 200) {MyTrace('Call : AjaxHttpPost, Response : ' + xhr.responseText);__AjaxSemaphore = true;setTimeout('AjaxHttpManagerCall()', 0);try {if (tmpCallBack != null) {tmpCallBack(xhr.responseText, tmpParams);}}catch (ex) {if (JSDebugMode) {alert('Error in CallBack : ' + ex);}}}else {if (JSDebugMode) {alert('XHR status Error : ' + xhr.statusText);}}}};if (Type == 'POST') {xhr.open("POST", GetFullUrl(this._Url), true);xhr.setRequestHeader('Content-Type', 'text/xml');xhr.send(this._PostData + '\nAjaxSecureGuid=' + __AjaxSecureGuid);}else {xhr.open("GET", GetFullUrl(this._Url), true);xhr.setRequestHeader('Content-Type', 'text/xml');xhr.send(null);}}}var __AjaxSemaphore = true;var __AjaxCalls = new Array();function AjaxHttpManagerCall() {if(__AjaxCalls.length == 0) return;if (__AjaxSemaphore) {var myCall = __AjaxCalls.pop();__AjaxSemaphore = false;myCall.ExecuteNow();}}function AjaxHttpManager(Type, Url, PostData, CallBack, Params) {var obj = new AjaxCall(Type, Url, PostData, CallBack, Params);__AjaxCalls.push(obj);if (__AjaxSemaphore) {AjaxHttpManagerCall();}}function AjaxHttpPost(Url, PostData, CallBack, Params) {AjaxHttpManager('POST', Url, PostData, CallBack, Params);}function AjaxHttpGet(Url, CallBack, Params) {AjaxHttpManager('GET', Url, null, CallBack, Params);}function CloseMyAlert(callBack) {document.body.removeChild($('MyAlertBlk'));if (callBack != 'null')setTimeout(callBack + '()', 10);}function f_filterResults(n_win, n_docel, n_body) {var n_result = n_win ? n_win : 0;if (n_docel && (!n_result || (n_result > n_docel)))n_result = n_docel;return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;}function getScrollTop() {return f_filterResults(window.pageYOffset ? window.pageYOffset : 0,document.documentElement ? document.documentElement.scrollTop : 0,document.body ? document.body.scrollTop : 0);}function getWindowSize() {var db = (!document.documentElement.clientWidth) ? document.body : document.documentElement;var windowWidth = (window.innerWidth) ? window.innerWidth : db.clientWidth;var windowHeight = (window.innerHeight) ? window.innerHeight : db.clientHeight;return { 'width': windowWidth, 'height': windowHeight };}function getPageSize() {var windowSize = getWindowSize();var xScroll = document.body.scrollWidth;var yScroll = (window.innerHeight && window.scrollMaxY) ? window.innerHeight + window.scrollMaxY : document.body.scrollHeight;var pageWidth = (xScroll < windowSize.width) ? windowSize.width : xScroll;var pageHeight = (yScroll < windowSize.height) ? windowSize.height : yScroll;return { 'width': pageWidth, 'height': pageHeight };}function MyAlertPosition() {try {var windowSize = getWindowSize();var pageSize = getPageSize();$('MyAlertBlk').style.top = (getScrollTop() + 100) + 'px';$('MyAlertBlk').style.left = Math.round((getPageSize().width - 25) / 2 - ($('MyAlertBlk').style.width.toString().replace('px', '') / 2)) + 'px';setTimeout('MyAlertPosition()', 10);}catch (e) { }}function MyAlert(title, body, callBack) {dvAlertContainer = document.createElement("DIV");document.body.appendChild(dvAlertContainer);dvAlertContainer.id = 'MyAlertBlk';dvAlertContainer.className = 'MyAlertBlk';dvAlertContainer.style.width = '320px';dvMyAlert = document.createElement("DIV");dvMyAlert.id = 'MyAlertPopup';dvMyAlert.className = 'WzPopupV2';dvMyAlert.style.width = '320px';dvTitle = document.createElement("DIV");dvTitle.id = "ContentTitle";dvTitle.innerHTML = title;dvBody = document.createElement("DIV");dvBody.id = "ContentBody";dvBody.innerHTML = '<div id="WarningMessage"></div>' + body;dvFooter = document.createElement("DIV");dvFooter.id = "ContentFooter";dvFooter.innerHTML = "<input type=\"submit\" id=\"CloseButt\" value=\"Fermer\" onclick=\"javascript:CloseMyAlert(\'" + callBack + "\');return false;\" />";dvMyAlert.appendChild(dvTitle);dvMyAlert.appendChild(dvBody);dvMyAlert.appendChild(dvFooter);dvAlertContainer.appendChild(dvMyAlert);SuroundWithPopup('MyAlertPopup');MyAlertPosition();CurentEnterCallBack = null;$('CloseButt').focus();document.body.appendChild(dvAlertContainer);}function CloseMyConfirm(callBack) {document.body.removeChild($('MyConfirmBlk'));if (callBack != 'null')eval(callBack + '();');}function MyConfirmPosition() {try {var windowSize = getWindowSize();var pageSize = getPageSize();$('MyConfirmBlk').style.top = (getScrollTop() + 100) + 'px';$('MyConfirmBlk').style.left = Math.round((getPageSize().width - 25) / 2 - ($('MyConfirmBlk').style.width.toString().replace('px', '') / 2)) + 'px';setTimeout('MyConfirmPosition()', 10);}catch (e) { }}function MyConfirm(title, body, callBackOk,callBackCancel) {dvConfirmContainer = document.createElement("DIV");document.body.appendChild(dvConfirmContainer);dvConfirmContainer.id = 'MyConfirmBlk';dvConfirmContainer.className = 'MyAlertBlk';dvConfirmContainer.style.width = '320px';dvMyConfirm = document.createElement("DIV");dvMyConfirm.id = 'MyConfirmPopup';dvMyConfirm.className = 'WzPopupV2';dvMyConfirm.style.width = '320px';dvTitle = document.createElement("DIV");dvTitle.id = "ContentTitle";dvTitle.innerHTML = title;dvBody = document.createElement("DIV");dvBody.id = "ContentBody";dvBody.innerHTML = '<div id="WarningMessage"></div>' + body;dvFooter = document.createElement("DIV");dvFooter.id = "ContentFooter";dvFooter.innerHTML = "<input type=\"submit\" id=\"ConfirmButt\" value=\"Confirmer\" onclick=\"javascript:CloseMyConfirm(\'" + callBackOk + "\');return false;\" style='margin-right:105px;' />"+ "<input type=\"submit\" id=\"CancelButt\" value=\"Annuler\" onclick=\"javascript:CloseMyConfirm(\'" + callBackCancel + "\');return false;\" />";dvMyConfirm.appendChild(dvTitle);dvMyConfirm.appendChild(dvBody);dvMyConfirm.appendChild(dvFooter);dvConfirmContainer.appendChild(dvMyConfirm);SuroundWithPopup('MyConfirmPopup');MyConfirmPosition();CurentEnterCallBack = null;$('ConfirmButt').focus();document.body.appendChild(dvConfirmContainer);}function ShowHelpMsg(img) {$('WarningMesgBlk').innerHTML = img.getAttribute('alt');$('WarningMesgBlk').style.display = '';}function HideHelpMsg(img) {$('WarningMesgBlk').style.display = 'none';}function getAnchorPosition(anchorname) {var useWindow = false;var coordinates = new Object();var x = 0, y = 0;var use_gebi = false, use_css = false, use_layers = false;if (document.getElementById) { use_gebi = true; }else if (document.all) { use_css = true; }else if (document.layers) { use_layers = true; }if (use_gebi && document.all) {x = AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y = AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if (use_gebi) {var o = document.getElementById(anchorname);x = AnchorPosition_getPageOffsetLeft(o);y = AnchorPosition_getPageOffsetTop(o);}else if (use_css) {x = AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y = AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if (use_layers) {var found = 0;for (var i = 0; i < document.anchors.length; i++) {if (document.anchors[i].name == anchorname) { found = 1; break; }}if (found == 0) {coordinates.x = 0; coordinates.y = 0; return coordinates;}x = document.anchors[i].x;y = document.anchors[i].y;}else {coordinates.x = 0; coordinates.y = 0; return coordinates;}coordinates.x = x;coordinates.y = y;return coordinates;}var __movingActualPosition = 0;function JumpToAnchorTop(GoToPosition) {var actualPosition = getScrollTop();if (__movingActualPosition == actualPosition) {window.scroll(0, GoToPosition);return;}__movingActualPosition = actualPosition;var step = (actualPosition < GoToPosition) ? GoToPosition - actualPosition : actualPosition - GoToPosition;step = step / 2;actualPosition = (actualPosition < GoToPosition + 1) ? actualPosition - step : actualPosition + step;if (step > 10) {window.scroll(0, actualPosition);setTimeout('JumpToAnchorTop(\'' + GoToPosition + '\')', 66);}else {window.scroll(0, GoToPosition);}}function JumpToAnchorBottom(GoToPosition) {var actualPosition = getScrollTop();actualPosition = actualPosition + ((GoToPosition - actualPosition) / 2) + 1;if (__movingActualPosition == actualPosition) {window.scroll(0, GoToPosition);return;}__movingActualPosition = actualPosition;if (actualPosition < GoToPosition - 1) {window.scroll(0, actualPosition);setTimeout('JumpToAnchorBottom(\'' + GoToPosition + '\')', 66);}else {window.scroll(0, GoToPosition);}}function JumpToAnchor(anchorName) {var ActualPosition = getScrollTop();var GoToPosition = getAnchorPosition(anchorName).y;if (ActualPosition > GoToPosition) {JumpToAnchorTop(GoToPosition);}else if (ActualPosition < GoToPosition) {JumpToAnchorBottom(GoToPosition);}}function getAnchorWindowPosition(anchorname) {var coordinates = getAnchorPosition(anchorname);var x = 0;var y = 0;if (document.getElementById) {if (isNaN(window.screenX)) {x = coordinates.x - document.body.scrollLeft + window.screenLeft;y = coordinates.y - document.body.scrollTop + window.screenTop;}else {x = coordinates.x + window.screenX + (window.outerWidth - window.innerWidth) - window.pageXOffset;y = coordinates.y + window.screenY + (window.outerHeight - 24 - window.innerHeight) - window.pageYOffset;}}else if (document.all) {x = coordinates.x - document.body.scrollLeft + window.screenLeft;y = coordinates.y - document.body.scrollTop + window.screenTop;}else if (document.layers) {x = coordinates.x + window.screenX + (window.outerWidth - window.innerWidth) - window.pageXOffset;y = coordinates.y + window.screenY + (window.outerHeight - 24 - window.innerHeight) - window.pageYOffset;}coordinates.x = x;coordinates.y = y;return coordinates;}function AnchorPosition_getPageOffsetLeft(el) {var ol = el.offsetLeft;while ((el = el.offsetParent) != null) { ol += el.offsetLeft; }return ol;}function AnchorPosition_getWindowOffsetLeft(el) {return AnchorPosition_getPageOffsetLeft(el) - document.body.scrollLeft;}function AnchorPosition_getPageOffsetTop(el) {var ot = el.offsetTop;while ((el = el.offsetParent) != null) { ot += el.offsetTop; }return ot;}function AnchorPosition_getWindowOffsetTop(el) {return AnchorPosition_getPageOffsetTop(el) - document.body.scrollTop;}function fillValidationField(validFieldName, type, text) {if (type == "validImg") {var validImg = document.createElement("IMG");validImg.setAttribute("src", "http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/ValidationIcon.gif");validImg.setAttribute("style", "margin-top:-5px;");$(validFieldName).innerHTML = "";$(validFieldName).appendChild(validImg);} else if (type == "errorImg") {var errorImg1 = document.createElement("IMG");errorImg1.setAttribute("src", "http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/ErrorIcon.gif");errorImg1.setAttribute("style", "margin-top:-5px;");$(validFieldName).innerHTML = "";$(validFieldName).appendChild(errorImg1);} else if (type == "text") {$(validFieldName).innerHTML = text;}}function ValidateField(fieldName, type) {if (type == "simple") {if ($(fieldName).value != "") {fillValidationField(fieldName + 'Valid', "validImg", "");return true;} else {fillValidationField(fieldName + 'Valid', "errorImg", "");return false;}} else if (type == "email") {if (IsAnEmailAddress($(fieldName).value)) {fillValidationField(fieldName + 'Valid', "validImg", "");return true;} else {fillValidationField(fieldName + 'Valid', "errorImg", "");return false;}} else if (type == "select") {if ($(fieldName).selectedIndex != 0) {fillValidationField(fieldName + 'Valid', "validImg", "");return true;} else {fillValidationField(fieldName + 'Valid', "errorImg", "");return false;}} else if (type == "checkboxCGV") {if (!$(fieldName).checked) {fillValidationField(fieldName + 'Valid', "text", "<span style='color:red;'>En cochant cette case, j'accepte les conditions g&eacute;n&eacute;rales de vente* et reconnais &ecirc;tre &acirc;g&eacute;(e) de plus de dix-huit (18) ans.</span>");} else {fillValidationField(fieldName + 'Valid', "text", "<span style='color:black;'>En cochant cette case, j'accepte les conditions g&eacute;n&eacute;rales de vente* et reconnais &ecirc;tre &acirc;g&eacute;(e) de plus de dix-huit (18) ans.</span>");}} else if (type == "checkboxPartner") {if (!$(fieldName).checked) {fillValidationField(fieldName + 'Valid', "text", "<span style='color:red;'>En cochant cette case, je reconnais m’&ecirc;tre inscrit(e) par le biais d’un site web affili&eacute; &agrave; Womzone et accepte que mes donn&eacute;es &agrave; caract&egrave;re personnel soient transmises &agrave; l’&eacute;diteur du site web affili&eacute;. Un message me sera adress&eacute; m’indiquant les modalités d’exercice de mes droits aupr&egrave;s de cet &eacute;diteur. A d&eacute;faut d’acceptation, l’inscription ne peut se poursuivre.</span>");} else {fillValidationField(fieldName + 'Valid', "text", "<span style='color:black;'>En cochant cette case, je reconnais m’&ecirc;tre inscrit(e) par le biais d’un site web affili&eacute; &agrave; Womzone et accepte que mes donn&eacute;es &agrave; caract&egrave;re personnel soient transmises &agrave; l’&eacute;diteur du site web affili&eacute;. Un message me sera adress&eacute; m’indiquant les modalités d’exercice de mes droits aupr&egrave;s de cet &eacute;diteur. A d&eacute;faut d’acceptation, l’inscription ne peut se poursuivre.</span>");}} else if (type == "password") {var fieldName2 = fieldName.substring(0, fieldName.length - 1);if ($(fieldName2 + '1').value != $(fieldName2 + '2').value || $(fieldName2 + '1').value == "") {fillValidationField(fieldName + 'Valid', "errorImg", "");} else if ($(fieldName2 + '1').value.length < 4) {fillValidationField(fieldName + 'Valid', "text", "<span style='color:red;'>Mot de passe trop court! Minimum 4 caractères.</span>");} else {fillValidationField(fieldName + 'Valid', "validImg", "");}}}var __UsingModalPopup = false;function MyModalAlertPosition() {try {$('MyModalPopupBlk').style.top = (getScrollTop()) + 'px';setTimeout('MyModalAlertPosition()', 10);}catch (e) { }}function ModalPopupFadeOut(id, fade) {if (fade >= 0) {ChangeDivOpacity(id, fade);fade -= 40;setTimeout('ModalPopupFadeOut(\'' + id +'\', ' + fade.toString() + ')', 50);}else {document.body.removeChild($(id));}}function ModalPopupFadeIn(id, fade) {if (fade <= 80) {ChangeDivOpacity(id, fade);fade += 40;setTimeout('ModalPopupFadeIn(\'' + id + '\', ' + fade.toString() + ')', 50);}}function CloseModalPopup() {__UsingModalPopup = false;document.body.removeChild($('MyModalPopupBlkContent'));document.body.removeChild($('MyModalPopupBlkLoadingBlk'));ModalPopupFadeOut('MyModalPopupBlkBg', 80);}function MyModalPopupContentPosition() {try {$('MyModalPopupBlkContent').style.top = (getScrollTop() + 50) + 'px';}catch (e) { }}function MyModalPopupGetPostBack(Response, params) {$('MyModalPopupBlkLoadingBlk').style.display = 'none';var dv2 = document.createElement("DIV");dv2.setAttribute('id', 'MyModalPopupBlkContent');if (BrowserDetect.browser + BrowserDetect.version == 'Explorer7')dv2.style.width = getPageSize().width + 'px';if (BrowserDetect.browser + BrowserDetect.version == 'Explorer8')dv2.style.width = getPageSize().width + 'px';dv2.innerHTML = Response;document.body.appendChild(dv2);setTimeout(params[0], 1);MyModalPopupContentPosition();}function ClearModalPopup() {document.body.removeChild($('MyModalPopupBlkContent'));}function MyModalPopup(url, callback) {if (!__UsingModalPopup) {__UsingModalPopup = true;var dv1 = document.createElement("DIV");dv1.setAttribute('id', 'MyModalPopupBlkBg');dv1.style.height = getPageSize().height + 'px';dv1.style.display = 'none';if (BrowserDetect.browser + BrowserDetect.version == 'Explorer7')dv1.style.width = getPageSize().width + 'px';else if (BrowserDetect.browser + BrowserDetect.version == 'Explorer8')dv1.style.width = getPageSize().width + 'px';document.body.appendChild(dv1);ModalPopupFadeIn('MyModalPopupBlkBg', 0);$('MyModalPopupBlkBg').style.display = '';var dv2 = document.createElement("DIV");dv2.setAttribute('id', 'MyModalPopupBlkLoadingBlk');document.body.appendChild(dv2);}var LongUrl = '';if (url.toString().search('^LOCAL') == 0) {LongUrl = __CONT__URL_FRONT + url.toString().replace('LOCAL::', '');}else {LongUrl = __CONT__URL_FRONT + 'AjaxPages/AjaxCMS.aspx?CMS=' + url;}AjaxHttpGet(LongUrl, MyModalPopupGetPostBack, [callback]);}function GetChildNodeHTML(parentID, childID) {for (nodeIdex = 0; nodeIdex < $(parentID).childNodes.length; nodeIdex++) {if ($(parentID).childNodes[nodeIdex].id == childID)return $(parentID).childNodes[nodeIdex].innerHTML;}return '';}function SuroundWithPopup(idPopUp) {var htmlTable = '<table cellpadding="0" cellspacing="0" style="width:100%"><tr><td class="wzCTL wzBg Ste_PopupBorderImages"></td>';htmlTable += '<td class="wzT wzBg Ste_PopupBorderImages"></td><td class="wzCTR wzBg Ste_PopupBorderImages"></td></tr><tr><td class="wzL wzBg Ste_PopupBorderImages"></td><td><div class="wzLding Ste_PopupTrameBodyBorderColor" id="AjaxLoading" style="display:none"></div><div class="wzTtle Ste_PopupTrameBgColor Ste_MainColor">';htmlTable += GetChildNodeHTML(idPopUp, 'ContentTitle');htmlTable += '</div><div class="wzBdy Ste_PopupTrameBodyBorderColor">';htmlTable += GetChildNodeHTML(idPopUp, 'ContentBody');htmlTable += '</div><div class="wzFtr Ste_PopupTrameBgColor Ste_PopupButtonImages">';htmlTable += GetChildNodeHTML(idPopUp, 'ContentFooter');htmlTable += '</div></td><td class="wzR wzBg Ste_PopupBorderImages"></td></tr><tr><td class="wzCBL wzBg Ste_PopupBorderImages"></td><td class="wzB wzBg Ste_PopupBorderImages"></td><td class="wzCBR wzBg Ste_PopupBorderImages"></td></tr></table>';$(idPopUp).innerHTML = htmlTable;var w = $(idPopUp).style.width.toString().replace('px', '');if ($('WarningMessage') != null) {$('WarningMessage').className = 'WarningMessage Ste_PopupWarningMessageBorderColor Ste_PopupWarningMessageFontColor';$('WarningMessage').style.width = w - 124 + 'px';$('WarningMessage').style.display = 'none';}}function FindElemIdMatching(elem, regstr){if (elem.id != null && elem.id.match(regstr) != null) {return elem;}else if (elem.parentNode != null) {return FindElemIdMatching(elem.parentNode, regstr)}return null;}function FormatAnnounceInList(divID) {var announceElem = $(divID);var myTitleElem = GetElementByClassNamePath(announceElem, 'AnnounceHeader::AnnounceTitleLabel');var myLinkElem = GetElementByClassNamePath(announceElem, 'AnnounceAction::MyActionList::ToDetail::MyDetailLink');var NewTitle = document.createElement('SPAN');NewTitle.className = "AnnounceTitleLabel";var NewTitleA = document.createElement('A');NewTitleA.setAttribute('href', myLinkElem.href);NewTitleA.setAttribute('title', myTitleElem.innerHTML);NewTitleA.innerHTML = myTitleElem.innerHTML;NewTitle.appendChild(NewTitleA);GetElementByClassNamePath(announceElem, 'AnnounceHeader').removeChild(myTitleElem);GetElementByClassNamePath(announceElem, 'AnnounceHeader').appendChild(NewTitle);myLinkElem.innerHTML = "Voir le détail de l'annonce";}function AddUserDynamicStatus(UserGuid, ImgId) {var tmpSTR = '<a href="#" name="Ustatus" class="' + UserGuid + '"><img src="http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/TPix.gif" style="border:none" class="imDisconnected" /></a>';$(ImgId).parentNode.innerHTML += tmpSTR;$(ImgId).parentNode.removeChild($(ImgId));}function AddDynamicLink(SpanID, Url, Alt) {var myA = document.createElement('a');myA.href = Url;myA.title = Alt;myA.className = $(SpanID).className;myA.innerHTML = $(SpanID).innerHTML;$(SpanID).innerHTML = '';$(SpanID).appendChild(myA);}function getCookie(c_name) {if (document.cookie.length > 0) {c_start = document.cookie.indexOf(c_name + "=");if (c_start != -1) {c_start = c_start + c_name.length + 1;c_end = document.cookie.indexOf(";", c_start);if (c_end == -1) c_end = document.cookie.length;return unescape(document.cookie.substring(c_start, c_end));}}return "";}function setCookie(c_name, value, expiredays) {var exdate = new Date();exdate.setDate(exdate.getDate() + expiredays);document.cookie = c_name + "=" + escape(value) +((expiredays == null) ? "" : ";expires=" + exdate.toUTCString());}function GetSimpleDomainForIframe(FrontUrl) {var UrlArray = FrontUrl.split('.');return UrlArray[UrlArray.length - 2] + '.' + UrlArray[UrlArray.length - 1].replace('/', '');}__DEBUG = null;function MyTrace(str) {if (__DEBUG != null) {dv = document.createElement("DIV");dv.innerHTML = new Date().getHours() + ":" + new Date().getMinutes() + ":" + new Date().getSeconds() + " - " + str;$('__Console').appendChild(dv);}}function SetDebugMode(st) {if (st == 'On') {__DEBUG = true;c = document.createElement("DIV");c.setAttribute('id', '__Console');c.setAttribute('style', 'width:100%;height:130px;overflow:scroll;border-top:solid 4px #FF0000;background-color:#FFEEEE;margin-top:10px;');document.body.appendChild(c);}else if (st == 'Off' && __DEBUG != null) {__DEBUG = null;document.body.removeChild($('__Console'));}}function CynikRefresh() {AjaxHttpGet(__CONT__URL_FRONT + 'Extra/CleanSettings.aspx?ClearCache=1', function(response, params) {location.reload(true)}, null);}

function GetNbAnnounceInSelection() {return 0;}function UpdateNbAnnounceInSelection(nb) {return true;}function SaveAnnounceInCookie(AnnounceGuid) {return true;}function EraseAnnounceInCookie(AnnounceGuid) {}function IsAnnounceInCookie(AnnounceGuid) {return false;}function RemoveFromCaddyPage(AnnounceGuid) {if (IsAnnounceInCookie(AnnounceGuid)) {EraseAnnounceInCookie(AnnounceGuid);nbBookmarkedAnnounce = GetNbAnnounceInSelection();UpdateNbAnnounceInSelection(--nbBookmarkedAnnounce);$('AnnounceBookmarkBlock').innerHTML = nbBookmarkedAnnounce;}}function UpdateBookmarkBlock() {}function AnnounceSelectionAdd(AnnounceGuid) {var dd = $('AnnounceSelectionTool_' + AnnounceGuid);var nbBookmarkedAnnounce = GetNbAnnounceInSelection();var txtConnection = "Vous ne pouvez pas ajouter cette annonce \340 votre s\351lection en mode d\351connect\351. Inscrivez-vous et/ou connectez-vous avant d'utiliser cette fonctionnalit\351.";var xhr_object = null;if (window.XMLHttpRequest)xhr_object = new XMLHttpRequest();else if (window.ActiveXObject)xhr_object = new ActiveXObject("Microsoft.XMLHTTP");if (dd.className == 'AnnounceBookmarkNotSelected') {xhr_object.open("GET", __CONT__URL_FRONT + 'Pages/Tools/BookmarkAnnounceHandler.aspx?Action=Add&AnnounceGuid=' + AnnounceGuid + '&' + new Date().getTime().toFixed(10).toString(), true);xhr_object.onreadystatechange = function() {if (xhr_object.readyState == 4) {if (xhr_object.responseText == '1') {dd.className = 'AnnounceBookmarkSelected';RefreshUserNbItems();$('LnkAddAnnounceToSelection_' + AnnounceGuid).innerHTML = "Supprimer de ma s&eacute;lection";}else {alert(txtConnection);}}};xhr_object.send(null);}else {xhr_object.open('GET', __CONT__URL_FRONT + 'Pages/Tools/BookmarkAnnounceHandler.aspx?Action=Remove&AnnounceGuid=' + AnnounceGuid + '&' + new Date().getTime().toFixed(10).toString(), true);xhr_object.onreadystatechange = function() {if (xhr_object.readyState == 4) {if (xhr_object.responseText == '1') {dd.className = 'AnnounceBookmarkNotSelected';RefreshUserNbItems();$('LnkAddAnnounceToSelection_' + AnnounceGuid).innerHTML = 'Ajouter &agrave; ma s&eacute;lection';}else {alert(txtConnection);}}};xhr_object.send(null);}AnnounceTrackingAction(AnnounceGuid, 'AnnounceBookmarked');pageTracker._trackPageview("/AjaxFeatures/Announces/AnnounceBookmarked");}function AddAnnounceBookMarkLink(AnnounceGuid) {if (IsAnnounceInCookie(AnnounceGuid)) {dd = '<a onclick=\"javascript:AnnounceSelectionAdd(\'' + AnnounceGuid + '\');return false;\" href=\"#\" id=\"LnkAddAnnounceToSelection_' + AnnounceGuid + '\" >Supprimer de ma s&eacute;lection</a>';}else {dd = '<a onclick=\"javascript:AnnounceSelectionAdd(\'' + AnnounceGuid + '\');return false;\" href=\"#\" id=\"LnkAddAnnounceToSelection_' + AnnounceGuid + '\" >Ajouter &agrave; ma s&eacute;lection</a>';}document.write(dd);}function AddAnnounceToSelectionDiv(AnnounceGuid) {AltTxt = 'Ajouter / Supprimer cette annonce de vos annonces favorites.';if (IsAnnounceInCookie(AnnounceGuid)) {dv = '<div id=\'AnnounceSelectionTool_' + AnnounceGuid + '\' class=\'AnnounceBookmarkSelected\'>';}else {dv = '<div id=\'AnnounceSelectionTool_' + AnnounceGuid + '\' class=\'AnnounceBookmarkNotSelected\'>';}dv += '<a onclick=\"javascript:AnnounceSelectionAdd(\'' + AnnounceGuid + '\');return false;\" title=\'' + AltTxt + '\' href=\"#\"><img src=\'http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/Tpix.gif\' alt=\'' + AltTxt + '\' /></a>';dv += '</div>';document.write(dv);}function AddAnnounceBookMarkLink4Div(AnnounceGuid, divID) {var dd;if (IsAnnounceInCookie(AnnounceGuid)) {dd = '<a onclick=\"javascript:AnnounceSelectionAdd(\'' + AnnounceGuid + '\');return false;\" href=\"#\" id=\"LnkAddAnnounceToSelection_' + AnnounceGuid + '\" >Supprimer de ma s&eacute;lection</a>';}else {dd = '<a onclick=\"javascript:AnnounceSelectionAdd(\'' + AnnounceGuid + '\');return false;\" href=\"#\" id=\"LnkAddAnnounceToSelection_' + AnnounceGuid + '\" >Ajouter &agrave; ma s&eacute;lection</a>';}$(divID).innerHTML = dd;}function AddAnnounceToSelectionDiv4Div(AnnounceGuid, divID) {var dv;AltTxt = 'Ajouter / Supprimer cette annonce de vos annonces favorites.';if (IsAnnounceInCookie(AnnounceGuid)) {dv = '<div id=\'AnnounceSelectionTool_' + AnnounceGuid + '\' class=\'AnnounceBookmarkSelected\'>';}else {dv = '<div id=\'AnnounceSelectionTool_' + AnnounceGuid + '\' class=\'AnnounceBookmarkNotSelected\'>';}dv += '<a onclick=\"javascript:AnnounceSelectionAdd(\'' + AnnounceGuid + '\');return false;\" title=\'' + AltTxt + '\' href=\"#\"><img src=\'' + __CONT__URL_FRONT + 'Pics/Tpix.gif\' alt=\'' + AltTxt + '\' /></a>';dv += '</div>';$(divID).innerHTML = dv;}
function extract_xss_domain(){old_domain = document.domain;domain_pieces = old_domain.split('.');if (domain_pieces.length == 4){var is_ip = true;for (var i = 0; i < 4; ++i){var n = Number(domain_pieces[i]);if (isNaN(n)){is_ip = false;}}if (is_ip){return old_domain;}}return domain_pieces.slice(-2, domain_pieces.length).join(".");}document.domain = extract_xss_domain();
var BrowserDetect = {init: function () {this.browser = this.searchString(this.dataBrowser) || "An unknown browser";this.version = this.searchVersion(navigator.userAgent)|| this.searchVersion(navigator.appVersion)|| "an unknown version";this.OS = this.searchString(this.dataOS) || "an unknown OS";},searchString: function (data) {for (var i=0;i<data.length;i++)	{var dataString = data[i].string;var dataProp = data[i].prop;this.versionSearchString = data[i].versionSearch || data[i].identity;if (dataString) {if (dataString.indexOf(data[i].subString) != -1)return data[i].identity;}else if (dataProp)return data[i].identity;}},searchVersion: function (dataString) {var index = dataString.indexOf(this.versionSearchString);if (index == -1) return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser: [{ 	string: navigator.userAgent,subString: "OmniWeb",versionSearch: "OmniWeb/",identity: "OmniWeb"},{string: navigator.vendor,subString: "Apple",identity: "Safari"},{prop: window.opera,identity: "Opera"},{string: navigator.vendor,subString: "iCab",identity: "iCab"},{string: navigator.vendor,subString: "KDE",identity: "Konqueror"},{string: navigator.userAgent,subString: "Firefox",identity: "Firefox"},{string: navigator.vendor,subString: "Camino",identity: "Camino"},{string: navigator.userAgent,subString: "Netscape",identity: "Netscape"},{string: navigator.userAgent,subString: "MSIE",identity: "Explorer",versionSearch: "MSIE"},{string: navigator.userAgent,subString: "Gecko",identity: "Mozilla",versionSearch: "rv"},{string: navigator.userAgent,subString: "Mozilla",identity: "Netscape",versionSearch: "Mozilla"}],dataOS : [{string: navigator.platform,subString: "Win",identity: "Windows"},{string: navigator.platform,subString: "Mac",identity: "Mac"},{string: navigator.platform,subString: "Linux",identity: "Linux"}]};BrowserDetect.init();
function ShowHideDiv(divID){if (divID != 'null'){if (document.getElementById(divID).style.display == "none")document.getElementById(divID).style.display = "";elsedocument.getElementById(divID).style.display = "none";}}function ExtandCollapseText(shortText, LongText, ShowLnk, HideLnk){if (shortText != 'null')document.getElementById(shortText).style.display="none";if (LongText != 'null')document.getElementById(LongText).style.display="inline";if (ShowLnk != 'null')document.getElementById(ShowLnk).style.display="none";if (HideLnk != 'null')document.getElementById(HideLnk).style.display="inline";}function ScrollTop(){document.getElementById('form1').scrollTop = 0;}function AddRssFeeds(FGuid, FName) {if (BrowserDetect.browser + BrowserDetect.version == "Explorer6")return;no = document.lastChild.firstChild;try{parent.SayYes();no = parent.document.lastChild.firstChild;}catch (ex) {}lnkAll = document.createElement('link');lnkAll.setAttribute('href', __CONT__URL_FRONT + 'Extra/Rss.aspx?FGuid=' + FGuid + '&Filter=All');lnkAll.setAttribute('title', 'Flux RSS de toutes les annonces de la rubrique : ' + FName);lnkAll.setAttribute('type', 'application/rss+xml');lnkAll.setAttribute('rel', 'alternate');no.appendChild(lnkAll);lnkBuy = document.createElement('link');lnkBuy.setAttribute('href', __CONT__URL_FRONT + 'Extra/Rss.aspx?FGuid=' + FGuid + '&Filter=Buy');lnkBuy.setAttribute('title', 'Flux RSS des annonces d\'achat de la rubrique : ' + FName);lnkBuy.setAttribute('type', 'application/rss+xml');lnkBuy.setAttribute('rel', 'alternate');no.appendChild(lnkBuy);lnkSell = document.createElement('link');lnkSell.setAttribute('href', __CONT__URL_FRONT + 'Extra/Rss.aspx?FGuid=' + FGuid + '&Filter=Sell');lnkSell.setAttribute('title', 'Flux RSS des annonces de vente de la rubrique : ' + FName);lnkSell.setAttribute('type', 'application/rss+xml');lnkSell.setAttribute('rel', 'alternate');no.appendChild(lnkSell);}
function AC_AddExtension(src, ext) {if (src.indexOf('?') != -1)return src.replace(/\?/, ext+'?');return src + ext;}function AC_Generateobj(objAttrs, params, embedAttrs){var str = '<object ';for (var i in objAttrs)str += i + '="' + objAttrs[i] + '" ';str += '>';for (var i in params)str += '<param name="' + i + '" value="' + params[i] + '" /> ';str += '<embed ';for (var i in embedAttrs)str += i + '="' + embedAttrs[i] + '" ';str += ' ></embed></object>';document.write(str);}function AC_FL_RunContent(){var ret =AC_GetArgs(  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash");AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);}function AC_SW_RunContent(){var ret =AC_GetArgs(  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000", null);AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);}function AC_GetArgs(args, ext, srcParamName, classid, mimeType){var ret = new Object();ret.embedAttrs = new Object();ret.params = new Object();ret.objAttrs = new Object();for (var i=0; i < args.length; i=i+2){var currArg = args[i].toLowerCase();switch (currArg){case "classid":break;case "pluginspage":ret.embedAttrs[args[i]] = args[i+1];break;case "src": break;case "movie":args[i+1] = AC_AddExtension(args[i+1], ext);ret.embedAttrs["src"] = args[i+1];ret.params[srcParamName] = args[i+1];break;case "codebase":ret.objAttrs[args[i]] = args[i+1];break;case "tabindex":ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];break;default:ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i + 1];break;}}ret.objAttrs["classid"] = classid;if (mimeType) ret.embedAttrs["type"] = mimeType;return ret;}
function DailyMotionVideoWall(){src = "http://www.dailymotion.com/videowall/womup&cols=9&rows=1&brand=right&shadow=0";InsertFLV(src, 783, 100, 'LT');}function WompubGoToAnnounce(anGuid){window.location = __CONT__URL_FRONT + 'Pages/Announce/AnnounceFullDetails.aspx?Guid=' + anGuid + "&NoLanding=Wompub";return true;}function ReloadXML(sendText){window.document.wompubs1.SetVariable("testValue", sendText);}function WompubFLVCompo(){src = __CONF__URL_MEDIA +'Flv/wompubs1?urlxml='+__CONT__URL_FRONT+'Pages/Tools/WomPubXML.aspx';InsertFLV(src, 165, 450, 'LT');}function VideoFlvCompo(){src = __CONF__URL_MEDIA+'Flv/video-womzone2';InsertFLV(src, 210, 174, 't');return;}function WomTestHeader(){src = __CONF__URL_MEDIA+'Flv/womtests-header-2';InsertFLV(src, 496, 174, 't');return;}function ZumeurPlayerComponent(CloudPointGuid){src = 'http://dev.womzone.fr/Medias/Flv/Zumeurs_display?xmlurl=http://dev.womzone.fr/UserCloudPointManager/GetCloudPointXml.aspx?Guid='+CloudPointGuid;InsertFLV(src, 600, 200, '');}function ZumeurEditorComponent(CloudPointGuid){src = 'http://dev.womzone.fr/Medias/Flv/Zumeurs_editor?xmlurl=http://dev.womzone.fr/UserCloudPointManager/GetCloudPointXml.aspx?Guid='+CloudPointGuid;InsertFLV(src, 600, 250, '');}function CloudPointComponent(){src = __CONT__URL_FRONT+'nuage?urlxml='+__CONT__URL_FRONT+'nuage.xml';InsertFLV(src, 496, 228, 't');}function RunFoo() { CloudPointComponent(); }function VerbatimComponent(FamillyGuid){src = __CONT__URL_FRONT + 'verbatim?urlxml=' + __CONT__URL_FRONT + 'Extra/Verbatimes.aspx?FGuid=' + FamillyGuid;InsertFLV(src, 482, 174, 't');}function InsertFLV(src, width, height, align){var _ImInIFrame = 0;try { _ImInIFrame = top.SayYes(); }catch (e) {_ImInIFrame = 0};var wMode = 'window';if (_ImInIFrame == 1)wMode = 'transparent';if (AC_FL_RunContent == 0) {return false;} else {AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width', width,'height', height,'src', src,'quality', 'high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','align', 'middle','play', 'true','loop', 'true','scale', 'showall','wmode', wMode,'devicefont', 'false','id', 'wompubs1','bgcolor', '#FFFFFF','name', 'wompubs1','menu', 'false','allowFullScreen', 'false','allowScriptAccess','sameDomain','swLiveConnect', 'true','movie', src,'salign', align);return true;}}function IncludeHtmlCallBack(Response, Params) {$(Params[0]).innerHTML = Response;var my_scripts = $(Params[0]).getElementsByTagName('script');$(Params[0]).getElementsByTagName('script');for (var ii = 0; ii < my_scripts.length; ii++) {eval(my_scripts[ii].innerHTML);}}function IncludeHTML(HtmlUrl, divName) {AjaxHttpGet(HtmlUrl, IncludeHtmlCallBack, [divName]);return;}
function PageHistory(pagetype, name, src) {this.Name = name;this.UName = unescape(this.Name);this.PageType = pagetype;this.Src = src;this.ShortName = (this.UName.length > 28) ? this.UName.substr(0, 24) + '...' : this.UName;this.GetBlock = function() {li = document.createElement('SPAN');a = document.createElement('A');li.className = "Cs_" + this.PageType;a.setAttribute('href', this.Src);a.setAttribute('title', unescape(this.Name));a.innerHTML = this.ShortName;li.appendChild(a);return li;}}function HistoryManager() {this.HistoryPagesArray = new Array();this.Position = 0;this.limite = 4;this.AddHistoryPage = function(PageType, Name, Url) {if (this.IsRefresh(PageType, escape(Name), Url))return;this.HistoryPagesArray.push(new PageHistory(PageType, escape(Name), Url));var date = new Date();date.setTime(date.getTime() + (1 * 60 * 60 * 1000));var expires = "; expires=" + date.toGMTString();var st = '';for (i = 0; i < this.HistoryPagesArray.length; i++) {st += this.HistoryPagesArray[i].PageType + '$$' + escape(this.HistoryPagesArray[i].Name) + '$$' + escape(this.HistoryPagesArray[i].Src);if (i != this.HistoryPagesArray.length - 1)st += '@@';}document.cookie = 'WomzoneHistory=' + st + expires + "; path=/";};this.RefreshHistoryBlock = function() {var blk = document.getElementById('HistoryBlock');blk.innerHTML = '';var cnt = this.limite + 1;for (var i = 0; i < this.limite; i++) {var id = this.HistoryPagesArray.length - this.Position - this.limite + i;if (id >= 0) {blk.appendChild(this.HistoryPagesArray[id].GetBlock());}}};this.IsRefresh = function(pagetype, name, src) {if (this.HistoryPagesArray == null || this.HistoryPagesArray.length == 0)return false;var hp = this.HistoryPagesArray[this.HistoryPagesArray.length - 1];if (hp.Name == name && hp.PageType == pagetype && hp.Src == src)return true;return false;};var st = '';var h = new Array();var ca = document.cookie.split(';');for (var i = 0; i < ca.length; i++) {var c = ca[i];while (c.charAt(0) == ' ') c = c.substring(1, c.length);if (c.indexOf('WomzoneHistory=') == 0) st = c.substring('WomzoneHistory='.length, c.length);}if (st != '') {hs = st.split('@@');for (i = 0; i < hs.length; i++) {ck = hs[i].split('$$');this.HistoryPagesArray.push(new PageHistory(ck[0], unescape(ck[1]), unescape(ck[2])));}}};var __HistoryManager = new HistoryManager();function AddPageInHistory(PageType, PageName, PageUrl) {__HistoryManager.AddHistoryPage(PageType, PageName, PageUrl);}function GoToPage(url) {try {SayYes();parent.document.location.href = url;}catch (e) {document.location.href = url;}}function ShowHistoryBack() {if (__HistoryManager.HistoryPagesArray.length > __HistoryManager.limite + __HistoryManager.Position) {__HistoryManager.Position++;__HistoryManager.RefreshHistoryBlock();}}function ShowHistoryNext() {if (__HistoryManager.Position > 0) {__HistoryManager.Position--;__HistoryManager.RefreshHistoryBlock();}}
var __WizyBrowserTrusted = new Array();__WizyBrowserTrusted.push('Firefox3');__WizyBrowserTrusted.push('Explorer7');__WizyBrowserTrusted.push('Explorer6');function WZWizyEditor(TextAreaID, EnableMaxLength, MaxLength, EnableWaterMark){this._textAreaID = TextAreaID;this._enableMaxLength = EnableMaxLength;this._maxLength = MaxLength;this._enableWaterMark = EnableWaterMark;this._initTextValue = $(this._textAreaID).value;this.TpixURL = 'http://cms.womzone.com/_global/Css/Pics/Tpix.gif';this.WizyEditor = null;this.GetContentString = function() {var retSTR = '';if ($(this._textAreaID).value.match(/[^\n]*/gi)) {dv = document.createElement('div');dv.innerHTML = $(this._textAreaID).value;retSTR = dv.innerHTML.replace(/\n/gi, '<br/>');}else {retSTR = $(this._textAreaID).value;}return retSTR;};this.Init = function() {if (BrowserDetect.browser == 'Opera') return;dvMainContent = document.createElement('div');dvMainContent.className = 'wysiwygWomzone';dvMainContent.id = this._textAreaID + '_SmartEditorBlk';if ($(this._textAreaID).style.width != '')dvMainContent.style.width = $(this._textAreaID).style.width;dvContent = document.createElement('div');dvContent.className = 'wysiwygWomzoneContainer';dvOptions = document.createElement('div');dvOptions.className = 'FormatOption';dvOptionsUl = document.createElement('ul');dvOptionsLi1 = document.createElement('li');aBold = document.createElement('a');AttachFormatEvent(aBold, 'bold', this._textAreaID + '_WizyEditor');aBold.title = 'Gras';imgBold = document.createElement('img');imgBold.className = 'imgBold';imgBold.src = this.TpixURL;aBold.appendChild(imgBold);dvOptionsLi1.appendChild(aBold);dvOptionsUl.appendChild(dvOptionsLi1);dvOptionsLi1 = document.createElement('li');aBold = document.createElement('a');AttachFormatEvent(aBold, 'italic', this._textAreaID + '_WizyEditor');aBold.title = 'Italic';imgBold = document.createElement('img');imgBold.className = 'imgItalic';imgBold.src = this.TpixURL;aBold.appendChild(imgBold);dvOptionsLi1.appendChild(aBold);dvOptionsUl.appendChild(dvOptionsLi1);dvOptionsLi1 = document.createElement('li');aBold = document.createElement('a');AttachFormatEvent(aBold, 'underline', this._textAreaID + '_WizyEditor');aBold.title = 'Sousligner';imgBold = document.createElement('img');imgBold.className = 'imgUnderline';imgBold.src = this.TpixURL;aBold.appendChild(imgBold);dvOptionsLi1.appendChild(aBold);dvOptionsUl.appendChild(dvOptionsLi1);dvOptionsLi1 = document.createElement('li');aBold = document.createElement('a');AttachFormatEvent(aBold, 'justifyleft', this._textAreaID + '_WizyEditor');aBold.title = 'Alignement à gauche';imgBold = document.createElement('img');imgBold.className = 'imgLeft';imgBold.src = this.TpixURL;aBold.appendChild(imgBold);dvOptionsLi1.appendChild(aBold);dvOptionsUl.appendChild(dvOptionsLi1);dvOptionsLi1 = document.createElement('li');aBold = document.createElement('a');aBold.href = '#';AttachFormatEvent(aBold, 'justifycenter', this._textAreaID + '_WizyEditor');aBold.title = 'Centrer';imgBold = document.createElement('img');imgBold.className = 'imgCenter';imgBold.src = this.TpixURL;aBold.appendChild(imgBold);dvOptionsLi1.appendChild(aBold);dvOptionsUl.appendChild(dvOptionsLi1);dvOptionsLi1 = document.createElement('li');aBold = document.createElement('a');aBold.href = '#';AttachFormatEvent(aBold, 'justifyright', this._textAreaID + '_WizyEditor');aBold.title = 'Alignement à droite';imgBold = document.createElement('img');imgBold.className = 'imgRight';imgBold.src = this.TpixURL;aBold.appendChild(imgBold);dvOptionsLi1.appendChild(aBold);dvOptionsUl.appendChild(dvOptionsLi1);dvOptions.appendChild(dvOptionsUl);dvContent.appendChild(dvOptions);dvIframe = document.createElement('div');dvIframe.className = 'WizIframe';name = this._textAreaID + "_WizyEditor$" + this._textAreaID + "$" + this._enableWaterMark + "$" + escape(this._initTextValue) + "$" + this._enableMaxLength + "$" + this._maxLength;Iframe = document.createElement("iframe");Iframe.id = this._textAreaID + '_WizyEditor';Iframe.name = name;Iframe.src = __CONT__URL_FRONT + 'Medias/JScripts/Misc/WiziEditorInit.htm#' + name;Iframe.setAttribute('scrolling', 'auto');Iframe.frameborder = '0';$AttachEvent(Iframe, 'onload', function(event) {var event = event || window.event;var target = event.target || event.srcElement;IframeDoc = $(target.id).contentWindow.document || $(target.id).contentDocument;params = target.name.split('$');IframeId = params[0];TextBoxId = params[1];EnableWaterMark = params[2];WaterMark = unescape(params[3]);EnableMaxLength = params[4];MaxLength = params[5];WizigBody = IframeDoc.body.innerHTML;if (EnableWaterMark == 'true')IframeDoc.body.innerHTML = '<span class="WaterMark">' + WaterMark + '</span>';$AttachEvent(IframeDoc, 'onclick', function(event) {if (EnableWaterMark == 'true' && (IframeDoc.body.innerHTML == '<span class="WaterMark">' + WaterMark + '</span>' ||IframeDoc.body.innerHTML == '<SPAN class=WaterMark>' + WaterMark + '</SPAN>'))IframeDoc.body.innerHTML = '';});$AttachEvent(IframeDoc, 'onkeyup', function(event) {$(TextBoxId).value = IframeDoc.body.innerHTML;WZWiziFunctionCountEditorChar(IframeId, TextBoxId, EnableMaxLength, MaxLength);if (EnableMaxLength == 'true' && WZWiziFunctionClearHtml(IframeDoc.body.innerHTML).length > MaxLength) {IframeDoc.body.className = 'RaiseLimit';}else {IframeDoc.body.className = '';}});});dvIframe.appendChild(Iframe);dvContent.appendChild(dvIframe);if (this._enableMaxLength) {divCounter = document.createElement('div');divCounter.className = "TxtCounter";spanNbChar = document.createElement('span');spanNbChar.id = this._textAreaID + '_spnChar';spanNbChar.innerHTML = this._maxLength;divCounter.appendChild(spanNbChar);spanNbChar = document.createElement('span');spanNbChar.innerHTML = '&nbsp;caractères disponibles';divCounter.appendChild(spanNbChar);dvContent.appendChild(divCounter);}divSwitch = document.createElement('div');divSwitch.className = "SwitchToTextarea";a = document.createElement('a');a.id = this._textAreaID + '_switcher';a.name = this._textAreaID + '_switcher';a.style.cursor = 'pointer';$AttachEvent(a, 'onclick', function(event) {var event = event || window.event;var target = event.target || event.srcElement;TextAreaID = target.id.replace('_switcher', '');$(TextAreaID).style.display = '';$(TextAreaID).value = $(TextAreaID).value.replace(/<br>/gi, ' ');$(TextAreaID).value = $(TextAreaID).value.replace(/<br\/>/gi, ' ');$(TextAreaID).value = $(TextAreaID).value.replace(/<[^>]*>/gi, ' ');$(TextAreaID + '_SmartEditorBlk').style.display = 'none';$(TextAreaID).focus();if ($(TextAreaID + '_switcher2') == null) {dv87 = document.createAttribute('div');a = document.createElement('a');a.id = TextAreaID + '_switcher2';a.innerHTML = "Utiliser l'éditeur avec mise en forme";a.style.cursor = 'pointer';$AttachEvent(a, 'onclick', function(event) {var event = event || window.event;var target = event.target || event.srcElement;$(target.id.replace('_switcher2', '_SmartEditorBlk')).style.display = '';$(target.id.replace('_switcher2', '')).style.display = 'none';$(target.id).style.display = 'none';});$(TextAreaID).parentNode.insertBefore(a, $(TextAreaID));$(TextAreaID).parentNode.insertBefore(document.createElement('div'), $(TextAreaID));}else {$(TextAreaID + '_switcher2').style.display = '';}});a.innerHTML = "Utiliser l'éditeur standard";trust = true;for (i = 0; i < __WizyBrowserTrusted.length; i++) {if (__WizyBrowserTrusted[i] == BrowserDetect.browser + BrowserDetect.version)trust = false;}if (trust) divSwitch.appendChild(a);else divSwitch.innerHTML = '&nbsp;';dvContent.appendChild(divSwitch);dvMainContent.appendChild(dvContent);$(this._textAreaID).parentNode.insertBefore(dvMainContent, $(this._textAreaID));$(this._textAreaID).style.display = 'none';};function AttachFormatEvent(Elem, action, iframeID) {$AttachEvent(Elem, 'onclick', function() {IframeDoc = $(iframeID).contentWindow.document || $(iframeID).contentDocument;IframeDoc.execCommand(action, false, null);$(iframeID.replace('_WizyEditor', '')).value = IframeDoc.body.innerHTML;return false;});}}function WZWiziFunctionClearHtml(strHtml) {ret = strHtml.replace(/<[^>]*>/gi, '');ret = ret.replace(/\&nbsp;/gi, ' ');return ret;}function WZWiziFunctionCountEditorChar(IframeID, originalTextareaID, useLimit, Limit) {IframeDoc = $(IframeID).contentWindow.document || $(IframeID).contentDocument;$(originalTextareaID).value = IframeDoc.body.innerHTML;sp = $(originalTextareaID + '_spnChar');if (sp == null) return;if (useLimit == 'true') {nb = Limit - WZWiziFunctionClearHtml(IframeDoc.body.innerHTML).length;sp.innerHTML = nb;}}
var __URL_POST_RecoverConnectionInfo = __CONT__URL_FRONT + 'AjaxPages/Gadget/Register/RecoverConectionInfos.aspx';var __URL_POST_Logon = __CONT__URL_FRONT + 'AjaxPages/Gadget/Register/Logon.aspx';var __URL_POST_Register = __CONT__URL_FRONT + 'AjaxPages/Gadget/Register/Register.aspx';var __URL_POST_CheckLogin = __CONT__URL_FRONT + 'AjaxPages/Gadget/Register/CheckLogin.aspx';var __URL_POST_CheckPromoPartner = __CONT__URL_FRONT + 'AjaxPages/Gadget/Register/CheckPromo.aspx?Chk=Partner';var __URL_POST_CheckPromoWomzone = __CONT__URL_FRONT + 'AjaxPages/Gadget/Register/CheckPromo.aspx?Chk=Womzone';var KnownEmailDomains = ['aol.com', 'aliceadsl.fr', 'free.fr', 'neuf.fr', 'live.fr', 'hotmail.fr', 'hotmail.com', 'orange.fr', 'wanadoo.fr', 'laposte.net', 'yahoo.fr', 'yahoo.com', 'gmail.com'];var GadgetRegisterAndLogonOpenType = 'logon';var IsEmailDomainKnown = function(domain) {for (var i = 0; i < KnownEmailDomains.length; i++) {if (KnownEmailDomains[i].toString().toLowerCase() == domain.toLowerCase()) { return true; }}return false;};function GoForgot() {AnnimScrollBlockLeft(0, 'RegisterBlk', 14, 100, true);CurentEnterCallBack = SendConnectionInfoByMail;setTimeout("$('inputForgot').focus()", 340);}function GoLogonLeft() {AnnimScrollBlockLeft(420, 'RegisterBlk', 14, 100, true);CurentEnterCallBack = Logon;setTimeout("$('inputLogonLogin').focus()", 340);}function GoLogonRight() {CurentEnterCallBack = Logon;setTimeout("$('inputLogonLogin').focus()", 340);AnnimScrollBlockRight(420, 'RegisterBlk', 14, 100, true);}function GoStep2() {if (IsRegisterStep1Valid()) {setTimeout("$('inputRegisterLastName').focus()", 340);AnnimScrollBlockRight(1260, 'RegisterBlk', 14, 100, true);CurentEnterCallBack = GoStep4;}}function RegisterAnnouncePublicationSell() {if (IsAnEmailAddress($('inputRegisterEmail').value)) {$('inputRegisterEmail').className = '';$('blkErrorSubscriptionMail').innerHTML = '&nbsp;';AjaxHttpPost(__URL_POST_Register + "?Type=AnnouncePublicationSell", 'Email=' + $('inputRegisterEmail').value, RegisterAnnouncePublicationSellCallBack, [$('inputRegisterEmail').value]);}else {$('inputRegisterEmail').className = 'Error';$('blkErrorSubscriptionMail').innerHTML = 'Votre adresse email ne semble pas valide';}return false;}function RegisterAnnouncePublicationSellCallBack(response, params) {if (response.toString() == "Success") {__AnnouncePublicationWizard.UserEmail = params[0];__AnnouncePublicationWizard.GoStep("Authentification","FillAnnounce",false,false);} else {$('inputRegisterEmail').className = 'Error';$('blkErrorSubscriptionMail').innerHTML = 'Votre adresse email ne semble pas valide';}}function GoStepCheckMailBox() {ShowAjaxLoading();if (GadgetRegisterAndLogonOpenType == 'CheckOut') {AjaxHttpPost(__URL_POST_Register + "?Type=CheckOut", 'Email=' + $('inputRegisterEmail').value + '\nCurentPageUrl=' + encodeURIComponent(window.location.href), GoStep5CallBack, null);} else if (GadgetRegisterAndLogonOpenType == 'AnnouncePublicationBuy') {AjaxHttpPost(__URL_POST_Register + "?Type=AnnouncePublicationBuy", 'Email=' + $('inputRegisterEmail').value + '\nCurentPageUrl=' + encodeURIComponent(window.location.href), GoStep5CallBack, null);} else {AjaxHttpPost(__URL_POST_Register, 'Email=' + $('inputRegisterEmail').value + '\nCurentPageUrl=' + encodeURIComponent(window.location.href), GoStep5CallBack, null);}}function GoStep3Right() {if (IsRegisterStep2Valid()) {setTimeout("$('inputRegisterDiscountCode').focus()", 340);if ($('RegisterBlk3').style.display == "none") {$('RegisterBlk3').style.display = '';$("RegisterBlk").scrollLeft = 2100;AnnimScrollBlockLeft(1680, 'RegisterBlk', 14, 100, true);}else {AnnimScrollBlockLeft(1680, 'RegisterBlk', 14, 100, true);}CurentEnterCallBack = GoStep4;}}function GoStep4() {if (IsRegisterStep2Valid()) {setTimeout("$('cbSubmitCGV').focus()", 340);if ($('RegisterBlk3').style.display != "none") {AnnimScrollBlockRight(2100, 'RegisterBlk', 14, 100, true);}else {AnnimScrollBlockRight(1680, 'RegisterBlk', 14, 100, true);}CurentEnterCallBack = GoStep5;}}function CloseMyAlertErrorRegistring() {HideAjaxLoading();$('RegisterBlk3').style.display = 'none';$('inputRegisterEmail').value = '';$('inputRegisterLogin').value = '';$('inputRegisterPasswd1').value = '';$('inputRegisterPasswd2').value = '';$('rbMr').checked = true;$('rbMme').checked = false;$('rbMelle').checked = false;$('inputRegisterLastName').value = '';$('inputRegisterFirstName').value = '';$('inputRegisterDiscountCode').value = '';$('inputRegisterFatherMail').value = '';$('cbSubmitCGV').checked = false;AnnimScrollBlockRight(840, 'RegisterBlk', 14, 100, true);}function GoStep5CallBack(Response, params) {if (Response != 'Success') {HideAjaxLoading();if (Response = 'AlreadyRegisteredEmail') {$('blkErrorSubscriptionMail').innerHTML = "Cet email est déjà utilisé. "+ "<a href='#' onclick='javascript:GoForgot();return false;' >Mot de passe ou pseudo oublié?</a>";} else {$('blkErrorSubscriptionMail').innerHTML = Response;}}else {HideAjaxLoading();if (GadgetRegisterAndLogonOpenType == 'CheckOut') {GoPaypal();return;}SetEmailLinks($('inputRegisterEmail').value);AnnimScrollBlockRight(1260, 'RegisterBlk', 14, 100, true);}}function SetEmailLinks(email) {var d = email.split('@');if (d.length == 2) {$('myWebmailBlk').innerHTML = '';var __className = d[1].replace('.', '-').toLowerCase();$('myWebmailBlk').className = 'webmailGbTile ' + __className;var myLnk = document.createElement('a');myLnk.href = "http://www." + d[1].toLowerCase();myLnk.innerHTML = 'Consultez votre messagerie <u>' + d[1].toLowerCase() + '</u>';$('myWebmailBlk').appendChild(myLnk);}$('myWebmailBlkDefault').style.display = IsEmailDomainKnown(d[1].toLowerCase()) ? 'none' : 'block';}function GoStep5() {if (CheckCGV()) {ShowAjaxLoading();AjaxHttpPost(__URL_POST_Register, CreateRegistringPostData(), GoStep5CallBack, null);}}function GoStep1Left() {setTimeout("$('inputRegisterEmail').focus()", 340);CurentEnterCallBack = GoStep2;AnnimScrollBlockLeft(840, 'RegisterBlk', 14, 100, true);}function GoStep1Right() {CurentEnterCallBack = GoStep2;AnnimScrollBlockRight(840, 'RegisterBlk', 14, 100, true);}function IsEmailValid() {var email = $('inputRegisterEmail').value;if (IsAnEmailAddress(email))return true;$('btValidateStep1').setAttribute('disabled', 'disabled');return false;}function LoginNotValidClauseMyAlertCallBack() {$('inputRegisterLogin').value = '';$('inputRegisterLogin').focus();$('vRLok').style.display = 'none';$('vRLko').style.display = '';}function IsLoginValidCallBack(Response, params) {HideAjaxLoading();if (Response != 'True')MyAlert('Pseudo déja utilisé', 'Le pseudo : "' + $('inputRegisterLogin').value + '" est déja pris. Choisissez en un autre (Exemple : ' + $('inputRegisterLogin').value + '80)', 'LoginNotValidClauseMyAlertCallBack');}var __tmpLogin = null;var __tmpEmail = null;function IsLoginValid() {if ($('inputRegisterLogin').value.length >= 3) {ShowAjaxLoading();AjaxHttpGet(__URL_POST_CheckLogin + '?Login=' + $('inputRegisterLogin').value, IsLoginValidCallBack, null);return true;}$('btValidateStep1').setAttribute('disabled', 'disabled');return false;}function IsPasswd1Valid() {len = $('inputRegisterPasswd1').value.length;if (len >= 4 && len <= 16) {return true;}$('btValidateStep1').setAttribute('disabled', 'disabled');return false;}function IsPasswd2Valid() {if (!IsPasswd1Valid()) return false;if ($('inputRegisterPasswd1').value == $('inputRegisterPasswd2').value) {return true;}$('btValidateStep1').setAttribute('disabled', 'disabled');return false;}function IsRegisterStep1Valid() {if (IsAnEmailAddress($('inputRegisterEmail').value)) {$('inputRegisterEmail').className = '';$('blkErrorSubscriptionMail').innerHTML = '&nbsp;';if (GadgetRegisterAndLogonOpenType == "AnnouncePublicationBuy")__AnnouncePublicationWizard.ChangeCancelButtonValue('Fermer');GoStepCheckMailBox();}else {$('inputRegisterEmail').className = 'Error';$('blkErrorSubscriptionMail').innerHTML = 'Votre adresse email ne semble pas valide';}return false;}function IsRegisterStep2Valid() {if ($('inputRegisterLastName').value.length == 0)return false;if ($('inputRegisterFirstName').value.length == 0)return false;$('btValidateStep2').removeAttribute('disabled');$('btToStep3').removeAttribute('disabled');return true;}function CheckEmailAddresse() {if (__tmpEmail == $('inputRegisterEmail').value)return;__tmpEmail = $('inputRegisterEmail').value;if (IsEmailValid()) {$('vREok').style.display = '';$('vREko').style.display = 'none';}else {$('vREok').style.display = 'none';$('vREko').style.display = '';}IsRegisterStep1Valid();}function CheckLogin() {if (__tmpLogin == $('inputRegisterLogin').value)return $('vRLok').style.display == 'none' ? false : true;__tmpLogin = $('inputRegisterLogin').value;if (IsLoginValid()) {$('vRLok').style.display = '';$('vRLko').style.display = 'none';return IsRegisterStep1Valid();}else {$('vRLok').style.display = 'none';$('vRLko').style.display = '';return false;}return IsRegisterStep1Valid();}function CheckPasswd1() {if (IsPasswd1Valid()) {$('vRP1ok').style.display = '';$('vRP1ko').style.display = 'none';}else {$('vRP1ok').style.display = 'none';$('vRP1ko').style.display = '';}IsRegisterStep1Valid();}function CheckPasswd2() {if (IsPasswd2Valid()) {$('vRP2ok').style.display = '';$('vRP2ko').style.display = 'none';}else {$('vRP2ok').style.display = 'none';$('vRP2ko').style.display = '';}IsRegisterStep1Valid();}function CheckFirstName() {if ($('inputRegisterFirstName').value.length > 0) {$('vRFNok').style.display = '';$('vRFNko').style.display = 'none';}else {$('btValidateStep2').setAttribute('disabled', 'disabled');$('btToStep3').setAttribute('disabled', 'disabled');$('vRFNok').style.display = 'none';$('vRFNko').style.display = '';}IsRegisterStep2Valid();}function CheckLastName() {if ($('inputRegisterLastName').value.length > 0) {$('vRLNok').style.display = '';$('vRLNko').style.display = 'none';}else {$('btValidateStep2').setAttribute('disabled', 'disabled');$('btToStep3').setAttribute('disabled', 'disabled');$('vRLNok').style.display = 'none';$('vRLNko').style.display = '';}IsRegisterStep2Valid();}function CheckCGV() {if ($('cbSubmitCGV').checked) {$('btToStep5').removeAttribute('disabled');return true;}else {$('btToStep5').setAttribute('disabled', 'disabled');}return false;}function AjaxHideAjaxCallBack(response, params) {HideAjaxLoading();}function IsForgotenEmailValid() {var email = $('inputForgotEmail').value;var verif = /^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i;if (verif.exec(email) != null) {return true;}return false;}function CheckForgotStep() {if ($('inputForgot').value.length > 3) {$('btForgot').removeAttribute('disabled');return true;}else {$('btForgot').setAttribute('disabled', 'disabled');}return false;}function SendConnectionInfoByMailCallBackOK() {AnnimScrollBlockRight(420, 'RegisterBlk', 14, 100, true);}function SendConnectionInfoByMailCallBack(retStr, params) {if (retStr == 'Success') {MyAlert("Informations de connexion", "Vos informations de connexion vous ont été envoyées par email. Vérifiez votre boite de réception, et votre boite de 'SPAM' (courrier indésirable).", 'SendConnectionInfoByMailCallBackOK');}else {MyAlert("Informations de connexion", retStr, null);}HideAjaxLoading();}function SendConnectionInfoByMail() {if (CheckForgotStep()) {if ($('inputForgot').value.length != 0) {ShowAjaxLoading();AjaxHttpGet(__URL_POST_RecoverConnectionInfo + '?Email=' + $('inputForgot').value + '&Login=' + $('inputForgot').value, SendConnectionInfoByMailCallBack, null);}}}function CheckLogon() {if ($('inputLogonLogin').value.length > 2 && $('inputLogonPasswd').value.length > 2) {$('btLogon').removeAttribute('disabled');return true;}else {$('btLogon').setAttribute('disabled', 'disabled');}return false;}function CloseMyAlertLogon() {$('inputLogonLogin').value = '';$('inputLogonPasswd').value = '';CheckLogon();CurentEnterCallBack = Logon;}function LogonAjaxCallBack(Response, params) {if (Response.toString().substr(0, 7) == 'Success') {if (params[0] == true) {expires = new Date;expires.setMonth(expires.getMonth() + 1);document.cookie = "AuthCk=Login=" + $('inputLogonLogin').value + "&Passwd=" + $('inputLogonPasswd').value + "&AutoLog=True;expires=" + expires.toGMTString();}if (GadgetRegisterAndLogonOpenType == 'CheckOut') {HideAjaxLoading();GoPaypal();return;}else if (GadgetRegisterAndLogonOpenType == 'AnnouncePublicationBuy') {location = Response.replace('Success$$', '');}else if (GadgetRegisterAndLogonOpenType == 'AnnouncePublicationSell') {__AnnouncePublicationWizard.NewConnexion = true;__AnnouncePublicationWizard.GoStep("Authentification", "FillAnnounce", false, false);}_DestinationPage4Logon = _DestinationPage4Logon.replace('\?Logout=True', '');if (_DestinationPage4Logon == __CONT__URL_FRONT) {location = __CONT__URL_FRONT + 'Connected';} else {location = location.toString();}}else {HideAjaxLoading();CurentEnterCallBack = Logon;MyAlert('Erreur de connexion', Response, 'CloseMyAlertLogon');}}function Logon() {if (CheckLogon()) {ShowAjaxLoading();postData = "Login=" + $('inputLogonLogin').value + "\nPasswd=" + $('inputLogonPasswd').value + "\nAutoConnect=" + $('cbLogonReminder').checked.toString();AjaxHttpPost(__URL_POST_Logon, postData, LogonAjaxCallBack, [$('cbLogonReminder').checked, $('inputLogonLogin').value, $('inputLogonPasswd').value]);}}var IframeFB = null;function FBAccountConnectCallBack(type) {switch (type) {case "MailPerms":MyAlert('Connexion Facebook', "Vous devez donner accés à votre email d'inscription Facebook pour continuer.", null);break;case "NoConnection":MyAlert('Connexion Facebook', "Vous devez vous connecter à Facebook pour continuer.", null);break;case "EmailKnown":MyAlert('Connexion Facebook', "Un compte existe déjà avec votre email Facebook. Vous pouvez vous connecter normalement puis associer vos comptes dans \"Mon Compte > Mon Profil\".", null);$('RegisterBlk').scrollLeft = 1 * 420;break;default:break;}HideAjaxLoading();}function GoFBRegisterOrLogon() {ShowAjaxLoading();var FBFrame = window.frames['FBRegisterOrLogonIframe'];if (FBFrame.GoLogin == null || typeof (FBFrame.GoLogin) == "undefined") {var tempFB = (FBFrame.FB == null || typeof (FBFrame.FB) == "undefined") ? IframeFB : FBFrame.FB;FBFrame.GoLogin = function(callback) { tempFB.login(callback, { perms: "email" }); };}var FBFrameById = $('FBRegisterOrLogonIframe');FBFrame.GoLogin(function(response) {if (response.session) {FBIframeUnloaded();with (FBFrame) {FBFrameById.src = __CONT__URL_FRONT + "Facebook/registerOrLogonGate.php";}} else {HideAjaxLoading();}}, { perms: 'email' });}function goFBRegisterStep(u, avatarUrl) {if (u["gender"] != "homme") {$('InfoGender').value = 2;}$('InfoLastName').value = u["last_name"];$('InfoFirstName').value = u["first_name"];$('RegisterBlk').scrollLeft = 4 * 420;$('FBRegisterAvatar').src = u["avatar_url"];HideAjaxLoading();}function FBIframeLoaded(value) {if (value != null) {IframeFB = value;}if ($('FBConnectButton1') != null && typeof ($('FBConnectButton1')) != "undefined") {$('FBConnectButton1').disabled = false;$('FBConnectButton2').disabled = false;}}function FBIframeUnloaded() {IframeFB = null;}function FBRegisterValidation() {var valid = FBValidateLoginChoice();if (!$('FBRegisterCheckCGV').checked) {valid = false;$('FBRegisterCheckCGVLabel').style.color = "#FF0000";} else {$('FBRegisterCheckCGVLabel').style.color = "";}if (typeof ($('FBRegisterCheckPartnership')) != "undefined" && $('FBRegisterCheckPartnership') != null) {if (!$('FBRegisterCheckPartnership').checked) {valid = false;$('FBRegisterCheckPartnershipLabel').style.color = "#FF0000";} else {$('FBRegisterCheckPartnershipLabel').style.color = "";}}return valid;}var FBloginValidated = false;var FBloginInValidation = false;function FBValidateLoginChoice() {$('PseudoReserved').style.display = 'none';$('PseudoLength').style.display = 'none';$('FBLoginError').style.display = 'none';$('FBLoginOk').style.display = 'none';if ($('FBRegisterPseudo').value.length < 3) {$('FBLoginError').style.display = '';$('PseudoLength').style.display = '';return false;}FBloginValidated = false;FBloginInValidation = true;AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/CheckLogin.aspx?login=' + encodeURIComponent($('FBRegisterPseudo').value), FBValidateLoginChoiceCB, []);return true;}function FBValidateLoginChoiceCB(response) {FBloginInValidation = false;$('PseudoReserved').style.display = 'none';if (response == "Ok") {$('FBLoginOk').style.display = '';$('FBLoginError').style.display = 'none';FBloginValidated = true;} else if (response == "Exists") {$('FBLoginOk').style.display = 'none';$('FBLoginError').style.display = '';$('PseudoReserved').style.display = '';} else {$('FBLoginOk').style.display = 'none';$('FBLoginError').style.display = '';}}function FBFinishRegisterValidation() {if (FBloginInValidation) {window.setTimeout("FBFinishRegisterValidation();", 300);return;} else {if (FBloginValidated) {ShowAjaxLoading();$('FBRegisterOrLogonIframe').src =__CONT__URL_FRONT + "Facebook/subscription.php?login="+ encodeURIComponent($('FBRegisterPseudo').value) + "&promo=" + (($('FBRegisterPromos').checked) ? "1" : "0");}}}document.onkeyup = KeyCheck;CurentEnterCallBack = null;function KeyCheck(e) {var KeyID = (window.event) ? event.keyCode : e.keyCode;if (KeyID == 13 && CurentEnterCallBack != null) {CurentEnterCallBack();}}function InitRegisterGadget(type) {InitWaterMark('inputRegisterEmail');if (document.cookie.indexOf('WzFatherLink=') >= 0) {ck = document.cookie.indexOf('WzFatherLink=') + 'WzFatherLink='.length;fn = document.cookie.indexOf(";", ck);if (fn < 0) { fn = document.cookie.length }}$('FBRegisterOrLogonIframe').src = __CONT__URL_FRONT + "FB/initFrame.aspx";GadgetRegisterAndLogonOpenType = type;switch (type) {case 'logon':$('RegisterBlk').scrollLeft = 420;CurentEnterCallBack = Logon;$('inputLogonLogin').focus();MyModalPopupContentPosition();break;case 'CheckOut':_DestinationPage4Logon = location.toString();$('RegisterBlk').scrollLeft = 2 * 420;CurentEnterCallBack = GoStep2;break;case 'AnnouncePublicationBuy':$('RegisterBlk').scrollLeft = 2*420;CurentEnterCallBack = GoStep2;MyModalPopupContentPosition();break;case 'AnnouncePublicationSell':$('RegisterBlk').scrollLeft = 2 * 420;CurentEnterCallBack = RegisterAnnouncePublicationSell;MyModalPopupContentPosition();break;case 'EndDisconnectedProposition':$('RegisterBlk').scrollLeft = 3 * 420;SetEmailLinks(__AnnouncePublicationWizard.UserEmail);break;case 'ForgotPassword':GoForgot();break;default:$('RegisterBlk').scrollLeft = 2 * 420;CurentEnterCallBack = GoStep2;MyModalPopupContentPosition();break;}}function LoadLogonRealGadget(CmsPage, type) {SuroundWithPopup('ThisPopup');$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/AjaxCMS.aspx?CMS=' + CmsPage, LoadLogonRealGadgetCallBack, [type]);}function LoadLogonRealGadgetCallBack(response, params) {$('ThisPopup').innerHTML = response;InitRegisterGadget(params[0]);}function GoLogon(CmsPage, Url) {var indexOfSharp = document.location.toString().indexOf('#', 0);if (indexOfSharp > 0) {Url += document.location.toString().substr(indexOfSharp, document.location.toString().length - indexOfSharp);}if (__IM_Connected == 'False') {_DestinationPage4Logon = (Url != null) ? Url : location.toString();MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/CheckOutFrame.htm', 'LoadLogonRealGadget(\'' + CmsPage + '\', \'logon\')');}else {location = (Url != null) ? Url : location.toString();}return false;}function GoRegister(CmsPage) {_DestinationPage4Logon = location.toString();MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/CheckOutFrame.htm', 'LoadLogonRealGadget(\'' + CmsPage + '\', \'register\')');return false;}function GoForgotPassword(RedirectPage) {_DestinationPage4Logon = (!RedirectPage) ? location.toString() : __CONT__URL_FRONT;MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/CheckOutFrame.htm', 'LoadLogonRealGadget(\'logon.htm\', \'ForgotPassword\')');return false;}function LogonPostAction(Action) {ClearModalPopup();GoLogon('Logon.htm', null);}
var __URL_POST_RegisterNewsLetter = __CONT__URL_FRONT + 'AjaxPages/Gadget/Register/SignInNewsLetter.aspx';function InitNewsLetterGadget() {if (__USERINFOS_UserGuid != "" && __USERINFOS_Promo == 1)HideNewsletterGadget();else if (__USERINFOS_UserGuid != "") {$('inputNewsletterTxt').value = __USERINFOS_Email;} else {InitWaterMark('inputNewsletterTxt');}}function GoNewsletterSignIn(Email) {AjaxHttpPost(__URL_POST_RegisterNewsLetter, "Email=" + Email, GoNewsletterSignInCallBack, null);}function GoNewsletterSignInCallBack(text, params) {if (text == "Invalid") {$("callBackMessage").innerHTML = "Email invalide.";}else{$("SignInNewsletterDiv").innerHTML = "Inscription réussie.";}}function ShowNewsletterGadget() {$("SignInNewsletterDiv").setAttribute("style", "display:block;");if (document.all) {$("SignInNewsletterDiv").style.setAttribute("cssText", "display:block;");}}function HideNewsletterGadget() {$("HomeNewsletterBlock").setAttribute("style", "display:none;");if (document.all) {$("HomeNewsletterBlock").style.setAttribute("cssText", "display:none;");}}
function InitDynaHelp(LinkLabel, HelpUrl) {lnk = '<div><a href="#" onclick="javascript:ShowDynaHelp(\'' + HelpUrl + '\' );return false">' + LinkLabel + '</a></div>';document.write(lnk);}function ShowDynaHelp(helpUrl) {var __src = helpUrl.replace('http://cms.womzone.com/', __CONT__URL_FRONT);MyModalPopup(__src, 'ShowDynaHelpDoneLoading()');pageTracker._trackPageview("/AjaxFeatures/Help/" + escape(__src));}function ShowDynaHelpDoneLoading(help) {}function ExternalHelpPopup(url) {window.open(url, 'Aide', 'width=430, height=430');}
function AnnounceTracking(AnnounceGuid, Source) {img = document.createElement('img');img.src = 'http://tracking.tools.womzone.com/AnnounceHit.aspx?A=' + AnnounceGuid + '&S=' + Source + (__IM_Connected == 'True' ? '&U=' + __USERINFOS_UserGuid : '');img.id = 'AnnounceHit_' + AnnounceGuid;$('AnnounceTrackerBlk').appendChild(img);}function AnnounceTrackingAction(AnnounceGuid, Action) {var trackingImg = document.createElement('img');var imgSrc = 'http://tracking.tools.womzone.com/Announce.aspx?A=' + AnnounceGuid;imgSrc += '&V=' + (__IM_Connected != 'False' ? __USERINFOS_UserGuid : '00000000-0000-0000-0000-000000000000');imgSrc += '&S=' + Action;trackingImg.src = imgSrc;document.body.appendChild(trackingImg);}
var UserStatusKnown = new Array();var _r030309 = true;function AUserStatus(Uguid) {this.UserGuid = Uguid;this.UpdateTime = new Date().valueOf() - 50000000;this.State = "NotSet";}function IsUserInStatusKnown(val) {for (i = 0; i < UserStatusKnown.length; i++) {if (UserStatusKnown[i].UserGuid == val)return true;}return false;}function CheckUserStatus() {_myPostData = 'UserGuids=';_myflg = false;for (i = 0; i < UserStatusKnown.length; i++) {if (UserStatusKnown[i].UpdateTime.valueOf() + 260000 < new Date().valueOf()){UserStatusKnown[i].UpdateTime = new Date();if (_myflg) { _myPostData += '+'; }_myPostData += UserStatusKnown[i].UserGuid;_myflg = true;}}if (_myflg && _r030309) {_r030309 = false;AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/Tools/GetUserStatus.aspx', _myPostData, UpdateUserStatusCallBack, null);}}function PushUserToUserStatusKnown(val) {if (!IsUserInStatusKnown(val)) {UserStatusKnown.push(new AUserStatus(val));}}function GetAUserState(Uguid) {for (jj = 0; jj < UserStatusKnown.length; jj++) {if (UserStatusKnown[jj].UserGuid == Uguid) {return UserStatusKnown[jj];}}return null;}function UpdateUserStatusCallBack(response, params) {allImageStat = document.getElementsByName('Ustatus');UserStates = response.toString().split('\n');for (ia = 0; ia < UserStates.length; ia++) {Uguid = UserStates[ia].toString().split('=')[0];Ustate = UserStates[ia].toString().split('=')[1];myUserState = GetAUserState(Uguid);if (myUserState == null) continue;myUserState.UpdateTime = new Date();if (myUserState.State != Ustate){myUserState.State = Ustate;for (ib = 0; ib < allImageStat.length; ib++) {cls = allImageStat[ib].className;if (cls != null && cls == Uguid) {allImageStat[ib].title = (Ustate == 'OnLine' ? 'En ligne' : 'Déconnecté');if (allImageStat[ib].getElementsByTagName('img').length == 1) {img = allImageStat[ib].getElementsByTagName('img')[0];img.className = 'im' + Ustate;}if (allImageStat[ib].getElementsByTagName('div').length == 1) {dv = allImageStat[ib].getElementsByTagName('div')[0];dv.className = Ustate;dv.getElementsByTagName('span')[0].innerHTML = (Ustate == 'OnLine') ? ' est en ligne' : ' est déconnecté(e)';}}}}}_r030309 = true;}function UpdateAllUserStatus() {alinks = document.getElementsByName('Ustatus');for (Ki = 0; Ki < alinks.length; Ki++) {PushUserToUserStatusKnown(alinks[Ki].className);}CheckUserStatus();setTimeout('UpdateAllUserStatus()', 1000);}UpdateAllUserStatus();function ForceUserStatusRefresh() { UserStatusKnown = new Array() };
function OpenChat(AnnounceGuid, OwnerGuid) {if (__IM_Connected == 'False') {GoLogon('Logon.htm', null);return;}if (__USERINFOS_UserGuid == OwnerGuid) {MyAlert("Ouverture du Chat", "Attention, cette annonce est à vous !", null);return;}pageTracker._trackPageview("/AjaxFeatures/Communications/OpenChatRequest");AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/Tools/OpenChat.aspx?AnnounceGuid=" + AnnounceGuid + "&OwnerGuid=" + OwnerGuid, OpenChatAjaxCallBack, null);}function OpenChatAjaxCallBack(response, params) {if (response == "Error") {MyAlert('Ouverture du Chat', 'Le Chat est indisponible pour l\'instant, ou le membre que vous souhaitez contacter n\'est pas connecté. Veuillez essayer plus tard.', null);}else {setTimeout(response, 1);}}
var __initStars = 10;function OverStars(val, divID) {var offset = ((-16 * (val)) - 175);var elem = $(divID + '_myStarsImg');if (elem != null) {elem.style.backgroundPosition = '0px ' + offset + 'px';}}function InitStars(val, divID) {__initStars = $(divID + '_TheRate').value;if (val != null) {__initStars = val;}OverStars(__initStars, divID);var sel = $(divID + '_SelectedRate');if (sel != null) {sel.innerHTML = __initStars + " / 10";}$(divID + '_TheRate').value = __initStars;}function ShowStandardRatingComponent(divID) {var html = '<div style="padding:12px 0px;"><input type=\"hidden\" id=\"' + divID.toString() + '_TheRate\" value=\"10\" />';html += '<select>';for (var i = 1; i < 11; i++) {if (i == 10) {html += '<option value="' + i + '" onclick="javascript:InitStars(' + i + ', \'' + divID + '\');" selected=\"selected\">' + i + '/10</option>';}else {html += '<option value="' + i + '" onclick="javascript:InitStars(' + i + ', \'' + divID + '\');">' + i + '/10</option>';}}html += '</select></div>';$(divID).innerHTML = html;}function InsertRatingComponent(divID, initVal) {var html = '<input type=\"hidden\" id=\"' + divID.toString() + '_TheRate\" value=\"' + initVal.toString() + '\" />';html += '<table cellpadding=\"0\" cellspacing=\"0\" border=\"0px\" onmouseout=\"javascript:InitStars(null, \'' + divID + '\');\">';html += '<tr><td colspan=\"4\"><a href=\"#\" onmouseover=\"javascript:InitStars(null, \'' + divID + '\');\" style=\"cursor:default\">';html += '<img src=\"http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/Tpix.gif\" style=\"width:100%;height:3px;border:none;\"/></a></td></tr>';html += '<tr><td><a href=\"#\" onmouseover=\"javascript:InitStars(null, \'' + divID + '\');\" style=\"cursor:default\">';html += '<img src=\"http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/Tpix.gif\" style=\"width:3px;height:16px;border:none;\"/></a></td>';html += '<td>';html += '<map name=\"' + divID + '_StarsMap\" >';html += '<area shape=\"rect\" coords=\"1,1,8,17\" onmouseover=\"javascript:OverStars(1, \'' + divID + '\');\" onclick=\"javascript:InitStars(1, \'' + divID + '\');return false;\" title=\"1/10\"/>';html += '<area shape=\"rect\" coords=\"8,1,16,17\" onmouseover=\"javascript:OverStars(2, \'' + divID + '\');\" onclick=\"javascript:InitStars(2, \'' + divID + '\');return false;\" title=\"2/10\"/>';html += '<area shape=\"rect\" coords=\"17,1,24,17\" onmouseover=\"javascript:OverStars(3, \'' + divID + '\');\" onclick=\"javascript:InitStars(3, \'' + divID + '\');return false;\" title=\"3/10\"/>';html += '<area shape=\"rect\" coords=\"25,1,33,17\" onmouseover=\"javascript:OverStars(4, \'' + divID + '\');\" onclick=\"javascript:InitStars(4, \'' + divID + '\');return false;\" title=\"4/10\"/>';html += '<area shape=\"rect\" coords=\"34,1,41,17\" onmouseover=\"javascript:OverStars(5, \'' + divID + '\');\" onclick=\"javascript:InitStars(5, \'' + divID + '\');return false;\" title=\"5/10\"/>';html += '<area shape=\"rect\" coords=\"42,1,50,17\" onmouseover=\"javascript:OverStars(6, \'' + divID + '\');\" onclick=\"javascript:InitStars(6, \'' + divID + '\');return false;\" title=\"6/10\"/>';html += '<area shape=\"rect\" coords=\"51,1,58,17\" onmouseover=\"javascript:OverStars(7, \'' + divID + '\');\" onclick=\"javascript:InitStars(7, \'' + divID + '\');return false;\" title=\"7/10\"/>';html += '<area shape=\"rect\" coords=\"59,1,67,17\" onmouseover=\"javascript:OverStars(8, \'' + divID + '\');\" onclick=\"javascript:InitStars(8, \'' + divID + '\');return false;\" title=\"8/10\"/>';html += '<area shape=\"rect\" coords=\"68,1,75,17\" onmouseover=\"javascript:OverStars(9, \'' + divID + '\');\" onclick=\"javascript:InitStars(9, \'' + divID + '\');return false;\" title=\"9/10\"/>';html += '<area shape=\"rect\" coords=\"76,1,83,17\" onmouseover=\"javascript:OverStars(10, \'' + divID + '\');\" onclick=\"javascript:InitStars(10, \'' + divID + '\');return false;\" title=\"10/10\"/>';html += '</map>';html += '<img id=\"' + divID + '_myStarsImg\" src=\"http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/Tpix.gif\" usemap=\"#' + divID + '_StarsMap\" class=\"StarsRatingComponentImg\" style=\"cursor:pointer;border:none;\"/>';html += '</td><td><a href=\"#\" onmouseover=\"javascript:InitStars(null, \'' + divID + '\');\" style=\"cursor:default\"><img src=\"http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/Tpix.gif\" style=\"width:3px;height:16px;border:none;\"/></a></td>';html += '<td style=\"width:35px;text-align:center;vertical-align:middle;\"><small><span id=\"' + divID + '_SelectedRate\"></span></small></td></tr><tr>';html += '<td colspan=\"4\"><a href=\"#\" onmouseover=\"javascript:InitStars(null, \'' + divID + '\');\" style=\"cursor:default\"><img src=\"http://cms.womzone.com/00_WomzoneV2.0/StyleCSS/imgs/General/Tpix.gif\" style=\"width:100%;height:3px;border:none;\"/></a></td>';html += '</tr></table><br /><center><small><a href="#" onclick="javascript:ShowStandardRatingComponent(\'' + divID + '\');return false;">Les étoiles ne fonctionnent pas ?</a></small></center>';$(divID).innerHTML = html;InitStars(initVal, divID);}
var __URL_GET_AnnounceMessagePage = __CONT__URL_FRONT + 'AjaxPages/AjaxCMS.aspx?CMS=Messages/AnnounceSendMessage.htm';var __URL_POST_AnnounceMessage = __CONT__URL_FRONT + 'AjaxPages/Messages/AnnounceSendMessages.aspx';var _SendAnnounceMessageAnnounceGuid = null;var _SendAnnounceMessageOwnerGuid = null;function SendAnnounceSendMessageSendCallBack(response, params) {$('AjaxLoading').style.display = 'none';if (response == 'Success'){$('WarningMessage').style.display = '';pageTracker._trackPageview("/AjaxFeatures/Communications/Announces/SendMessagesSuccess");}else if (response == 'GoLogon') {LogonPostAction('SendMessage');pageTracker._trackPageview("/AjaxFeatures/Communications/Announces/SendMessagesNotConnected");return;}else {$('WarningMessage').style.display = '';pageTracker._trackPageview("/AjaxFeatures/Communications/Announces/SendMessagesError");}setTimeout('CloseModalPopup()', 3200);}function SendAnnounceSendMessage() {Mess = $('MessageTextArea').value.length;if (Mess > 0 && Mess < 2000) {$('SendAnnonceMessageButton').setAttribute('disabled', 'disabled');$('MessageTextArea').setAttribute('disabled', 'disabled');PostData = "MessageBody=" + HTMLEncode($('MessageTextArea').value);PostData += "\nReceiverGuid=" + _SendAnnounceMessageOwnerGuid;PostData += "\nAnnounceGuid=" + _SendAnnounceMessageAnnounceGuid;$('AjaxLoading').style.display = '';AjaxHttpPost(__URL_POST_AnnounceMessage, PostData, SendAnnounceSendMessageSendCallBack, null);}}function SendAnnounceMessageObserveMessage() {nbChar = 2000 - $('MessageTextArea').value.length;if (nbChar <= 0) {$('SendAnnonceMessageButton').setAttribute('disabled', 'disabled');}else if ($('MessageTextArea').value.length == 0) {$('SendAnnonceMessageButton').setAttribute('disabled', 'disabled');}else {$('SendAnnonceMessageButton').removeAttribute('disabled');}$('NbMessageChar').innerHTML = nbChar;}function SendAnnounceMessageCallBack(response, params) {SuroundWithPopup('ThisPopup');InitWaterMark('MessageTextArea');$('MessageTextArea').focus();}function SendAnnounceMessage(AnnounceGuid, OwnerGuid) {if (__USERINFOS_UserGuid == OwnerGuid) {MyAlert('Envoyer un message', 'Attention ! Cette annonce est à vous !', null);return;}_SendAnnounceMessageAnnounceGuid = AnnounceGuid;_SendAnnounceMessageOwnerGuid = OwnerGuid;MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/SendMessage.htm', SendAnnounceMessageCallBack);}
var __URL_POST_SendAnnounceToFriend = __CONT__URL_FRONT + 'AjaxPages/Tools/SendAnnounceToFriend.aspx';var __SatoFringGuid = '';function SendAnnounceToFriend(AnnounceGuid) {MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/SendToFriend.htm', SendAnnounceToFriendInit);AnnounceTrackingAction(AnnounceGuid, 'SendAnnounceToFriend');pageTracker._trackPageview("/AjaxFeatures/Announces/SendAnnounceToFriendViewForm");}function SendAnnounceToFriendInit() {SuroundWithPopup('ThisPopup');if (__IM_Connected == 'True') {$('satfInName').value = unescape(__USERINFOS_FullName);$('satfInMail').value = unescape(__USERINFOS_Email);$('satfInName').setAttribute('disabled', 'disabled');$('satfInMail').setAttribute('disabled', 'disabled');}else {InitWaterMark('satfInName');InitWaterMark('satfInMail');}InitWaterMark('satfTareaEmails');InitWaterMark('satfTareaMessage');}function SendAnnouceToFriendCheckAdresses() {emails = $('satfTareaEmails').value.split('\n');flg = false;if (IsWaterMarkEntrySet('satfTareaEmails')) {for (i = 0; i < emails.length; i++) {flg = IsAnEmailAddress(emails[i]);if (!flg) { break; }}}if (flg) { $('btSendAnnounceToFriend').removeAttribute('disabled'); }else { $('btSendAnnounceToFriend').setAttribute('disabled', 'disabled'); }}function AnnounceSendToFriendErrorCallBack() {$('btSendAnnounceToFriend').removeAttribute('disabled');}function SendAnnounceToFriendAjaxCallCallBack(response, params) {$('AjaxLoading').style.display = 'none';if (response == 'Success') {$('WarningMessage').style.display = '';setTimeout('CloseModalPopup()', 3200);pageTracker._trackPageview("/AjaxFeatures/Announces/SendAnnounceToFriendSuccess");}else {MyAlert('Envoyez cette annonce', response, 'AnnounceSendToFriendErrorCallBack');pageTracker._trackPageview("/AjaxFeatures/Announces/SendAnnounceToFriendError");}}function SendAnnounceToFriendAjaxCall() {if ($('satfTareaEmails').value.length > 1024){MyAlert('Envoyer cette annonce', 'Saisissez moins de destinataires. Limite atteinte.', null);return;}if ($('satfTareaMessage').value.length > 1024) {MyAlert('Envoyer cette annonce', 'Votre message est trop long. Saisissez un message plus court.', null);return;}$('btSendAnnounceToFriend').setAttribute('disabled', 'disabled');$('AjaxLoading').style.display = '';postData = 'AnnounceGuid=' + PageVar_AnnounceGuid;postData += '\nEmails=' + $('satfTareaEmails').value.replace('\n', ';');if (__IM_Connected == 'True') {postData += '\nUserName=' + unescape(__USERINFOS_FullName);postData += '\nUserMail=' + unescape(__USERINFOS_Email);}else {postData += '\nUserName=' + (IsWaterMarkEntrySet('satfInName') ? $('satfInName').value : '');postData += '\nUserMail=' + (IsWaterMarkEntrySet('satfInMail') ? $('satfInMail').value : '');}postData += '\nMessage=';postData += (IsWaterMarkEntrySet('satfTareaMessage') ? HTMLEncode($('satfTareaMessage').value) : '');AjaxHttpPost(__URL_POST_SendAnnounceToFriend, postData, SendAnnounceToFriendAjaxCallCallBack);}
var __RaaAnnounceGuid = '';function RaiseAnnounceAbuse(AnnounceGuid) {__RaaAnnounceGuid = AnnounceGuid;MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/RaiseAbuse.htm', RaiseAnnounceAbuseInit);pageTracker._trackPageview("/AjaxFeatures/Announces/RaiseAbuseViewForm");}function RaiseAnnounceAbuseInit() {SuroundWithPopup('ThisPopup');InitWaterMark('rabTareaComment');InitWaterMark('rabInName');if (__IM_Connected == 'True')$('rabInNameSpan').style.display = 'none';}function RaiseAbuseAjaxCall() {$('AjaxLoading').style.display = '';if (IsWaterMarkEntrySet('rabInName') && IsAbuseEmailValid() || __IM_Connected) {postData = 'UserName=' + (IsWaterMarkEntrySet('rabInName') ? HTMLEncode($('rabInName').value) : '');postData += '\nComment= ' + (IsWaterMarkEntrySet('rabTareaComment') ? HTMLEncode($('rabTareaComment').value) : '');postData += '\nReferer=' + document.location;AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/Tools/RaiseAnnounceAbuse.aspx?AGuid=' + __RaaAnnounceGuid, postData, RaiseAbuseAjaxCallBack, null);} else {$('RaiseAbuseInvalidEmail').style.display = '';}}function RaiseAbuseAjaxCallBack() {$('AjaxLoading').style.display = 'none';$('WarningMessage').style.display = '';setTimeout('CloseModalPopup()', 3200);pageTracker._trackPageview("/AjaxFeatures/Announces/RaiseAbuseViewFormSuccess");}function IsAbuseEmailValid() {var email = $('rabInName').value;if (IsAnEmailAddress(email))return true;$('btValidateStep1').setAttribute('disabled', 'disabled');return false;}
var _cchkoAnnounceGuid = '';function GoCheckOut(AnGuid) {_cchkoAnnounceGuid = AnGuid;MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/CheckOutFrame.htm', GoCheckOutInitFrame);}function GoCheckOutInitFrame() {SuroundWithPopup('ThisPopup');$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/AnnounceDetail/AnnounceCheckOut.aspx?AnGuid=' + _cchkoAnnounceGuid, GoCheckOutInit, null);pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceSellOrBuy");}function GoCheckOutInit(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');if (__IM_Connected == 'False') {AjaxHttpGet(__CONT__URL_FRONT + '/Gadgets/RegisterAndLogon.aspx?Type=CheckOut', GoCheckOutInitLogon, null);}}function GoCheckOutInitLogon(response, params) {if ($('CheckOutFrameLogon')) {$('CheckOutFrameLogon').innerHTML = response;InitRegisterGadget('CheckOut');}}function GoPaypal() {$('AjaxLoading').style.display = '';postData = "AnnounceGuid=" + _cchkoAnnounceGuid;pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceBuy_GoPaypall");AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/AnnounceDetail/BiginTransaction.aspx', postData, GoPayPalCallBack, null);}function GoPayPalCallBack(response, params) {if (response.toString().search('^Success==') == 0) {pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceBuy_GoPaypall/Success");parent.location = response.toString().replace('Success==', '');}else {$('AjaxLoading').style.display = 'none';MyAlert('Erreur', response, null);pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceBuy_GoPaypall/Error");}}function CheckPropositionPrice(evt) {price = $('propPriceTBx').value;reg = new RegExp('^[0-9]+$');if (price.length == 0 || !reg.test(price) || Math.round(price) < 3) {$('SendSellPropBt').setAttribute('disabled', 'disabled');$('propPriceTBx').style.backgroundColor = '#FF3333';return false;}$('propPriceTBx').style.backgroundColor = '';$('SendSellPropBt').removeAttribute('disabled');return true;}function PropostionMessageChange() {Mess = $('propMessageArea').value;if (Mess.length == 0) {$('propMessageArea').value = 'Ajoutez votre message ici.';return;}if (Mess.length > 2000) {MyAlert('Proposition de vente', 'Votre message est trop long. Veuillez le réduire.');$('SendSellPropBt').setAttribute('disabled', 'disabled');return;}}function SendSellRequest() {$('SendSellPropBt').setAttribute('disabled', 'disabled');price = $('propPriceTBx').value;reg = new RegExp('^[0-9]+$');if (price.length == 0 || !reg.test(price) || Math.round(price) < 3) {MyAlert("Proposition", "Le prix que vous proposez est incorrect.", null);return;}$('AjaxLoading').style.display = '';postData = 'AnnounceGuid=' + _cchkoAnnounceGuid;postData += '\nPrice=' + price;postData += '\nMessage=' + HTMLEncode($('propMessageArea').value);postData += '\nExpiration=' + $('NbDays').innerHTML;AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/AnnounceDetail/SendSellRequest.aspx", postData, SendSellRequestCallBack, null);pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceSellSendProposition");}function SendSellRequestCallBack(response, params) {$('AjaxLoading').style.display = 'none';if (response == 'Success') {pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceSellSendProposition/Success");$("WarningMessage").style.display = '';setTimeout('CloseModalPopup()', 3200);return;}else if (response == 'GoLogon') {$('CheckOutFrameLogon').innerHTML = "";$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + '/Gadgets/RegisterAndLogon.aspx', SendSellRequestGoLogon, null);pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceSellSendProposition/SuccessWithLogonOrRegister");return;}MyAlert("Proposition", response, null);$('SendSellPropBt').removeAttribute('disabled');pageTracker._trackPageview("/AjaxFeatures/CheckOut/AnnounceSellSendProposition/Error");}function SendSellRequestGoLogon(response, params) {$('AjaxLoading').style.display = 'none';$('CheckOutFrameLogon').innerHTML = response;InitRegisterGadget('register');$('ScrollBx192').style.display = 'none';$('CheckOutStep2Blk').style.position = '';$('CheckOutStep2Blk').style.top = '';}
function AnnounceShowMoreEval(id, OwnerGuid) {$('ListAjaxLoadingImg').style.display = '';IncludeHTML(__CONT__URL_FRONT + "AjaxPages/AnnounceDetail/EvalList.aspx?OwnerGuid=" + OwnerGuid + "&No=" + id, "MoreEval" + id);}function AnnounceShowMoreAnnounce(id, AnnounceGuid) {$('ListAnnounceAjaxLoadingImg').style.display = '';IncludeHTML(__CONT__URL_FRONT + "AjaxPages/AnnounceDetail/AnnounceList.aspx?AnnounceGuid=" + AnnounceGuid + "&No=" + id, "MoreAnnounce" + id);}function ShareOnTheInternet(AnnounceGuid) {MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/CheckOutFrame.htm', function() { ShareOnTheInternetInitFrame(AnnounceGuid); });}function ShareOnTheInternetInitFrame(AnnounceGuid) {SuroundWithPopup('ThisPopup');$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/AnnounceDetail/PromotionTools.aspx?Guid=' + ((AnnounceGuid == null)?PageVar_AnnounceGuid:AnnounceGuid), ShareOnTheInternetCallBack, null);pageTracker._trackPageview("/AjaxFeatures/Communication/ShareOnTheInternet");}function BitlyClientCallBack(data) {var first_result;for (var r in data.results) {first_result = data.results[r]; break;}var short_url = first_result["shortUrl"];TwitterUrl = "http://twitter.com/home?status=" + $('ShortenTitle').value + " : " + short_url;$("TwitterLink").href = TwitterUrl;$("TinyUrl").value = short_url;$("AjaxLoading").style.display = 'none';}function ShareOnTheInternetCallBack(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');BitlyClient.call('shorten', { 'longUrl': $('LongUrl').value }, 'BitlyClientCallBack');}function ShareWithFacebook(lnk, title) {window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(lnk) + '&t=' + encodeURIComponent(title), 'sharer', 'toolbar=0,status=0,width=626,height=436');}var ContactList = null;var SentInvCount = 0;function InviteContacts() {if (__IM_Connected == 'True') {MyModalPopup('LOCAL::AjaxPages/Invite/InviteFrame.aspx', InviteContactsInitFrame);}}function InviteContactsInitFrame() {SuroundWithPopup('ThisPopup');$AttachEvent($('Password'), 'onkeyup', CatchKeyboardSubmit);eval($('Js2Eval').innerHTML);$('FBInvite').disabled = true;$('FBInvite').className = "DisabledFB";LoadFBScript(function() { $('FBInvite').disabled = false; $('FBInvite').className = "EnabledFB"; });}function CatchKeyboardSubmit(event) {if ( (event && event.which == 13) || (window.event && window.event.keyCode == 13) ){GetContactList();}}function GetProviderAccordingToEmail(email) {try{var domain = email.split('@')[1].split('.')[0].toLowerCase();switch(domain){case 'gmx':return 'gmx_net';break;case 'live':return 'hotmail';break;default:return domain;}}catch(e){return 'invalidEmail';}}function GetContactList() {$('AjaxLoading').style.display = '';$('WarningMessage').style.display = 'none';var PostData = "Email=" + $('Email').value + "\n";PostData += "Password=" + $('Password').value + "\n";PostData += "Provider=" + GetProviderAccordingToEmail($('Email').value) + "\n";AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/Invite/GetContacts.aspx", PostData, GetContactListCB, null);}function ShowWarning(text) {$('WarningMessage').style.display = 'block';$('WarningMessage').innerHTML = text;window.setTimeout("$('WarningMessage').style.display = 'none';", 2500);}function GetContactListCB(response) {$('AjaxLoading').style.display = 'none';var res = eval('(' + response + ')');switch (res.response.errorCode) {case "0":break;case "-3":ShowWarning("Adresse email ou mot de passe incorrect.");return;break;default:ShowWarning("Impossible d'importer les contacts depuis cet email.");return;break;}ContactList = res.response.results;if (ContactList.length == 0) {ShowWarning("Aucun contact à importer sur cet email.");return;}var table = new Array();table.push("<div  class=\"WarningMessage Ste_PopupWarningMessageBorderColor \" style=\"padding:0;text-align:left;border-width:1px;font-weight:normal;position:relative;width: 430px; height: 190px; overflow-y: auto; overflow-x: hidden;\"><table>");for (var i in ContactList) {table.push("<tr><td><label for=\"" + i + "\" ><input type=\"checkbox\" id=\"" + i + "\" name=\"" + i + "\" />" + ContactList[i] + " (<font style=\"font-style:italic;\">" + i + "</font>)</label></td></tr>");}table.push("</table></div>");$('ResultTable').innerHTML = table.join("");$('ImportForm').style.display = 'none';$('CheckContacts').style.display = 'block';InitWaterMark('FatherMessage');}function CheckAllContacts() {for (var i in ContactList) {$(i).checked = true;}}function UncheckAllContacts() {for (var i in ContactList) {$(i).checked = false;}}function InviteCheckedContacts() {var CheckedContacts = "";for (var i in ContactList) {if ($(i).checked) {CheckedContacts += i + "µ" + ContactList[i] + ";";SentInvCount++;}}if (CheckedContacts.length > 1) {CheckedContacts = CheckedContacts.substr(0, CheckedContacts.length - 1);}if (CheckedContacts.length == 0) {ShowWarning("Veuillez sélectionner au moins un contact.");return;}$('InviteCheckedContacts').disabled = true;var PostData = 'Contacts=' + CheckedContacts + '\n';PostData += 'FatherMessage=' + ($('FatherMessage').value == 'Votre message ici...'?'':$('FatherMessage').value.replace(/\n/gi,'µµnµµ')) + '\n';AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/Invite/InviteActions.aspx", PostData, InviteCheckedContactsCB, null);$('AjaxLoading').style.display = '';}function InviteCheckedContactsCB(response) {$('AjaxLoading').style.display = 'none';$('Email').value = '';$('Password').value = '';$('ImportForm').style.display = 'none';$('FirstInviteChoice').style.display = 'block';$('CheckContacts').style.display = 'none';$('InviteCheckedContacts').disabled = false;if (response == "NotAuthentified") {ShowWarning("Veuillez vous connecter pour utiliser cette fonctionnalité.");} else {ShowWarning(SentInvCount > 1 ? "Invitations envoyées avec succés!<br />Vous pouvez importer d'autres contacts ou cliquer sur \"Annuler\" pour fermer cette fenêtre." : "Invitation envoyée avec succés!<br />Vous pouvez importer d'autres contacts ou cliquer sur \"Annuler\" pour fermer cette fenêtre.");}}var FBsession = false;var FBresponse = null;var FBScriptLoaded = false;var FatherLink = __CONT__URL_FRONT + '?FB=' + __USERINFOS_UserGuid;var FBAppId = __CONF_FB_APIKEY;var __CONF__SITE_SmartName;var __CONF__SITE_Description;var FBConnect = function(callback) {if (!FBsession) {FB.login(function(responseLogin) {if (responseLogin.session) {FBsession = responseLogin.session;try {callback();} catch (e) {}} else {}});return false;} else {return true;}}var SetLoginStatus = function(callback) {FB.getLoginStatus(function(response) {if (response.session) {FBsession = response.session;} else {}if (callback) {callback();}});}var LoadFBScript = function(callback) {if ($("FBSCRIPT") == null || typeof ($("FBSCRIPT")) == "undefined") {window.fbAsyncInit = function() {FBScriptLoaded = true;InitFBScript();SetLoginStatus(callback);};var e = document.createElement('script');e.id = "FBSCRIPT";e.async = true;e.src = document.location.protocol + '//connect.facebook.net/fr_FR/all.js';document.getElementById('fb-root').appendChild(e);} else {FBScriptLoaded = true;SetLoginStatus(callback);}}var InitFBScript = function() {FB.init({ appId: FBAppId, status: true, cookie: true, xfbml: true, channelUrl: __CONT__URL_FRONT + "FBChannel.aspx" });}var GetAuthToken = function(){return getCookie('fbs_' + FBAppId);}var FBInviteFriendsSelector = function() {document.domain = GetSimpleDomainForIframe(__CONT__URL_FRONT);AppendFriendsSelector();}var FBShare = function(url) {document.domain = GetSimpleDomainForIframe(__CONT__URL_FRONT);var share = {method: 'stream.share',display: 'popup',u: url};FB.ui(share, function(response) {});}var FBPublish = function(messagePrompt, message, linkName, linkCaption, linkDescription, linkHref, actionLinks) {FB.ui({method: 'stream.publish',display: 'popup',message: message,attachment: {name: linkName,caption: linkCaption,description: linkDescription,href: linkHref},action_links: actionLinks,user_message_prompt: messagePrompt},function(response) {if (response && response.post_id) {} else {}});}var AppendFriendsSelector = function() {$('WarningMessage').parentNode.style.padding = "0 40px";$('WarningMessage').parentNode.parentNode.childNodes[1].style.display = 'none';$('FirstInviteChoice').style.display = 'none';window.name = 'DaFirstOne';var FBMLCode = '<fb:serverfbml><script type="text/fbml"><fb:fbml><fb:request-form action="' + __CONT__URL_FRONT + 'AjaxPages/Invite/FinishInviteInIframe.aspx" method="POST" target="_self" invite="true" type="' + __CONF__SITE_SmartName + '" content="<fb:name uid=\'' + FBsession.uid + '\' useyou=\'false\' /> vous invite à découvrir ' + __CONF__SITE_SmartName + ', rejoignez-le vite pour ne plus perdre de temps à chercher des informations!<fb:req-choice url=\'' + FatherLink + '\' label=\'Découvrez ' + __CONF__SITE_SmartName + '\' />">  <fb:multi-friend-selector showborder="false" actiontext="Invitez vos amis Facebook et gagnez des publications gratuites!" rows="3" /> </fb:request-form>  </fb:fbml>  </script> </fb:serverfbml>';$('FBInvite').innerHTML = FBMLCode;FB.XFBML.parse();$('FBInvite').style.display = 'block';}var CloseFBIframe = function() {$('FBInvite').innerHTML = '';$('FBInvite').style.display = 'none';$('WarningMessage').parentNode.style.padding = "10px 40px";$('WarningMessage').parentNode.parentNode.childNodes[1].style.display = 'block';$('FirstInviteChoice').style.display = 'block';}
var __URL_POST_ExtendPublication = __CONT__URL_FRONT + 'AjaxPages/Publication/ExtendPublicationGadget.aspx';var __URL_POST_SuspendPublication = __CONT__URL_FRONT + 'AjaxPages/Gadget/Publication/SuspendPublicationGadget.aspx';var SuspendPopUpBody = "<b>Vous voulez suspendre cette annonce jusqu'à nouvel ordre ?</b>" +"<p>Celle-ci pourra être réactivée à tout instant." +"</p><center><input type=\"button\" id=\"SuspendPopUpButton\" value=\"Confirmer\" /></center>";var SuspendPopUpTitle = "Suspension de l'annonce";var ExtendPopUpBody = "<p><b>Vous voulez ré-activer votre annonce?</b></p><center><input type=\"button\" id=\"ExtendPopUpButton\" value=\"Confirmer\" /></center>";var ExtendPopUpTitle = "Annonce modifiée";var ExtendPopUpBodyOnChange = "<p><b>Vous avez modifié votre annonce, souhaitez-vous la ré-activer?</b></p><center><input type=\"button\" id=\"ExtendPopUpButton\" value=\"Confirmer\" /></center>";var ExtendPopUpTitleOnChange = "Modification de l'état de l'annonce";function GoExtendPublication(AnnounceGuid, TokenGuid) {AjaxHttpPost(__URL_POST_ExtendPublication, "A=" + AnnounceGuid + "\nT=" + TokenGuid, GoExtendPublicationCallBack, AnnounceGuid);}function GoExtendPublicationByUser(AnnounceGuid) {AjaxHttpPost(__URL_POST_ExtendPublication, "A=" + AnnounceGuid, GoExtendPublicationByUserCallBack, AnnounceGuid);}function GoExtendPublicationWithRefToken(AnnounceGuid,RefToken,RefAnnounce) {var PostData = '';PostData += '\n';AjaxHttpPost(__URL_POST_ExtendPublication,"A=" + AnnounceGuid + "\nRefToken=" + RefToken + "\nRefAnnounce="+RefAnnounce, GoExtendPublicationCallBack, AnnounceGuid);}function GoExtendPublicationCallBack(text, AnnounceGuid) {if (text == "Error") {$(AnnounceGuid).innerHTML = "Erreur...";}else {$(AnnounceGuid).innerHTML = "<img src=\"http://cms.womzone.com/_global/Css/Pics/ValidationIcon.gif\"/>";$(AnnounceGuid + "-Date").innerHTML = text;$('ExpireText-' + AnnounceGuid).style.display = 'none';$('ReactivatedText-' + AnnounceGuid).style.display = '';}}function GoExtendPublicationByUserCallBack(text, AnnounceGuid) {}var SuspendLock = false;function OpenSuspendPopUp(AnnounceGuid, SuspendDivId, UnSuspendDivId) {if (ExtendLock || SuspendLock) return;SuspendLock = true;MyAlert(SuspendPopUpTitle, SuspendPopUpBody, "UnlockSuspend");$("SuspendPopUpButton").setAttribute("onclick", "javascript:SuspendLock=false;GoSuspendPublication('" + AnnounceGuid + "','" + SuspendDivId + "','" + UnSuspendDivId + "');");if (document.all) {$("SuspendPopUpButton").onclick = function() {SuspendLock = false;GoSuspendPublication(AnnounceGuid, SuspendDivId, UnSuspendDivId);};}}function UnlockSuspend() {SuspendLock = false;}function GoSuspendPublication(AnnounceGuid, SuspendDivId, UnSuspendDivId) {AjaxHttpPost(__URL_POST_SuspendPublication, "A=" + AnnounceGuid, GoSuspendPublicationCallBack, UnSuspendDivId);CloseMyAlert("null");$(SuspendDivId).style.display = "none";}function GoSuspendPublicationCallBack(text, UnSuspendDivId) {if (ASPConfirm != null && $(ASPConfirm) != null) {$(ASPConfirm).style.display = "none";}if (text == "Error") {$("ActionConfirmationMsg").innerHTML = "Impossible de suspendre cette annonce.";$("ActionConfirmationMsg").style.display ="block";} else {ActiveAnnounce = false;$(UnSuspendDivId).style.display = "block";$("ActionConfirmationMsg").innerHTML = "Votre annonce a bien été suspendue.";$("ActionConfirmationMsg").style.display = "block";$('AnnounceStatus').innerHTML = "Suspendue";$("SeeMyAnnounceLink").style.display = 'none';$("PromoteMyAnnounceLink").style.display = 'none';}}var ExtendLock = false;function OpenExtendPopUp(AnnounceGuid, SuspendDivId, UnSuspendDivId) {if (ExtendLock || SuspendLock) return;ExtendLock = true;MyAlert(ExtendPopUpTitle, ExtendPopUpBody, "UnlockExtend");$("ExtendPopUpButton").setAttribute("onclick", "javascript:ExtendLock=false;GoExtendPublicationPU('" + AnnounceGuid + "','" + SuspendDivId + "','" + UnSuspendDivId + "');");if (document.all) {$("ExtendPopUpButton").onclick = function() {ExtendLock = false;GoExtendPublicationPU(AnnounceGuid, SuspendDivId, UnSuspendDivId);};}}function UnlockExtend() {ExtendLock = false;}function OpenExtendPopUpOnChange(Announceguid, SuspendDivId, UnSuspendDivId) {MyAlert(ExtendPopUpTitleOnChange, ExtendPopUpBodyOnChange, null);$("ExtendPopUpButton").setAttribute("onclick", "javascript:GoExtendPublicationPU('" + AnnounceGuid + "','" + SuspendDivId + "','" + UnSuspendDivId + "');");if (document.all) {$("ExtendPopUpButton").onclick = function() {GoExtendPublicationPU(AnnounceGuid, SuspendDivId, UnSuspendDivId);};}}function GoExtendPublicationPU(AnnounceGuid, SuspendDivId, UnSuspendDivId) {AjaxHttpPost(__URL_POST_ExtendPublication, "A=" + AnnounceGuid, GoExtendPublicationPUCallBack, SuspendDivId);CloseMyAlert("null");$(UnSuspendDivId).style.display = "none";}function GoExtendPublicationPUCallBack(text, SuspendDivId) {if (ASPConfirm != null && $(ASPConfirm) != null) {$(ASPConfirm).style.display = "none";}if (text == "Error") {$("ActionConfirmationMsg").innerHTML = "Impossible de ré-activer cette annonce.";$("ActionConfirmationMsg").style.display = "block";} else {window.ActiveAnnounce = true;$(SuspendDivId).style.display = "block";$("ActionConfirmationMsg").innerHTML = "Votre annonce a bien été ré-activée.";$("ActionConfirmationMsg").style.display = "block";$('AnnounceStatus').innerHTML = "Active";$("SeeMyAnnounceLink").style.display = 'block';$("PromoteMyAnnounceLink").style.display = 'block';}}var __URL_POST_RegionalInfos = __CONT__URL_FRONT + 'AjaxPages/Gadget/Publication/RegionalInfos.aspx';function GoSaveRegionalInfos(Text1, Text2, Text3, Text4, AnnounceGuid) {AjaxHttpPost(__URL_POST_RegionalInfos, "AnnounceGuid=" + AnnounceGuid + "\nTB1=" + Text1 + "\nTB2=" + Text2 + "\nTB3=" + Text3 + "\nTB4=" + Text4, GoSaveRegionalInfosCallBack, null);}function ShowRegionalInfosDiv() {if (ExtendLock || SuspendLock) return;OpenGMapPopUp();}function HideRegionalInfosDiv() {$('ModifyRegionalInfo').style.display = "block";if (document.all) {ReduceDiv('RegionalInfoDiv', 210);}else {ReduceDiv('RegionalInfoDiv', 180);}RaiseDiv('EditAnnounceContent', 0, 300);$('RegionalInfoDiv').style.display = "none";}function GoSaveRegionalInfosCallBack() {if (ASPConfirm != null && $(ASPConfirm) != null) {$(ASPConfirm).style.display = "none";}if ($("ActionConfirmationMsg").innerHTML != "Les périmètres géographiques de votre annonce ont bien été modifiés.") {$("ActionConfirmationMsg").innerHTML = "Les périmètres géographiques de votre annonce ont bien été modifiés.";}$("ActionConfirmationMsg").style.display = "block";$('EditAnnounceContent').style.height = "300px";}function OnSaveRegionalInfos(TextBoxId1, TextBoxId2, TextBoxId3, TextBoxId4) {GoSaveRegionalInfos($(TextBoxId1).value, $(TextBoxId2).value, $(TextBoxId3).value, $(TextBoxId4).value, AnnounceGuid);$("RegionalInfoPreview").innerHTML = $(TextBoxId1).value + " "+ $(TextBoxId2).value + " " + $(TextBoxId3).value + " " + $(TextBoxId4).value;HideRegionalInfosDiv();}function OpenGMapPopUp() {var css_style = document.createElement("link");css_style.setAttribute("rel", "stylesheet");css_style.setAttribute("type", "text/css");css_style.setAttribute("href", 'http://cms.womzone.com/_global/Css/AnnouncePublicationPopup/Style.css');css_style.setAttribute("media", "screen");document.getElementsByTagName("head")[0].appendChild(css_style);MyModalPopup('LOCAL::Gadgets/GMapPopUp' + AnnounceType + '.htm', OpenGMapPopUpCallBack);}function OpenGMapPopUpCallBack() {SuroundWithPopup('ThisPopup');if (GMapInitArray.length > 0) {GMapLoad(GMapInitArray, __CONF__GMAP_APIKEY);} else {GMapLoad(null, __CONF__GMAP_APIKEY);}}function EndEditGmapLocations() {$('CloseGMapPopUp').disabled = true;var PostData = "GoogleItems=" + MyMap.CreateGoogleData() + "\n";PostData += "Guid=" + AnnounceGuidAR + "\n";PostData += "MapInfo=" + MyMap.CreatePlacemarksPostDataWhenEdit(GMapLocations) + "\n";GMapInitArray = MyMap.CreateInitArray();$('RegionalInfoPreview').innerHTML = MyMap.CreateLocationsSummaryString(GMapLocations);AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/Gadget/Gmaps/EditAnnounceGMLocations.aspx", PostData, function() { CloseModalPopup(); }, null);}
var __URL_POST_RatingCallBack = __CONT__URL_FRONT + 'AjaxPages/MyWomzone/RatingsCallBack.aspx';function SendRatingCallBack(AnnounceGuid) {var PostParams = "AGuid=" + AnnounceGuid;PostParams += "\nFrom=JS";AjaxHttpPost(__URL_POST_RatingCallBack, PostParams, SendRatingCallBackCB, AnnounceGuid);}function SendRatingCallBackCB(text, AnnounceGuid) {if (text == "Error") {$(AnnounceGuid).innerHTML = "Erreur...";}else {$(AnnounceGuid).innerHTML = "<img src=\"http://cms.womzone.com/_global/Css/Pics/ValidationIcon.gif\"/>";}}

function AskingInformationInit() {InitWaterMark('tbInformation');}function AskingInformation_SendInformation() {if (IsWaterMarkEntrySet('tbInformation') == false) {MyAlert("Livraison de l'information", "Vous devez saisir l'information", null);$('BtSendInformation').removeAttribute('disabled');return;}var myInfo = $('tbInformation').value;if (myInfo.length < 4) {MyAlert("Livraison de l'information", "Le texte de votre information est trop court.", null);$('BtSendInformation').removeAttribute('disabled');return;}$('AjaxLoading').style.display = '';postData = "Information=" + HTMLEncode(myInfo);AutoResponseEnable = 'False';if ($('cbAutoResponseEnable') != null) {AutoResponseEnable = ($('cbAutoResponseEnable').checked ? 'True' : 'False');}postData += "\nAutoResponseEnable=" + AutoResponseEnable;AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=DeliveringInformation&NotGuid=' + ___NotGuid,postData, AskingInformation_SendInformationCallBack, null);}function AskingInformation_SendInformationCallBack(response, params) {if (response == "Success") {$('AjaxLoading').style.display = 'none';MyAlert("Livraison de l'information", "Votre information a été envoyée avec succés.", 'AskingInformation_CloseWithSuccess');}else {MyAlert("Livraison de l'information", "Une erreur est survenue. Veuillez vérifier votre information.", null);}}function AskingInformation_CloseWithSuccess() {CloseModalPopup();RemoveActiveNotifications(___NotGuid);}
function RateReceivedInit() { }function RateReceived_UpdateReaction(RateGuid, WallItemGuid) {if ($('tbRateReply').value.length > 1024) {MyAlert("Réagir à l'évaluation", "Votre message est trop long.", null);return;}$('AjaxLoading').style.display = '';postData = "RateGuid=" + RateGuid;postData += "\nRateReaction=" + HTMLEncode($('tbRateReply').value);AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=RateReceivedUpdateReaction&NotGuid=' + RateGuid,postData, RateReceived_UpdateReactionCallBack, [WallItemGuid]);}function RateReceived_UpdateReactionCallBack(response, params) {if (response == "Success") {$('AjaxLoading').style.display = 'none';$('WarningMessage').style.display = '';setTimeout('CloseModalPopup()', 2300);if (params[0] != null) {setTimeout('LoadLastWallEvent(\'ReactSent\')', 2400)}}else {MyAlert("Réagir à l'évaluation", "Une erreur est survenue.", CloseModalPopup);}}
function RateToSendInit() {InsertRatingComponent('RatingComponent', 10);InitWaterMark('RateComment');}function RateToSend_SendMessage() {$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/RateToSend.aspx?PropGuid=' + ___NotGuid + '&State=SendMessage', RateToSend_SendMessageInit, null);}function RateToSend_SendMessageInit(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');InitWaterMark('RateComment');}function RateToSend_Back() {$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/RateToSend.aspx?PropGuid=' + ___NotGuid, RateToSend_BackInit, null);}function RateToSend_BackInit(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');RateToSendInit();}function SendRateCallBack(request, params) {$('AjaxLoading').style.display = 'none';$('WarningMessage').style.display = '';setTimeout('CloseModalPopup()', 2300);setTimeout('RemoveActiveNotifications(\'' + params[0] + '\');', 2300);}function SendRateCountCommentChar(min) {nb = $('RateComment').value.length;if (nb <= 1024 && nb >= min) {$('btSendRate').removeAttribute('disabled');}else {$('btSendRate').setAttribute('disabled', 'disabled');}$('nbChar').innerHTML = 1024 - nb;}function SendRateMessage(AnnounceGuid, ReceiverGuid) {comment = (IsWaterMarkEntrySet('RateComment') ? HTMLEncode($('RateComment').value) : '');postData = "ReceiverGuid=" + ReceiverGuid;postData += "\nAnnounceGuid=" + AnnounceGuid;postData += "\nMessageBody=" + comment;$('AjaxLoading').style.display = '';AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/Messages/AnnounceSendMessages.aspx', postData, SendRateMessageCallBack, null);}function SendRateMessageCallBack(response, params) {if (response == 'Error') {MyAlert('Erreur', 'Une erreur est survenue.', null);}else {$('AjaxLoading').style.display = 'none';$('WarningMessage').style.display = '';setTimeout('CloseModalPopup()', 4300);}}
function SellingPropositionInit() { }function SellingProposition_Return() {$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/SellingProposition.aspx?PropGuid=' + ___NotGuid, SellingProposition_ReturnInit, null);}function SellingProposition_ReturnInit(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');SellingPropositionInit();}function SellingProposition_DisplayReplyPopup() {$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/SellingProposition.aspx?PropGuid=' + ___NotGuid + "&State=Reply", SellingProposition_DisplayReplyPopupInit, null);}function SellingProposition_DisplayReplyPopupInit(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');InitWaterMark('MessageTextArea');}function SellingProposition_SendMessage(OwnerGuid, AnnounceGuid) {_SendAnnounceMessageOwnerGuid = OwnerGuid;_SendAnnounceMessageAnnounceGuid = AnnounceGuid;SendAnnounceSendMessage();}function SellingProposition_DisplayRefusePopup() {$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/SellingProposition.aspx?PropGuid=' + ___NotGuid + "&State=RefuseProposition", SellingProposition_DisplayRefusePopupInit, null);}function SellingProposition_DisplayRefusePopupInit(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');InitWaterMark('tbRefuseMessage');}function SellingProposition_RefuseScreen_UnCheckAll() {$('Reason_0').checked = '';$('Reason_1').checked = '';$('Reason_2').checked = '';$('Reason_3').checked = '';$('Reason_4').checked = '';}function GetRefuseReasonID() {if ($('Reason_0').checked) {return 0;}if ($('Reason_1').checked) {return 1;}if ($('Reason_2').checked) {return 2;}if ($('Reason_3').checked) {return 3;}if ($('Reason_4').checked) {return 4;}return 0;}function SellingProposition_Refuse(NotSellingPropositionGuid) {var Message = '';if (IsWaterMarkEntrySet('tbRefuseMessage')) {if ($('tbRefuseMessage').value.lenght > 2048) {MyAlert("Refuser cette proposition", "Votre message est trop long.", null);$('btRefuse').removeAttribute('disabled');return;}else {Message = HTMLEncode($('tbRefuseMessage').value);}}postData = "RefuseReasonID=" + GetRefuseReasonID();postData += "\nMessage=" + Message;AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=RefuseSellingProposition&NotGuid=' + NotSellingPropositionGuid,postData, SellingProposition_RefuseCallBack, [NotSellingPropositionGuid]);}function SellingProposition_RefuseCallBack(response, params) {if (response == 'Success') {$('WarningMessage').style.display = '';setTimeout("SellingProposition_Refuse_Success('"+ params[0] +"')", 2300);}else {MyAlert("Refuser cette proposition", "Une erreur est survenue.", null);}}function SellingProposition_Refuse_Success(NotGuid) {CloseModalPopup();RemoveActiveNotifications(NotGuid);}function SellingProposition_Ignore(NotGuid){CloseModalPopup();AchiveNotification(NotGuid, "SellingProposition");}function SellingProposition_Accept() {$('AjaxLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/SellingProposition.aspx?PropGuid=' + ___NotGuid + "&State=AccesptProposition", SellingProposition_AcceptCallBack, null);}function SellingProposition_AcceptCallBack(response, params) {$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');}function SellingProposition_GoCheckOut(SellingPropositionGuid) {$('AjaxLoading').style.display = '';postData = '';AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=AcceptSellingPropositionAndCheckOut&NotGuid=' + SellingPropositionGuid,postData, SellingProposition_GoCheckOutCallBack, [SellingPropositionGuid]);}function SellingProposition_GoCheckOutCallBack(response, params) {if (response != "Error") {parent.location = response;}else {$('AjaxLoading').style.display = 'none';MyAlert('', '', CloseModalPopup);}}function NotificationsIngnoreSellingProposition(NotSellingPropositionGuid, SellerGuid) {$('AjaxNotificationLoading').style.display = '';postData = "SellerGuid=" + SellerGuid;postData += "\nRefuseReasonID=0";postData += "\nMessage=NoMessage";AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=RefuseSellingProposition&NotGuid=' + NotSellingPropositionGuid,postData, NotificationsArchiveMessageCallBack, [NotSellingPropositionGuid]);}function NotificationsArchiveMessage(NotMessageGuid) {$('AjaxNotificationLoading').style.display = '';postData = "";AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=ArchiveMessageNotification&NotGuid=' + NotMessageGuid,postData, NotificationsArchiveMessageCallBack, [NotMessageGuid]);}function NotificationsArchiveMessageCallBack(response, params) {$('AjaxNotificationLoading').style.display = 'none';RemoveActiveNotifications(params[0]);}function SendRate(NotRateGuid) {rate = $('RatingComponent_TheRate').value;comment = (IsWaterMarkEntrySet('RateComment') ? HTMLEncode($('RateComment').value) : '');postData = "Comment=" + comment;postData += "\nRate=" + rate;$('AjaxLoading').style.display = '';AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=SendRating&NotGuid=' + NotRateGuid,postData, SendRateCallBack, [NotRateGuid]);}function ArchiveReceivedRating(NotGuid) {$('AjaxNotificationLoading').style.display = '';postData = "";AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=ArchiveRating&NotGuid=' + NotGuid,postData, ArchiveReceivedRatingCallBack, [NotGuid]);}function ArchiveReceivedRatingCallBack(response, params) {$('AjaxNotificationLoading').style.display = 'none';RemoveActiveNotifications(params[0]);}function CheckRefuseRadioButton(ClickedInput) {inputs = $('radioList').getElementsByTagName('input');for (i = 0; i < inputs.length; i++) {inputs[i].checked = '';}ClickedInput.setAttribute('checked', 'checked');}var __PageNo = 1;function GetNotifications() {document.write('<div id="MyNotificationListBlx"><div style="padding:3px 20px 0px 20px;" class="NotifColorTitle"><div id="AjaxNotificationLoading" style="float:left;padding:2px 12px 2px 2px;"><img src="http://cms.womzone.com/_global/Css/Popup/Loading.gif" alt="Patientez..." /></div><h3>Vérifications des nouvelles notifications en cours. Veuillez patienter.</h3></div></div>');AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/MyWomzone/NotificationsList.aspx", InitMyNotificationList, null);}function GetNotificationsV2() {AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/MyWomzone/NotificationsList.aspx", InitMyNotificationList, null);}function ChangeNotificationPage(no) {__PageNo = no;if ($('AjaxNotificationLoading') != null) {$('AjaxNotificationLoading').style.display = '';}AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/MyWomzone/NotificationsList.aspx?PageNo=" + no, InitMyNotificationList, null);}function InitMyNotificationList(response, params) {$('MyNotificationListBlx').innerHTML = response;$('AjaxNotificationLoading').style.display = 'none';}function RemoveActiveNotifications(NotGuid) {if ($('AjaxNotificationLoading') != null) {$('AjaxNotificationLoading').style.display = '';}MyRemoveNot(NotGuid, 100);}function ReduceDivHeight(NotGuid, height) {height -= 12;if (height <= 0) {ChangeNotificationPage(__PageNo);return;}$('NotificationBlk_' + NotGuid).style.height = height + 'px';setTimeout('ReduceDivHeight(\'' + NotGuid + '\', ' + height + ')', 30);}function MyRemoveNot(NotGuid, opacity) {opacity -= 25;if (opacity <= 0) {ChangeDivOpacity('NotificationBlk_' + NotGuid, 0);ReduceDivHeight(NotGuid, $('NotificationBlk_' + NotGuid).offsetHeight);return;}ChangeDivOpacity('NotificationBlk_' + NotGuid, opacity);setTimeout('MyRemoveNot(\'' + NotGuid + '\', ' + opacity + ')', 100);}var ___NotGuid = '';var ___NotType = '';function ShowDetailNotificationPopup(NotGuid, NotType) {___NotGuid = NotGuid;___NotType = NotType;if ($('AjaxNotificationLoading') != null) {$('AjaxNotificationLoading').style.display = '';}MyModalPopup('LOCAL::AjaxPages/AnnounceDetail/CheckOutFrame.htm', InitNotificationPopup);}function InitNotificationPopup() {if ($('AjaxNotificationLoading') != null) {$('AjaxNotificationLoading').style.display = 'none';}SuroundWithPopup('ThisPopup');if ($('AjaxLoading') != null) {$('AjaxLoading').style.display = '';}AjaxHttpGet(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/' + ___NotType + '.aspx?PropGuid=' + ___NotGuid, InitNotificationPopupCallBack, null);}function InitNotificationPopupCallBack(response, params) {if ($('AjaxNotificationLoading') != null) {$('AjaxNotificationLoading').style.display = 'none';}$('ThisPopup').innerHTML = response;SuroundWithPopup('ThisPopup');switch (___NotType) {case 'AskingInformation' : AskingInformationInit(); break;case 'RateReceived': RateReceivedInit(); break;case 'RateToSend': RateToSendInit(); break;case 'SellingProposition': SellingPropositionInit(); break;default: break;}}function AchiveNotification(NotGuid, NotType) {if ($('AjaxNotificationLoading') != null) {$('AjaxNotificationLoading').style.display = '';}postData = "";AjaxHttpPost(__CONT__URL_FRONT + 'AjaxPages/MyWomzone/Notifications/Action.aspx?Action=ArchiveNotification&NotGuid=' + NotGuid + "&NotType=" + NotType,postData, AchiveNotificationCallBack, [NotGuid]);}function AchiveNotificationCallBack(response, params) {if ($('AjaxNotificationLoading') != null) {$('AjaxNotificationLoading').style.display = 'none';}RemoveActiveNotifications(params[0]);}
var __MessPageNo = 1;var __messageSearchTxt = '';var __MessageFilter = 'Inbox';var __MessageCacheDisable = false;function ChangeMessagePage(MessPageNo) {AnchorNavigation('Messages/?PageNo=' + __MessPageNo + '&Filter=' + __MessageFilter + '&SearchStr=' + escape(__messageSearchTxt));}function GetMessages() {__MessageCacheDisable = true;dhtmlHistory.add('WzPage:Inbox', '#MailBoxList-TopMailboxList-AjaxPages/MyWomzone/MessagesList.aspx?PageNo=1&Filter=Inbox&EnableCaching=1&SearchStr=');displayLocation('Inbox', '#MyMessagesListBlx-TopMailboxList-AjaxPages/MyWomzone/MessagesList.aspx?PageNo=1&Filter=Inbox&EnableCaching=1&SearchStr=');}function InitMyMessagesList(response, params) {$('SubPage').innerHTML = response;InitMessageList();}function InitMessageList() {$('MyMessagesListBlx').onclick = hideActionMenu;$('AjaxMessageLoading').style.display = 'none';if ($('tbSearchMsg').value.length > 0)$('tbSearchMsg').focus();__MessageCacheDisable = false;}function SelectAllMessage() {allInput = $('MailBoxList').getElementsByTagName("input");for (i = 0; i < allInput.length; i++) {if (allInput[i].type == 'checkbox') {if ($('AllChecked').checked) {allInput[i].checked = true;}else {allInput[i].checked = false;}}}}blk = false;function showActionMenu() {blk = true;$('ReadOrNotReadActionList').style.display = 'block';}function hideActionMenu() {if (!blk && $('ReadOrNotReadActionList') != null) {$('ReadOrNotReadActionList').style.display = 'none';}blk = false;}function SearchInMessage(e) {var keynum;if (window.event){keynum = e.keyCode;}else if (e.which){keynum = e.which;}if (keynum == 13) {__messageSearchTxt = $('tbSearchMsg').value;var theUrl = eval($('ReloadUrlSpan').innerHTML);__MessageFilter = theUrl.Filter;ChangeMessagePage(1);}}function MessageApplyFilter(filter) {__MessageFilter = filter;ChangeMessagePage(1);}function MessageDisplayDetails(MessGuid) {alert("yep2");$('AjaxMessageLoading').style.display = '';AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/AMessage.aspx?MGuid=" + MessGuid, InitMessageDisplayDetails, null);}function InitMessageDisplayDetails(response, params) {$('AjaxMessageLoading').style.display = 'none';$('AllMessageListBx').style.display = 'none';$('AMessageBx').style.display = '';$('AMessageBx').innerHTML = response;if ($('ReplayMessageTbx') != null)InitWaterMark('ReplayMessageTbx');}function BackToMessageList() {__MessageCacheDisable = true;ChangeMessagePage(__MessPageNo);}function GetSelectedMessageGuid() {postData = "";allInput = $('MailBoxList').getElementsByTagName("input");for (i = 0; i < allInput.length; i++) {if (allInput[i].type == 'checkbox') {if (allInput[i].checked && allInput[i].id != "AllChecked") {if (postData.length > 0) { postData += '&'; }postData += allInput[i].id;}}}return postData;}function DeleteMessages() {str = GetSelectedMessageGuid();if (str.length == 0) {MyAlert("Messages", "Vous devez sélectionner au moins un message.", null);} else {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + GetSelectedMessageGuid();AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=Delete", postData, ReloadMessageList, null);}}function ReloadMessageList(response, params) {url = __CONT__URL_FRONT + "AjaxPages/NbUnreadMessages.aspx?Tmp=" + Math.floor(Math.random() * 100000000000000000);IncludeHTML(url, "BbUnreadMessage2");$('AjaxMessageLoading').style.display = '';var theUrl = eval($('ReloadUrlSpan').innerHTML);__messageSearchTxt = unescape(theUrl.SearchStr);__MessageFilter = theUrl.Filter;ChangeMessagePage(theUrl.PageNo);}function RestoreMessages() {str = GetSelectedMessageGuid();if (str.length == 0) {MyAlert("Messages", "Vous devez sélectionner au moins un message.", null);} else {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + GetSelectedMessageGuid();AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=Restore", postData, ReloadMessageList, null);}}function BackMessageList(response, params) {history.back();}function RestoreAMessage(MessageGuid) {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + MessageGuid;AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=Restore", postData, BackMessageList, null);}function DeleteAMessage(MessageGuid) {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + MessageGuid;AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=Delete", postData, BackMessageList, null);}function SetAsNotReadAMessage(MessageGuid) {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + MessageGuid;AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=SetAsUnread", postData, BackMessageList, null);}function SetAsReadAMessage(MessageGuid) {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + MessageGuid;AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=SetAsRead", postData, BackMessageList, null);}function SetMessagesUnread() {str = GetSelectedMessageGuid();if (str.length == 0) {MyAlert("Messages", "Vous devez sélectionner au moins un message.", null);} else {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + GetSelectedMessageGuid();AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=SetAsUnread", postData, ReloadMessageList, null);}}function SetMessagesRead() {str = GetSelectedMessageGuid();if (str.length == 0) {MyAlert("Messages", "Vous devez sélectionner au moins un message.", null);} else {$('AjaxMessageLoading').style.display = '';postData = "SelectedMessages=" + GetSelectedMessageGuid();AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=SetAsRead", postData, ReloadMessageList, null);}}function MessageCountNbCharInReply() {if (IsWaterMarkEntrySet('ReplayMessageTbx')) {cnt = $('ReplayMessageTbx').value.length;if (cnt > 0) {$('SendReplyButton').removeAttribute('disabled');}else {$('SendReplyButton').setAttribute('disabled', 'disabled');}}else {$('SendReplyButton').setAttribute('disabled', 'disabled');}}function MessageReplyToMessage(MessageGuid) {if ($('ReplayMessageTbx').value.lenght < 1) {MyAlert("Mesagerie", "Saisissez un message.", null);return;}$('AjaxMessageLoading').style.display = '';postData = "MessageGuid=" + MessageGuid;postData += "\nMessage=" + HTMLEncode($('ReplayMessageTbx').value);AjaxHttpPost(__CONT__URL_FRONT + "AjaxPages/MyWomzone/Messages/Actions.aspx?Action=Reply", postData, MessageReplyToMessageCallBack, null);}function MessageReplyToMessageCallBack(response, params) {$('AjaxMessageLoading').style.display = 'none';if (response != "Success") {MyAlert("Messagerie", "Une erreur est survenue. Votre message n'a pas été envoyé.", null);}else {$('ReplayMessageTbx').setAttribute('disabled', 'disabled');$('SendReplyButton').setAttribute('disabled', 'disabled');MyAlert("Messagerie", "Votre message a bien été envoyé.", null);}}
var __URL_POST_PublicationAutoResponse = __CONT__URL_FRONT + 'AjaxPages/Gadget/Publication/AutoResponse.aspx';function OpenAutoResponsePopUp() {if (ExtendLock || SuspendLock) return;var url = "LOCAL::Pages/MyWomzone/AutoResponsePopUp.aspx?AnnounceGuid=" + AnnounceGuidAR;MyModalPopup(url, ARPopUpInit);}function ARPopUpInit() {SuroundWithPopup('ThisPopup');setTimeout(InitAutoResponsePopUp, 500);}function myUnescape(response) {var result = response;while (result.indexOf("%25") != -1) {result = unescape(result);}return unescape(result);}function RefreshPageAutoResponseLink() {if (IsResponseActive) {$("ModifAutoResponse").style.display = "block";$("EnableAutoResponse").style.display = "none";} else {$("ModifAutoResponse").style.display = "none";$("EnableAutoResponse").style.display = "block";}}function InitAutoResponsePopUp() {eval($('ScriptToEval').innerHTML);$("ResponseText").value = HTMLDecode(myUnescape(ResponseText));if (IsNewResponse) {OnNewResponse();$("AutoResponseStatus").innerHTML = "La livraison automatique est <b>désactivée</b>.";} else {OnExistingResponse();if (IsResponseActive) {$("AutoResponseStatus").innerHTML = "La livraison automatique est <b>activée</b>.";}else {$("AutoResponseStatus").innerHTML = "La livraison automatique est <b>désactivée</b>.";}}}function showButton(btId) {$(btId).style.display = "block";}function hideButton(btId) {$(btId).style.display = "none";}function disableMenu() {$("DeleteResponse").disabled = true;$("EnableResponse").disabled = true;$("EditResponse").disabled = true;$("DisableResponse").disabled = true;$("CloseAutoResponsePopUp").disabled = true;}function enableMenu() {$("DeleteResponse").disabled = false;$("EnableResponse").disabled = false;$("EditResponse").disabled = false;$("DisableResponse").disabled = false;$("CloseAutoResponsePopUp").disabled = false;}function disableEditMenu() {$("SaveResponse").disabled = true;$("CancelEdit").disabled = true;$("CloseAutoResponsePopUp").disabled = true;}function enableEditMenu() {$("SaveResponse").disabled = false;$("CancelEdit").disabled = false;$("CloseAutoResponsePopUp").disabled = false;}function OnNewResponse() {showButton("EnableResponse");hideButton("EditResponse");hideButton("DisableResponse");hideButton("DeleteResponse");hideButton("SaveResponse");hideButton("CancelEdit");$("ResponseText").disabled = false;$("ResponseText").value = "";}function OnExistingResponse() {if (IsResponseActive) {hideButton("EnableResponse");showButton("DisableResponse");}else {showButton("EnableResponse");hideButton("DisableResponse");}showButton("EditResponse");showButton("DeleteResponse");hideButton("SaveResponse");hideButton("CancelEdit");$("ResponseText").disabled = true;}function OnEditResponse() {hideButton("EnableResponse");hideButton("EditResponse");hideButton("DisableResponse");hideButton("DeleteResponse");showButton("SaveResponse");showButton("CancelEdit");$("ResponseText").disabled = false;}function OnCancelEdit() {$("ResponseText").value = myUnescape(ResponseText);OnExistingResponse();}function OnSaveEdit() {if ($("ResponseText").value.length >= 10) {ShowAjaxLoading();var RegEx = /\n/gi;var ResponseTextToSend = HTMLEncode($("ResponseText").value.replace(RegEx, "µµ"));disableEditMenu();AjaxHttpPost(__URL_POST_PublicationAutoResponse, "Type=Save\nAR=" + ResponseGuidAR + "\nText=" + ResponseTextToSend , OnSaveCallBack, null);} else {$("AutoResponseStatus").innerHTML = "<b>Votre réponse est trop courte</b>.";}}function OnSaveCallBack(text, params) {HideAjaxLoading();enableEditMenu();ResponseText = $("ResponseText").value;OnExistingResponse();RefreshPageAutoResponseLink();}function OnDelete() {ShowAjaxLoading();disableMenu();AjaxHttpPost(__URL_POST_PublicationAutoResponse, "Type=Remove\nAR=" + ResponseGuidAR, OnDeleteCallBack, null);}function OnDeleteCallBack(text, params) {enableMenu();HideAjaxLoading();$("AutoResponseStatus").innerHTML = "La livraison automatique est <b>désactivée</b>.";IsNewResponse = true;IsResponseActive = false;OnNewResponse();RefreshPageAutoResponseLink();}function OnEnable() {if ($("ResponseText").value.length >= 10) {disableMenu();if (IsNewResponse) {var RegEx = /\n/gi;var ResponseTextToSend = HTMLEncode($("ResponseText").value.replace(RegEx, "µµ"));AjaxHttpPost(__URL_POST_PublicationAutoResponse, "Type=New\nA=" + AnnounceGuidAR + "\nText=" + ResponseTextToSend, OnNewCallBack, null);} else {AjaxHttpPost(__URL_POST_PublicationAutoResponse, "Type=Enable\nA=" + AnnounceGuidAR + "\nAR=" + ResponseGuidAR, OnEnableCallBack, null);}} else {$("AutoResponseStatus").innerHTML = "<b>Votre réponse est trop courte</b>.";}}function OnNewCallBack(text, params) {HideAjaxLoading();enableMenu();IsNewResponse = false;IsResponseActive = true;ResponseText = $("ResponseText").value;OnExistingResponse();$("AutoResponseStatus").innerHTML = "La livraison automatique est <b>activée</b>.";RefreshPageAutoResponseLink();ResponseGuidAR = text;}function OnEnableCallBack() {HideAjaxLoading();enableMenu();IsResponseActive = true;OnExistingResponse();$("AutoResponseStatus").innerHTML = "La livraison automatique est <b>activée</b>.";RefreshPageAutoResponseLink();}function OnDisable() {ShowAjaxLoading();disableMenu();AjaxHttpPost(__URL_POST_PublicationAutoResponse, "Type=Disable\nA=" + AnnounceGuidAR, OnDisableCallBack, null);}function OnDisableCallBack() {HideAjaxLoading();enableMenu();IsResponseActive = false;OnExistingResponse();$("AutoResponseStatus").innerHTML = "La livraison automatique est <b>désactivée</b>.";RefreshPageAutoResponseLink();}
var ConsultationTimeStamp = 0;function SailendraConsultation(AnnounceGuid) {if (typeof (__CONF_USE_SAILENDRA) != "undefined" && __CONF_USE_SAILENDRA == 'True') {StartAnnounceConsultation(AnnounceGuid);AttachWindowOnUnloadCall(function() { EndAnnounceConsultation(AnnounceGuid); });if (/chrome/.test(navigator.userAgent.toLowerCase())) {window.onbeforeunload = function() {var duration = Math.floor((new Date()).getTime()) - ConsultationTimeStamp;var url = __CONT__URL_FRONT + "AjaxPages/Sailendra/SailendraWS.aspx?a=EndConsultation&AnnounceGuid=" + AnnounceGuid + "&TimeStamp=" + ConsultationTimeStamp + "&Duration=" + duration;var Ajax = new XMLHttpRequest();Ajax.open("GET", url, false);Ajax.send(null);}}}}function StartAnnounceConsultation(AnnounceGuid) {ConsultationTimeStamp = Math.floor((new Date()).getTime());AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/Sailendra/SailendraWS.aspx?a=Consultation&AnnounceGuid=" + AnnounceGuid + "&TimeStamp=" + ConsultationTimeStamp, function(response) {if (response != "Ok") {window.setTimeout("StartAnnounceConsultation('" + AnnounceGuid + "');", 1000);}}, []);}function EndAnnounceConsultation(AnnounceGuid) {var duration = Math.floor((new Date()).getTime()) - ConsultationTimeStamp;AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/Sailendra/SailendraWS.aspx?a=EndConsultation&AnnounceGuid=" + AnnounceGuid + "&TimeStamp=" + ConsultationTimeStamp + "&Duration=" + duration, function() { }, []);}var RecoTable = new Array();function GetReco(RecoPlace, Count) {AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/Sailendra/SailendraWS.aspx?a=getReco&Count=" + Count + "&RecoPlace=" + RecoPlace + "&Offset=" + ((RecoTable[RecoPlace] == null) ? 0 : RecoTable[RecoPlace]), GetRecoCB, [RecoPlace]);if (RecoTable[RecoPlace] != null) {RecoTable[RecoPlace] += Count;} else {RecoTable[RecoPlace] = Count;}}function GetRecoCB(response, params) {if (response != "NotActivated") {$(params[0]).innerHTML += response;}}function SynchroSailendraId() {var SailendraId = getCookie('SailendraId');AjaxHttpGet(__CONT__URL_FRONT + "AjaxPages/Sailendra/SailendraWS.aspx?a=Synchro&CookieId=" + SailendraId, SynchroSailendraIdCB, []);}function SynchroSailendraIdCB(response) {setCookie('SailendraId', response, 30);}var __AnnouncePublicationWizard = null;function AnnouncePublicationWizardLoadInit(response, params) {window.eval(response);__AnnouncePublicationWizard = new AnnouncePublicationWizard();__AnnouncePublicationWizard.Init(params);}function AnnouncePublicationWizardLoad(Type, PreEnteredTitle, PreEnteredBody) {if (__AnnouncePublicationWizard == null) {var css_style = document.createElement("link");css_style.setAttribute("rel", "stylesheet");css_style.setAttribute("type", "text/css");css_style.setAttribute("href", 'http://cms.womzone.com/_global/_CSS/Publication.css');css_style.setAttribute("media", "screen");document.getElementsByTagName("head")[0].appendChild(css_style);AjaxHttpGet(__CONF__URL_MEDIA + 'Jscripts/Gadget/AnnouncePublicationWizard.js',AnnouncePublicationWizardLoadInit, [Type,PreEnteredTitle,PreEnteredBody]);}else {try{CloseModalPopup();}catch(e){}__AnnouncePublicationWizard.Init([Type, PreEnteredTitle, PreEnteredBody]);}}var MyMap = null;var TempMap = null;var TempMapDiv = null;function GMapLoadInit(response, Params) {if (MyMap) {TempMap = MyMap;if ($("map")) {$("map").id = "TmpMap";}}window.eval(response);MyMap = new WZGmap();var LocationsArray = Params[0];var APIKey = Params[1];var Type = Params[2];MyMap.initMapGadget(LocationsArray,APIKey,Type);}function GMapTryToReload() {if (TempMap) {try {MyMap = TempMap;$("map").id = "OtherMapId";$("TmpMap").id = "map";}catch(e){}}}function GMapLoad(LocationsArray, APIKey, Type) {AjaxHttpGet(__CONF__URL_MEDIA + 'Jscripts/Gadget/GMap2.js', GMapLoadInit, [LocationsArray, APIKey, Type]);}function ExaGMapLoad() {AjaxHttpGet(__CONF__URL_MEDIA + 'Jscripts/Gadget/ExaleadGMap.js', GMapLoadInit, [null, __CONF__GMAP_APIKEY,null]);}