// JavaScript Document

//<![CDATA[
                function populate(o)
                {
                        d=document.getElementById('normalAmount');
                        if(!d){return;}                 
                        var mitems=new Array();
                        mitems['5.00']=['5.00'];
                        mitems['10.00']=['10.00'];
                        mitems['15.00']=['15.00'];
                        mitems['20.00']=['20.00'];
                        mitems['25.00']=['25.00'];
                        mitems['50.00']=['50.00'];
                        mitems['75.00']=['75.00'];
                        mitems['100.00']=['100.00'];
                        d.options.length=0;
                        cur=mitems[o.options[o.selectedIndex].value];
                        if(!cur){return;}
                        d.options.length=cur.length;
                        for(var i=0;i<cur.length;i++)
                        {
                                d.options[i].text=cur[i];
                                d.options[i].value=cur[i];
                        }
                }


                function populate_specific()
                {
                        o = document.getElementById('or');
                        d = document.getElementById('desc');
                        field = document.getElementById('amount');                      
                        if( !d || !o || !field ){return;}                       
                        var mitems=new Array();
                        mitems['Immunize']=['1. Immunize a Child Against Life-Threatening Diseases'];
                        mitems['Medical']=['2a. Provide a Six-Month Medical Checkup for a Child','2b. Provide a Year of Medical Treatment for a Child'];
                        mitems['Counseling']=['3. Provide Counseling to Orphaned/Destitute Children'];
                        mitems['Clean Water']=['4a. Provide Children with Clean Water','4b. Provide Children with Clean Water (Shared Cost)'];
                        mitems['Books']=['5a. Build a Library for a School','5b. Provide a Nepali/English Book Series for a School'];
                        mitems['Garden']=['6a. Provide a Community with a Garden','6a. Provide a Community with a Garden (Shared Cost)','6b. Provide an Orphanage with a Garden'];
                        mitems['Rent']=['7. Pay a Month`s Rent for a Needy Orphanage'];
                        mitems['Vegetables']=['8. Give Children Fresh Vegetables for a Month','8. Give Children Fresh Vegetables for a Month (Shared Cost)'];
                        mitems['Clothing']=['9a. Clothe a Child for School','9b. Provide Backpacks for Fifty Children','9c. Provide Backpacks for Ten Children'];
                        mitems['Teaching']=['10. Teach/Tutor a Child for a Month'];
                        mitems['Supervisor']=['11. Give an Orphanage a Qualified Supervisor'];
                        mitems['Warmth']=['12. Keep a Child Warm for The Winter'];
                        mitems['Connection']=['13. Keep The GVN Foundation Connected'];
                        mitems['Roof']=['14. Keep a Roof Over Our Heads'];
                        mitems['Office Supplies']=['15. Give The GVN Foundation its Office Supplies'];
                        d.options.length=0;
                        cur=mitems[o.options[o.selectedIndex].value];
                        if(!cur){return;}
                        d.options.length=cur.length;
                        for(var i=0;i<cur.length;i++)
                        {
                                d.options[i].text=cur[i];
                                d.options[i].value=cur[i];
                        }
                        populate_amount();
                }
                function populate_amount()
                {
                  o = document.getElementById('or');
                        d = document.getElementById('desc');
                        field = document.getElementById('amount');                      
                        if( !d || !o || !field ){return;}                       
                        var mprice=new Array();
                        mprice['Immunize']=['19'];
                        mprice['Medical']=['18','125'];
                        mprice['Counseling']=['54'];
                        mprice['Clean Water']=['288','63'];
                        mprice['Books']=['325','32'];
                        mprice['Garden']=['7500','150','188'];
                        mprice['Rent']=['219'];
                        mprice['Vegetables']=['125','63'];
                        mprice['Clothing']=['38','188','57'];
                        mprice['Teaching']=['57'];
                        mprice['Supervisor']=['75'];
                        mprice['Warmth']=['19'];
                        mprice['Connection']=['40'];
                        mprice['Roof']=['550','50'];
                        mprice['Office Supplies']=['50'];
                        prices = mprice[o.options[o.selectedIndex].value];                                              
                        field.value = prices[d.selectedIndex];                  
                }
                function go($form)
                {
                        location=$form.gowhere.value
                }
                function popUp(URL,myWidth,myHeight,myLeft,myTop)
                {       
                        window.open(URL, 'Pop_Box', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+myWidth+',height='+myHeight+',left='+myLeft+',top='+myTop+'');
                }       
                
                sfHover = function() 
                {
                        var sfEls = document.getElementById("nav").getElementsByTagName("LI");
                        for (var i=0; i<sfEls.length; i++) 
                        {
                                sfEls[i].onmouseover=function() {
                                        this.className+=" sfhover";
                                }
                                sfEls[i].onmouseout=function() {
                                        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
                                }
                        }
                }
if (window.attachEvent) window.attachEvent("onload", sfHover);
//]]>