function doit50(htmfile) {
	popUpWin = window.open(htmfile,'smallWin','height=500,width=500,toolbar=0,location=0, directories=0,status=0,menubar=0,scrollbars=yes,resizable=1')
	if (navigator.appName == 'Netscape') {
		popUpWin.focus()
	}
 }

function mailvalidate()
{
	if (!document.frmnewsltr.txtnewsltr.value.match(/^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/g )){ 
	  alert("Please enter the correct Email Id.");
	  document.frmnewsltr.txtnewsltr.focus();
		return false;
	  }

}

menu_status = new Array();

function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

var gAutoPrint = true; 
 function printSpecial(divId)    
 {
        var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 

                sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 

          if (document.getElementById != null)

          {

                var html = '<html>\n<HEAD>\n';

            if (document.getElementsByTagName != null)

                {

                      var headTags = document.getElementsByTagName("head");

                      if (headTags.length > 0)

                            html += headTags[0].innerHTML;

                }
        

                html += '\n</HE' + 'AD>\n<BODY><br>\n';

            var printReadyElem = document.getElementById(divId);

            if (printReadyElem != null)

                {

                            html += printReadyElem.innerHTML;

                }

                else

                {

                      alert("Could not find the printReady section in the HTML");

                      return;

                }
               

                html += '\n</BO' + 'DY>\n</HT' + 'ML>';

        

            var printWin = window.open("","",sOption); 

                printWin.document.open();

                printWin.document.write(html);

                printWin.document.close();

                if (gAutoPrint){

                      printWin.print();

                      printWin.close();

                  }

          }

          else

          {

                alert("Sorry, the print ready feature is only available in modern browsers.");

          }

}




/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1


//Contents for menu 2, and so on

var menu1=new Array()
/*menu1[0]='<a href="projects.php"><b>Projects</b></a>'*/
menu1[1]='<a href="projects.php#1 ">PPPAC Projects</a>'
menu1[2]='<a href="projects.php#2 ">Viability Gap Funding Projects</a>'
menu1[3]='<a href="projects.php#3 ">IIFC Projects</a>'
menu1[4]='<a href="projects.php#4" >IIPDF Projects</a>'
menu1[5]='<a href="projects.php#5" >State Level Projects</a>'

var menu2=new Array()
/*menu2[0]='<a href="approval-committees.php"><b>Approval Committees</b></a>'*/
menu2[1]='<a href="approval-committees.php#1">Cenral Sector Projects</a>'
menu2[2]='<a href="approval-committees.php#2">VGF</a>'


var menu3=new Array()
/*menu3[0]='<a href="guidelines-forms.php"><b>Guidelines & Forms</b></a>'*/
menu3[1]='<a href="guidelines-forms.php#2">Central Sector</a>'
menu3[2]='<a href="guidelines-forms.php#5">Model Documents</a>'
menu3[3]='<a href="guidelines-forms.php#1">VGF</a>'
menu3[4]='<a href="guidelines-forms.php#3">IIPDF</a>'
menu3[5]='<a href="guidelines-forms.php#4">Transaction Advisers</a>'



var menu4=new Array()
/*menu4[0]='<a href="reports-policy-documents.php"><b>Reports and Policy Documents</b></a>'*/
menu4[1]='<a href="reports-policy-documents.php#1">Reports</a>'
menu4[2]='<a href="reports-policy-documents.php#2">Policy Documents</a>'


var menu6=new Array()
/*menu6[0]='<a href="developer-investors.php"><b>Developers - Investors</b></a>'*/
menu6[1]='<a href="developer-investors.php#1">AES Corporation</a>'
menu6[2]='<a href="developer-investors.php#2">GMR </a>'
menu6[3]='<a href="developer-investors.php#3">GVK</a>'
menu6[4]='<a href="developer-investors.php#4">KPMG</a>'

var menu5=new Array()
/*menu5[0]='<a href="financing.php"><b>Financing</b></a>'*/
menu5[1]='<a href="financing.php#1">IIFCL</a>'
menu5[2]='<a href="financing.php#2">IDFC</a>'
menu5[3]='<a href="financing.php#3">ICICI Bank</a>'
menu5[4]='<a href="financing.php#4">Yes Bank</a>'
menu5[5]='<a href="financing.php#5">HDFC</a>'
menu5[6]='<a href="financing.php#6">State Bank of India </a>'
menu5[7]='<a href="financing.php#7">IL&amp;FS </a>'


var menu7=new Array()
/*menu7[0]='<a href="mainstreaming-ppp.php"><b>Mainstreaming of Public Private Partnerships</b></a>'*/
menu7[1]='<a href="ppp_legal_panel_list_of_firms.pdf">Legal Panel</a>'
menu7[2]='<a href="ppp_retainer_panel_transaction_adv_services.pdf">Retainer Panel for Transaction Advisory Services</a>'


var menu8=new Array()
menu8[0]='<a href="http://www.satyatech.com/business-model/">Business Model</a>'
//menu8[1]='<a href="http://www.satyatech.com/business-model/onshore-offshore.html">Onshore and Offshore</a>'
//menu8[2]='<a href="http://www.satyatech.com/business-model/staff-augmentation-vs-complete-ownership.html">Staff Augmentation vs. Complete Ownership</a>'

var menu9=new Array()
menu9[0]='<a href="http://www.satyatech.com/center-of-excellence.html">Center of Excellence</a>'

var menu10=new Array()
/*menu10[0]='<a href="transaction-advisers.php"><b>Transaction Advisers</b></a>'*/
menu10[1]='<a href="transaction-advisers.php#1">Current RFQ</a>'
		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=0 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}


