 function changeValues()
 {
 		var G4;
		var G6;
		var ind;
		var G8;
		var G14;
		var F26;
		var F31;
		var G16;
		
		G4= document.factFrm.G4.value
		if (G4 =="")
		   { alert("Please Enter the total number of guest rooms at the hotel"); }
		else
		{
		
		    if (document.factFrm.G6.selectedIndex!=null)
		    { 
			    ind = document.factFrm.G6.selectedIndex
			    G6=document.factFrm.G6.options[ind].value;		
    			
		    }
    		
		    if (document.factFrm.G8.selectedIndex!=null)
		    { 
			    ind = document.factFrm.G8.selectedIndex
			    G8=document.factFrm.G8.options[ind].value;		
    			
		    }
    		
		    if (document.factFrm.G14.selectedIndex!=null)
		    { 
			    ind = document.factFrm.G14.selectedIndex
			    G14=document.factFrm.G14.options[ind].value;		
    			
		    }
    		
    		
    		
		    document.factFrm.F19.value = Math.round(G4*G6*100)/100;	
		    document.factFrm.F20.value= Math.round(G4*G6*0.5*G8*30*100)/100
		    document.factFrm.F21.value=Math.round(G4*G6*G14*0.2*30*100)/100
		    document.factFrm.F22.value = Math.round((G4*G6*0.5*G8*30+ G4*G6*G14*0.2*30)/2000*100)/100
		    document.factFrm.F23.value =  Math.round(((G4*G6*0.5*G8*30+ G4*G6*G14*0.2*30)/2000)*0.65 *100)/100
		    document.factFrm.F24.value = Math.round( (((G4*G6*0.5*G8*30+ G4*G6*G14*0.2*30)/2000)*0.65 )*2000/250*100)/100
		    G16 = document.factFrm.G16.value
		    if (document.factFrm.G10.selectedIndex!=null)
		    {
			    ind = document.factFrm.G10.selectedIndex
			    G10=document.factFrm.G10.options[ind].value;		
			    if (G10=="limited")
				    {
					    F26= Math.round(0.1*30*(G4*G6)*100)/100;
					    F31 =  Math.round(G4*G6*0.5*0.035*30*100)/100;
				    }
			    else
				    {
					    F26= Math.round(0.2*30*(G4*G6)*100)/100
					    F31 =  Math.round(G4*G6*0.25*0.035*30*100)/100
				    }
			    document.factFrm.F26.value = F26
			    document.factFrm.F27.value = Math.round(F26/2000*100)/100;
			    document.factFrm.F28.value = Math.round((F26/2000)*0.65*100)/100;
			    document.factFrm.F29.value = Math.round(((F26/2000)*0.65)*2000/40*100)/100
			    document.factFrm.F31.value = F31;
    			
		    }
    		
    		
		    if (G16 !=null && F31 !=null)
			    {   
				    document.factFrm.F32.value=G16*0.035;
				    document.factFrm.F33.value= Math.round((G16*0.035+F31)/2000*100)/100;
				    document.factFrm.F34.value = Math.round(((G16*0.035+F31)/2000)*0.65*100)/100;
				    document.factFrm.F35.value =Math.round(((((G16*0.035+F31)/2000)*0.65)*2000)/25*100)/100;
			    }
	}
 }
 
 