var _imgPathTop="/securities/_images/";
var _varURL="/securities/";
function quickLaunch()
{
	var vSelection=document.getElementById("selQuickLaunch").value;
	var paramVal=document.getElementById("txtComp").value;
	
    if(vSelection=="getquotes")
    {
        if(paramVal.length==0)
        {
	      alert('Enter Company Name.');	 
	      document.getElementById("txtComp").focus();              
	      return false;
        }
        if(paramVal.length<3)
        {
	      alert('Enter minimum 3 starting characters of Company Name.');
	      document.getElementById("txtComp").focus();              	               
	      return false;
	    }
	}
	else if(vSelection=="mutualfund")
	{
	    if(paramVal.length==0)
        {
	      alert('Enter Fund Name.');	 
	      document.getElementById("txtComp").focus();              
	      return false;
        }
        if(paramVal.length<3)
        {
	      alert('Enter minimum 3 starting characters of Fund Name.');
	      document.getElementById("txtComp").focus();              	               
	      return false;
	    }
	}
	
	switch (vSelection)
	{
	  case "getquotes":
	  document.location.href=_varURL+"market/Live-Quotes/get-quote.aspx?compName="+paramVal;
	  return false;
				
	  case "mutualfund":
	  document.location.href=_varURL+"market/Live-Quotes/get-quote.aspx?FundCode="+paramVal;
	  return false;
		
	  case "":
	  break;
	} 
}

var str = "left=0,screenX=0,top=0,screenY=0";
if (window.screen) {
var ah = screen.availHeight;
var aw = screen.availWidth;
str += ",height=" + 0.95*ah;
str += ",innerHeight=" + 0.95*ah;
str += ",width=" + aw;
str += ",innerWidth=" + aw;
str += ",hotkeys=0,menubar=0,scrollbars=1";
str += ",status=yes";
} else {
str += ",resizable"; // so the user can resize the window manually
}
function launchFull(url, name) {
window.open(url, "_blank", str);
return;
}
var _tableGetQuotes;
var _url="https://trade.indiabulls.com/login/loginform.htm";
var _type="_blank";
var _TableTop="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0' height='15px'><tr class='top'><td width='0%' align='right'></td><td width='10%' align='left' style='width:35%'><a href='http://www.indiabulls.com'><img src='"+_imgPathTop+"home_icon.gif'  border='0' hspace='10' alt='www.indiabulls.com' />&nbsp;&nbsp; </a></td><td width='55%' align='right' class='top' style='width:40%'><span class='top'>Helpline :&nbsp;0124-4572444&nbsp; </span><a href='mailto:helpdesk@indiabulls.com' class='whitetext'>|&nbsp;&nbsp;helpdesk@indiabulls.com&nbsp;&nbsp;|</a></td><td width='0%' class='top'>&nbsp;</td><td width='11%' class='top' align='center'><a href='"+_varURL+"customercare/branch-locator.aspx' class='top'>Branch Locator</a></td><td width='18%' class='top' align='left'><a href='"+_varURL+"home/contactus.aspx' class='top'>|&nbsp;&nbsp;<strong>Open an Account</strong>  </a></td></tr></table>    </td></tr><tr><td><img src='"+_imgPathTop+"whitedot.jpg' width='100%' height='5' /></td></tr><tr><td class='bgmiddle'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='3%' height='75'><a href='"+_varURL+"default.htm'><img src='"+_imgPathTop+"logo11.gif' alt='Indiabulls Securities' border='0' /></a></td><td  valign='middle'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='395' height='57'><param name='movie' value='../_swf/Banner_top.swf'/><param name='quality' value='high' /><embed src='../_swf/Banner_top.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='395' height='57'></embed></object></td><td align='middle'><table border='0' align='left'><tr><td colspan='2' align='left'><select name='selQuickLaunch' id='selQuickLaunch' class='txtbox'><option value='getquotes'>Get Quotes</option><option value='mutualfund'>Get NAV</option></select></td></tr><tr><td><input type='text' ID='txtComp'name='txtComp' runat='server' class='txtbox' style='height:12px;width:80px;'MaxLength='15'/></td><td width='45%' align='left'><input type='image' name='imgbtn' src='"+ _varURL +"_images/go.gif' onclick='return quickLaunch();' /></td></tr><tr><td align='left' colspan='2'><a href='#'  class='bigheading' onClick='javascript:window.open(_url,_type,str);' title='Login to Internet Trading'>Login to Internet Trading</a></td></tr></table></td></tr></table></td></tr></table>";
document.write(_TableTop);
