var stopLoop;
		stopLoop=0;
		function DirectionDown()
				{marquee.direction="down";
				}
		function DirectionUp()
				{marquee.direction="Up";
				}
		function stopMarquee()
		{
			if (stopLoop==0)
			{
				marquee.stop();
				stopLoop=1;
			}
			else
			{
				marquee.start();
				stopLoop=0;
			}
		}

		function getBrowserName()
		{
			var browserName = trimAll(navigator.appName).toLowerCase();
			var browserAgent = trimAll(navigator.userAgent).toLowerCase(); 

			if(browserName == "netscape")
			{ 
				if(strFind(browserAgent,"mozilla") != -1)
				{ return "mozilla";}
				else
				{ return "netscape";}
			}
			else if(browserName == "microsoft internet explorer")
			{ return "ie";}
			else if(strFind(browserAgent,"opera") != -1)
			{ return "opera";}
			else
			{ return "unknown";}
		}

		function trimAll(sString) 
		{
			while (sString.substring(0,1) == ' ')
			{
				sString = sString.substring(1, sString.length);
			}
			while (sString.substring(sString.length-1, sString.length) == ' ')
			{
				sString = sString.substring(0,sString.length-1);
			}
			return sString;
		}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function mnu_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function mnu_swapImage() { //v3.0
  var i,j=0,x,a=mnu_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function openwindow(addr,windo,param) 
{ 
	window.open(addr,windo,param);
}
function mnuLoadMenus() {
  if (window.mnu_menu_01_0) return;

			
		//Public Sector -- left side panel
		window.mnu_menu_01_0 = new Menu("Public Sector",155,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#E2F3FF","#E2F3FF","left","middle",3,0,1000,-2,7,true,true,true,0,true,false);		
		mnu_menu_01_0.addMenuItem("<span class='cpse6a' style='cursor:hand'>The Maharatnas</span>","location='Maharatnas.asp'");
		mnu_menu_01_0.addMenuItem("<span class='cpse6a' style='cursor:hand'>The Navratnas</span>","location='2-2-1_Navratnas.asp'");
		mnu_menu_01_0.addMenuItem("<span class='cpse6a' style='cursor:hand'>The Miniratnas(I and II)</span>","location='2-2-2_Miniratna.asp'");
		mnu_menu_01_0.addMenuItem("<span class='cpse6a' style='cursor:hand'>Other Profit-making CPSEs</span>","location='2-2-3_profit.asp'");
		mnu_menu_01_0.addMenuItem("<span class='cpse6a' style='cursor:hand'>Master List of CPSEs</span>","location='2-2-4_Schedule.asp'");
		mnu_menu_01_0.addMenuItem("<span class='cpse6a' style='cursor:hand'>Master List of PSBs</span>","location='master_PSBs.asp'");
		mnu_menu_01_0.hideOnMouseOut=true;
		mnu_menu_01_0.childMenuIcon='images/arrows.gif';
		mnu_menu_01_0.bgColor='#FFFFFF';
		mnu_menu_01_0.menuBorder=1;
		mnu_menu_01_0.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_0.menuBorderBgColor='#FFFFFF';
		
				
		//Main menu of Disinvestment -- left side panel
		window.mnu_menu_01_1 = new Menu("Disinvestment",290,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#E2F3FF","#E2F3FF","left","middle",3,0,1000,-2,7,true,true,true,0,true,false);		
		mnu_menu_01_1.addMenuItem("<span class='cpse6a' style='cursor:hand'>Objectives and Importance of Disinvestment</span>","location='3_1_2_object.asp'");
		mnu_menu_01_1.addMenuItem("<span class='cpse6a' style='cursor:hand'>Different Approaches to Disinvestments</span>","location='3_1_3_different.asp'");		
		//mnu_menu_01_1.addMenuItem("<span class='cpse6a' style='cursor:hand'>Dilution of Government Stake through Fresh Capital Raising</span>","location='3_1_5_Dilution.asp'");
		//mnu_menu_01_1.addMenuItem(mnu_menu_01_1_1,"location='#'");					
		//mnu_menu_01_1.addMenuItem(mnu_menu_01_1_3,"location='#'");		
		//mnu_menu_01_1.addMenuItem(mnu_menu_01_1_6,"location='#'");
		mnu_menu_01_1.hideOnMouseOut=true;
		mnu_menu_01_1.childMenuIcon='images/arrows.gif';
		mnu_menu_01_1.bgColor='#FFFFFF';
		mnu_menu_01_1.menuBorder=1;
		mnu_menu_01_1.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_1.menuBorderBgColor='#FFFFFF';
		
		
		//Main menu of Publications -- left side panel
		window.mnu_menu_01_2 = new Menu("<span class=cpse6a>Publications</span>",140,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#E2F3FF","#E2F3FF","left","middle",3,0,1000,-2,7,true,true,true,0,true,false);
		mnu_menu_01_2.addMenuItem("<span class='cpse6a' style='cursor:hand'>Government Publications</span>","location='Gov_pub.asp'");
		mnu_menu_01_2.addMenuItem("<span class='cpse6a' style='cursor:hand'>Books on Disinvestment</span>","location='book_dis.asp'");		
		mnu_menu_01_2.hideOnMouseOut=true;
		mnu_menu_01_2.bgColor='#FFFFFF';
		mnu_menu_01_2.menuBorder=1;
		mnu_menu_01_2.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_2.menuBorderBgColor='#FFFFFF';

		//First sub menu of BSE and PSUs -- left side panel
	/*	window.mnu_menu_01_3_1 = new Menu("<span class='cpse6a' style='cursor:hand'>About BSE</span>",120,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#F4FBFF","#F4FBFF","left","top",3,1,1000,-2,7,true,true,true,0,true,false); 
		mnu_menu_01_3_1.addMenuItem("<span class='cpse6a'>Introduction to BSE</span>",false);			
		mnu_menu_01_3_1.bgColor='#FFFFFF';
		mnu_menu_01_3_1.menuBorder=1;
		mnu_menu_01_3_1.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_3_1.menuBorderBgColor='#FFFFFF';
	*/	
	
		//Main menu of BSE and PSUs -- left side panel
		window.mnu_menu_01_3 = new Menu("<span style='cursor:default'>BSE and PSUs</span>",160,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#E2F3FF","#E2F3FF","left","middle",3,0,1000,-2,7,true,true,true,0,true,false);
		//mnu_menu_01_3.addMenuItem(mnu_menu_01_3_1,"location='#'");
		mnu_menu_01_3.addMenuItem("<span class='cpse6a' style='cursor:hand'>Introduction to BSE</span>","location='Introduction_BSE.asp'");
		mnu_menu_01_3.addMenuItem("<span class='cpse6a' style='cursor:hand'>Benefits of Listing at BSE</span>","location='Ben_list_BSE.asp'");
		//mnu_menu_01_3.addMenuItem("<span class='cpse6a' style='cursor:hand'>PSUs Listed at BSE</span>","location='PSUListed_bse.asp'");
		//mnu_menu_01_3.addMenuItem("<span class='cpse6a'>Case Studies (of listed PSUs)</span>","location='#'");
		mnu_menu_01_3.addMenuItem("<span class='cpse6a' style='cursor:hand'>PSU CEO Conclaves</span>","location='con_obj.asp'");				
		//mnu_menu_01_3.addMenuItem(mnu_menu_01_3_2,"location='#'");
		mnu_menu_01_3.hideOnMouseOut=true;
		mnu_menu_01_3.bgColor='#FFFFFF';
		mnu_menu_01_3.menuBorder=1;
		mnu_menu_01_3.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_3.menuBorderBgColor='#FFFFFF';
 
        //Main menu of Disinvestments Data -- left side panel
		window.mnu_menu_01_4 = new Menu("<span style='cpse6a'>Disinvestment Data</span>",235,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#E2F3FF","#E2F3FF","left","middle",3,0,1000,-2,7,true,true,true,0,true,false);		
		mnu_menu_01_4.addMenuItem("<span class='cpse6a' style='cursor:hand'>Annual Table</span>","location='Annual_Table.asp'");		
		mnu_menu_01_4.addMenuItem("<span class='cpse6a' style='cursor:hand'>Master Database on all Past Disinvestments</span>","location='Master_Disinvestment.asp'");
		mnu_menu_01_4.addMenuItem("<span class='cpse6a' style='cursor:hand'>Type-wise Database on Disinvestments</span>","location='Type_wise_database.asp'");				
		mnu_menu_01_4.addMenuItem("<span class='cpse6a' style='cursor:hand'>Other Receipts from Disinvestment</span>","location='Receipts_Disinvest.asp'");
		mnu_menu_01_4.addMenuItem("<span class='cpse6a' style='cursor:hand'>SLPE Public Offers</span>","location='SLPE_PubOffer.asp'");
		//mnu_menu_01_4.addMenuItem("<span class='cpse6a' style='cursor:hand'>Disinvestments in Pipeline</span>","location='dis_pipeline.asp'");
		mnu_menu_01_4.addMenuItem("<span class='cpse6a' style='cursor:hand'>Timelines</span>","location='Timelines.asp'");				
		mnu_menu_01_4.hideOnMouseOut=true;
		mnu_menu_01_4.bgColor='#FFFFFF';
		mnu_menu_01_4.menuBorder=1;
		mnu_menu_01_4.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_4.menuBorderBgColor='#FFFFFF';
 
        //Main menu of Disinvestment in India -- left side panel
		window.mnu_menu_01_5 = new Menu("<span class='cpse6a' style='cursor:hand'>Disinvestment in India</span>",240,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#E2F3FF","#E2F3FF","left","middle",3,1,1000,-2,7,true,true,true,0,true,false); 
		mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>Objectives and Importance of Disinvestment</span>","location='3_1_2_object.asp'");
		mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>Different Approaches to Disinvestments</span>","location='3_1_3_different.asp'");		
		mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>Disinvestments-A Historical Perspective</span>","location='3_3_1_dis.asp'");
		mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>Policy on Public Sector and Disinvestment</span>","location='3_3_2_PolicyonPublic.asp'");
		//mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>Current Government Policy</span>","location='3_3_3_Policy.asp'");
		mnu_menu_01_5.addMenuItem("<span class=cpse6a style='cursor:hand'>Arguments against Disinvestment</span>","location='3_2_2_Arguments.asp'");
		mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>Is this the right time for Disinvestment?</span>","location='3_3_4_righttime.asp'");
		//mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>Is there enough depth in the market?</span>","location='enoughdepth.asp'");
		mnu_menu_01_5.addMenuItem("<span class='cpse6a' style='cursor:hand'>National Investment Fund</span>","location='3_3_5_National.asp'");
		mnu_menu_01_5.bgColor='#FFFFFF';
		mnu_menu_01_5.menuBorder=1;
		mnu_menu_01_5.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_5.menuBorderBgColor='#FFFFFF';
        
        //Main menu of International Experience -- left side panel
		window.mnu_menu_01_6 = new Menu("<span class='cpse6a' style='cursor:hand'>International Experience</span>",200,18,"Tahoma, Arial, Verdana, Times New Roman",11,"#000000","#000000","#E2F3FF","#E2F3FF","left","top",3,1,1000,-2,7,true,true,true,0,true,false); 
		mnu_menu_01_6.addMenuItem("<span class='cpse6a' style='cursor:hand'>International Models of Disinvestments</span>","location='3_7_1_International.asp'");
		mnu_menu_01_6.addMenuItem("<span class='cpse6a' style='cursor:hand'>International Links</span>","location='3_7_2_Links.asp'");		
		mnu_menu_01_6.bgColor='#FFFFFF';
		mnu_menu_01_6.menuBorder=1;
		mnu_menu_01_6.menuLiteBgColor='#FFFFFF';
		mnu_menu_01_6.menuBorderBgColor='#FFFFFF';
        
        
		mnu_menu_01_0.writeMenus();
}

/*Handling Key Code*/
function noEnter(e)
{
var keynum;
var keychar;
var numcheck;
	if(window.event) // IE
	{
	  keynum = e.keyCode;
	}
	else if(e.which) // Netscape/Firefox/Opera
	{
	  keynum = e.which;
	}
	
	keychar = String.fromCharCode(keynum);
	if(keynum == 13)
	{
		siteSearch();
		return false;
	}
	else
	{return true;}
}
/*End of Handling Key Code*/

function siteSearch() 
{
	var str = document.getElementById('find_txt').value
	var regVulnerable = /[|&;$%@\'\"()+-<>\\\/]/;
	if (str !="")
	{

//		for (var i=0;i<str.length;i++)
//		{
//			if (str.substring(i,i+1) == "<" || str.substring(i,i+1) == "#" || str.substring(i,i+1) == "#")
//			{
//				alert("Enter Valid Data!");
//				document.getElementById('find_txt').focus();
//				return false;
//			}
//		}
		
		if (str.match(regVulnerable))
		{
				alert("Enter Valid Search String!");
				document.getElementById('find_txt').focus();
				return false;
		}

		document.forms[0].find_str.value=str;
		document.forms[0].submit();
	} 
	else
	{
		alert("Please enter any keyword");
		document.getElementById('find_txt').focus();
		return false;
	}
	return true;
}
//-->