/*  MLMLeadSystemPRO(R) Website Javascript
 *  (c) 2008-2010 Upward Enterprises, LLC - http://www.mlmleadsystempro.com/
 *  
 *  Distribution of this script is strictly prohibited. 
 *--------------------------------------------------------------------------*/
function generateRandom(){return parseInt(Math.random()*99999999)}function previewSite(a){window.open(a,"MLMLeadSystemProPreview","toolbar=no,location=no,navigation=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=700,height=650")}function previewSiteWide(a){window.open(a,"MLMLeadSystemProPreview","toolbar=no,location=no,navigation=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=850,height=650")}function previewSiteSized(c,b,a){b+=50;a+=50;window.open(c,"MLMLeadSystemProPreview","toolbar=no,location=no,navigation=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width="+b+",height="+a)}function checkUIErrorMessages(a,e){$j("#"+e+"Content .ui-state-error").removeClass("ui-state-error");$j("#"+e+"Content .inputError").removeClass("inputError");$j("#"+e+"Content .dialogMsgCls").html("");if(a.message&&a.message.length){$j("#"+e+"Content #"+e+"Message").html(a.message);$j("#"+e+"Content #"+e+"Message").addClass("ui-state-error")}if(a.err){for(var b in a.err){var c=a.err[b];var d=$j("#"+e+"Content #"+c.id+"Msg");if(d){d.html(c.msg);d.addClass("ui-state-error");$j("#"+e+"Content #"+c.id).addClass("inputError")}else{$j("#"+e+"Content #"+e+"Message").html($j("#"+e+"Content #"+e+"Message").html()+"<br />"+c.msg)}}}}function clearUIErrorMessages(a){$j("#"+a+"Content .ui-state-error").removeClass("ui-state-error");$j("#"+a+"Content .inputError").removeClass("inputError");$j("#"+a+"Content .dialogMsgCls").html("")}var editorArr=new Array();var editorOpenID=null;function showTxtEditor(b){try{editorArr[b]=CKEDITOR.replace(b);editorOpenID=b}catch(a){}}function hideTxtEditor(a){try{if(editorArr[a]){editorArr[a].destroy();editorArr[a]=null;editorOpenID=null}}catch(b){}}function hideAllTxtEditors(){for(var a in editorArr){try{if(editorArr[a]){editorArr[a].destroy();editorArr[a]=null}}catch(b){}}editorArr=new Array();editorOpenID=null}function getTxtEditorData(a){try{if(editorArr[a]){return editorArr[a].getData()}}catch(b){}return""}function setTxtEditorData(a,b){try{if(editorArr[a]){return editorArr[a].setData(b)}}catch(c){}};
