/* IPR 2191 making 'Ask a Question' section Content Manageable */
	function newVirtualAssistantSubmit()
  {
    var strURL = document.getElementById("txtBox").value;     // Content Managed External Link
    strURL = strURL.replace(/&amp;/g, "&");
    var qString = document.getElementById("ask_a_question_text_box").value;
    var popupwindow_width = document.getElementById("popUp_width").value;
    var popupwindow_heigth = document.getElementById("popUp_height").value;
    
    var window_options = document.getElementById("window_options").value; 
    window_options = window_options.replace(/ /, "");
    popupwindow_width = popupwindow_width.replace(/ /, "");
    popupwindow_heigth = popupwindow_heigth.replace(/ /, "");
    
    qString = qString.replace(/'/, " ");
    qString = qString.replace(/&/, " ");
    qString = qString.replace(/@/, " ");
    
    // 'CMF_REPLACE' present in the External URL will be Replaced by text entered in the text box  
          if (qString != " ")
              strURL = strURL.replace(/CMF_REPLACE/, qString);
          else
              strURL = strURL.replace(/CMF_REPLACE/, "");
          
    if(popupwindow_width != '0' && popupwindow_heigth != '0')
    { 
      popWin(strURL,popupwindow_width, popupwindow_heigth);   // Option for Link opens in Pop up Windiw
    } 
    else
    {
      if (window_options == '_blank')
          window.open(strURL);                                // Option for Link opens in New Windiw
      else if (window_options == '_self')
          window.location.href = strURL;                      // Option for Link opens in Same Windiw
    }
    
	}
	
/* End of 2191 */