﻿                                                                                                                	 
function clickResearch()
{
    var symbol = document.getElementById("idsymbol").value;
    if(null == symbol || symbol.length < 1)
        symbol = "MSFT";
    
    window.location.href = "/fundamental/fundamental/stksymbol/"+symbol;
}
function clickCharts()
{
    var symbol = document.getElementById("idsymbol").value;
    if(null == symbol || symbol.length < 1)
        symbol = "MSFT";
    
    window.location.href = "/techchart/stksymbol/"+symbol;
}

function clickSearch()
{
    var searchString = document.getElementById("idSearchString").value;
    if(null == searchString || searchString.length < 1)
        searchString = "MSFT";
    
    window.location.href = "/article/searcharticles.aspx?q="+searchString;
}

function submitArticle()
{
    
    window.location.href = "/article/submitarticle.aspx";
}

function quoteBtnPressed(e)
{
var keycode;
var newUrl;
var symbol = document.getElementById("idsymbol").value;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   {
    if(null == symbol || symbol.length < 1)
        symbol = "MSFT";
    
    newUrl = "/symbol/"+symbol;
    
	setTimeout(function(){
    window.location = newUrl;}, 0);
    
   return false;
   }
else
   return true;
}

function increaseFontSize()
            {
                var art = document.getElementById('idArticle');
                var s = 12;
                if(art.style.fontSize)
                {
                    s = parseInt(art.style.fontSize.replace("px",""));
                }
                art.style.fontSize = (s+1)+"px";
            }
            function decreaseFontSize()
            {
                var art = document.getElementById('idArticle');
                var s = 12;
                if(art.style.fontSize)
                {
                    s = parseInt(art.style.fontSize.replace("px",""));
                }
                art.style.fontSize = (s-1)+"px";
            }
