function WizardParamPB70eb2d678b7a4daeb8f19827499977e0()
{
this.PB_Url='http://wizard.liveperson.com';
this.PB_kasambaUrl='http://www.liveperson.com';
this.PB_imageUrl='http://www.liveperson.com';
this.PB_Version='1.00';
this.PB_textBoxLength= WizardParam.PB_textBoxLength;
if (typeof(WizardParam.PB_params) == 'undefined') this.PB_params=''; else this.PB_params= WizardParam.PB_params;
this.PB_UniqeKey = "WizardParamPB70eb2d678b7a4daeb8f19827499977e0";
this.PB_ShortCodeUniqeKey = "PB70eb2d678b7a4daeb8f19827499977e0" ;
this.PB_PID='0';
this.PB_AID='0';
this.PB_AffliateID='';
if (typeof(WizardParam.PB_header) == 'undefined') this.PB_header='Have a Question? Ask Professional Experts!';else this.PB_header= WizardParam.PB_header;
if (typeof(WizardParam.PB_buttonColor) == 'undefined') this.PB_buttonColor='normal';else this.PB_buttonColor= WizardParam.PB_buttonColor;
if (typeof(WizardParam.PB_headerFontFamily) == 'undefined') this.PB_headerFontFamily='Arial';else this.PB_headerFontFamily= WizardParam.PB_headerFontFamily;
if (typeof(WizardParam.PB_backgroundColor) == 'undefined') this.PB_backgroundColor='E3F4FE';else this.PB_backgroundColor= WizardParam.PB_backgroundColor;
if (typeof(WizardParam.PB_headerBold) == 'undefined') this.PB_headerBold='normal';else this.PB_headerBold= WizardParam.PB_headerBold;
if (typeof(WizardParam.PB_textColor) == 'undefined') this.PB_textColor='000000';else this.PB_textColor= WizardParam.PB_textColor;
if (typeof(WizardParam.PB_headerFontSize) == 'undefined') this.PB_headerFontSize='13pt';else this.PB_headerFontSize= WizardParam.PB_headerFontSize;
if (typeof(WizardParam.PB_headerUnderline) == 'undefined') this.PB_headerUnderline='none';else this.PB_headerUnderline= WizardParam.PB_headerUnderline;
if (typeof(WizardParam.PB_headerItalic) == 'undefined') this.PB_headerItalic='normal';else this.PB_headerItalic= WizardParam.PB_headerItalic;
if (typeof(WizardParam.PB_borderColor) == 'undefined') this.PB_borderColor='7F9DB9';else this.PB_borderColor= WizardParam.PB_borderColor;
}

var WizardParam =  new PB70eb2d678b7a4daeb8f19827499977e0();
var ExpertGridObject_WizardParamPB70eb2d678b7a4daeb8f19827499977e0=  new WizardParamPB70eb2d678b7a4daeb8f19827499977e0();
function Start_WizardParamPB70eb2d678b7a4daeb8f19827499977e0(){if (typeof(ExpertGridObject_WizardParamPB70eb2d678b7a4daeb8f19827499977e0.PB_Disable_Render)== 'undefined') { document.write(kasamba_PB_Render(ExpertGridObject_WizardParamPB70eb2d678b7a4daeb8f19827499977e0));}}
 Start_WizardParamPB70eb2d678b7a4daeb8f19827499977e0();


function kasamba_PB_Render(PBObject)
{
    var kasamba_PB="";
    try
    {
        var numOfRows = PBObject.PB_textBoxLength/35;
        var UniqeKey = PBObject.PB_UniqeKey;
        var PB_ShortCodeUniqeKey =  PBObject.PB_ShortCodeUniqeKey;
        var url = PBObject.PB_kasambaUrl + "/?" + PBObject.PB_params;
            
        kasamba_PB = "<table cellpadding='1' cellspacing='1' style='border: 1px #" + PBObject.PB_borderColor + " solid; background-color:#" + PBObject.PB_backgroundColor +"; width: 300px; height: 250px;'>";
        kasamba_PB+= "<tr><td height='6'></td></tr><tr> <td align='center'>";
        kasamba_PB+= "<div style='font:" + PBObject.PB_headerItalic +" normal " + PBObject.PB_headerBold + " " + PBObject.PB_headerFontSize + " " + PBObject.PB_headerFontFamily + "; text-decoration:" + PBObject.PB_headerUnderline + "; color:#" + PBObject.PB_textColor +"';>";    
        kasamba_PB+= PBObject.PB_header.replace("’","&#8217;") + "</div></td></tr><tr><td height='6'></td> </tr>";    
        kasamba_PB+= "<tr> <td align='center'><textarea id=" + PB_ShortCodeUniqeKey + " onkeydown='return ismaxlength(this)' maxlength='"+ PBObject.PB_textBoxLength + "' name='kasamba_PB_txt' rows='" + numOfRows + "' cols='28' style='border: 1px #"+ PBObject.PB_borderColor +" solid;'></textarea></td></tr>";           
        kasamba_PB+= "<tr> <td align='center'><input id='kasamba_PB_btn' name='kasamba_PB_btn' onclick='javascript:kasamba_PBClickSubmit(" + UniqeKey + "," + PB_ShortCodeUniqeKey + ")' style='background-color: #" + PBObject.PB_buttonColor + "' type='button' value='Submit' /></td></tr>";       

        kasamba_PB+= "<tr><td height='4'></td></tr><tr><td align='center' colspan='2'><a title='LivePerson - Expert Advice, Live!' href='javascript:setHref(\"" + UniqeKey + "\",\"" + PB_ShortCodeUniqeKey + "\",\"" + url +"\")' style='text-decoration:none;font-family:Arial; font-size:7pt;color=#000000'>Powered by <span style='font-family:Arial Black; font-size:7pt;color=#000000'>LivePerson</span></a> </td></tr>";
        kasamba_PB+= "<tr><td height='6'></td></tr></table>";  
    }
    catch(e)
    {
        kasamba_PB="This code is either outside available parameters or has an error. Please verify the code and try again.";
    }
    return kasamba_PB;    
}

function kasamba_PBClickSubmit(UniqeKey,PB_ShortCodeUniqeKey)
{
    var strPBObject = "var PBObject = " + "new "+UniqeKey+"()";    
    var strWizardParam = "var WizardParam =  new " + PB_ShortCodeUniqeKey + "();\n"

    if (typeof(PBObject) == 'undefined')
    {
        eval (strWizardParam);       
        eval (strPBObject);  
    }
    
    var URL = PBObject.PB_kasambaUrl;
    var PARAMS = PBObject.PB_params;
    var destinationURL = "";
    try
    {   
        var kasamba_PB_txt = document.getElementById(PBObject.PB_ShortCodeUniqeKey);
        if (typeof(PARAMS)== 'undefined')
        {
            destinationURL = URL + "/post-request/default.aspx?twid=5&S1=" +   escape(kasamba_PB_txt.value) ;
            window.open(destinationURL);              
        }
        else
        {
            destinationURL = URL + "/post-request/default.aspx?twid=5&S1=" +   escape(kasamba_PB_txt.value) + "&" + PARAMS;
            
            if (PBObject.PB_AffliateID == 'CJ')
            {
                destinationURL = "http://www.jdoqocy.com/click-" + PBObject.PB_PID + "-" 
                     + PBObject.PB_AID + "?URL=" + escape(destinationURL) + "&accountRef=liveperson";
            } 
             
            window.open(destinationURL);              
        }
    }
    catch(e)
    {
        
    }
}  

function ismaxlength(obj)
{
    var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "";
    if (obj.getAttribute && obj.value.length>mlength)
    {
        obj.value=obj.value.substring(0,mlength)
    }
}

    function setHref(UniqeKey,PB_ShortCodeUniqeKey,url)
    {     
        var strPBObject = "var PBObject = " + "new "+UniqeKey+"()";    
        var strWizardParam = "var WizardParam =  new " + PB_ShortCodeUniqeKey + "();\n"
        
        if (typeof(PBObject) == 'undefined')
        {
            eval (strWizardParam);       
            eval (strPBObject);  
        }
          
        if (PBObject.PB_AffliateID == 'CJ')
        {
            url = "http://www.jdoqocy.com/click-" + PBObject.PB_PID + "-" 
                  + PBObject.PB_AID + "?URL=" + escape(url + "&accountRef=liveperson");
        }
                 
        window.open(url);  
    }




