  function doQuickX(f) {
    f.sym.value = f.sym.value.replace(' ', '');
    if (f.sym.value.length == 0) {
      alert('Please enter a symbol.');
      return false;
    }

    var what = 'quote';
    for (var i = 0; i < f.what.length; i++) {
      if (f.what[i].checked)
        what = f.what[i].value;
    }

    // The following line may need to be edited, to reflect the proper
    // page on your server server .....
    var u = 'quotesandcharts.php?option=barcharts';
                   // Edit this line. Add in the page that
                                   // includes the master.js script. For example,
                                   // if that page is called http://www.mysite.com/abc.html,
                                   // then the line should be:
                                   // var u = 'http://www.mysite.com/abc.html?sym=' + f.sym.value

    if (what == 'quote') {
      if (isNaN(parseInt(f.sym.value.substring(f.sym.value.length - 1, f.sym.value.length)))) {
        u = u + '&page=quote' + '&sym=' + f.sym.value;
      }
      else {
        u = u + '&page=quote2' + '&sym=' + f.sym.value;
      }
    }
    else if (what == 'chart')
      u = u + '&page=chart' + '&sym=' + f.sym.value;
    else if (what == 'option')
      u = u + '&page=optqte&mode=i' + '&sym=' + f.sym.value;
    else if (what == 'techrept') {
      if(f.sym.value.length < 4) { alert("For Techicals symbol must be four characters long"); return false; }
      else                       { u = u + '&page=techrept' + '&sym=' + f.sym.value;  }
    }

// The next two lines are important since here you can choose to have the answer page, that being either chart,
// quote, options, or technical page open in a new pop-up browser or have the page open in the current window.
// The default is set to pop-up window !!!!!

//  window.open(u);

    document.location = u;
    return false;
  }

if (document.images){
 dowon = new Image(); dowon.src = "images/btnDowOn.gif"; nasdaqon = new Image(); nasdaqon.src = "images/btnNasdaqOn.gif"; dowoff = new Image(); dowoff.src = "images/btnDowOff.gif"; nasdaqoff = new Image(); nasdaqoff.src = "images/btnNasdaqOff.gif"; dowchart = new Image(); dowchart.src = "http://chart.neural.com/servlet/GIFChart?sym1=$INDU&width=170&height=100&dres=MIN&plottype=MOUNTAIN&csym1a=336699&cbcku=eeeeee&cbckl=eeeeee&cbckd=eeeeee&cbckg=003366&ctxtu=eeeeee&ctxtd=eeeeee&ctxtl=eeeeee&texttype=1&mode=1&cind1a=red&source=MYDISBROK&ignore=122000336";
 nasdaqchart = new Image(); nasdaqchart.src = "http://chart.neural.com/servlet/GIFChart?sym1=$COMPQ&width=170&height=100&dres=MIN&plottype=MOUNTAIN&csym1a=003366&cbcku=eeeeee&cbckl=eeeeee&cbckd=eeeeee&cbckg=336699&ctxtu=eeeeee&ctxtd=eeeeee&ctxtl=eeeeee&texttype=1&mode=1&cind1a=red&source=MYDISBROK&ignore=122000336";
 dowchartoff = new Image(); dowchartoff.src = "http://chart.neural.com/servlet/GIFChart?sym1=$INDU&width=170&height=100&dres=MIN&plottype=MOUNTAIN&csym1a=003366&cbcku=eeeeee&cbckl=eeeeee&cbckd=eeeeee&cbckg=336699&ctxtu=eeeeee&ctxtd=eeeeee&ctxtl=eeeeee&texttype=1&mode=1&cind1a=red&source=MYDISBROK&ignore=122000336";
 nasdaqchartoff = new Image(); nasdaqchartoff.src = "http://chart.neural.com/servlet/GIFChart?sym1=$COMPQ&width=170&height=100&dres=MIN&plottype=MOUNTAIN&csym1a=003366&cbcku=eeeeee&cbckl=eeeeee&cbckd=eeeeee&cbckg=336699&ctxtu=eeeeee&ctxtd=eeeeee&ctxtl=eeeeee&texttype=1&mode=1&cind1a=red&source=MYDISBROK&ignore=122000336";
 }
 function imgOn(num) {
 if(num==1){
 document.dow.src=dowon.src; document.nasdaq.src=nasdaqoff.src; document.chart.src=dowchart.src;
 }
 else if(num==2){
 document.nasdaq.src=nasdaqon.src; document.dow.src=dowoff.src; document.chart.src=nasdaqchart.src
 }
 }
 function imgOff(num) {
 if(num==1){
 document.dow.src=dowoff.src; document.nasdaq.src=nasdaqon.src; document.chart.src=dowchartoff.src; }
 else if(num==2){
 document.nasdaq.src=nasdaqoff.src; document.dow.src=dowon.src; document.chart.src=nasdaqchartoff.src
 }
 }
 
function openPopup(url) {
 window.open(url, "popup_id", "scrollbars,resizable,width=500,height=400");
 return false;
}
 

function switchTab(aTab, dTab){
	
	$("#tab"+aTab).addClass("active");
	$("#tab"+dTab).removeClass("active");
	
	$("#content"+aTab).removeClass("invisible");
	$("#content"+aTab).addClass("visible");
	
	$("#content"+dTab).removeClass("visible");
	$("#content"+dTab).addClass("invisible");
	
}

function mainmenu(){
	
	$(" #nav ul ").css({display: "none"}); // Opera Fix
	
	$(" #nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none", "z-index": "600000"}).show(400);
		$('.rotatorContent').css("z-index", "-100");
	},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
	});		
	
}

function calc_jumb(redirect){
	window.location = redirect;
}

$(document).ready(function() {
	
	mainmenu();
	
	$(".mForms").validate();
	
	$("li.menu_head").click(function(){
		//$(this).toggleClass('activeSideMenu').children("ul.menu_body").slideToggle(300).siblings("ul.menu_body").slideUp("slow");
       	//$(this).siblings().css({backgroundImage:"url(images/left.png)"});
	});
	
	
	
	//$('.currentMenu').bind('click');
	
	//$('.currentMenu').trigger('click');
		  
});
 


