﻿
	 
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;
}