
 function stamp()

{

	var prop_value=window.document.form1.txt_propval.value;
	
	var S_no = window.document.form1.state.selectedIndex;
	
	var s_optval = window.document.form1.state.options[S_no].value;
    var s_name = window.document.form1.state.options[S_no].text;
     
	  if (prop_value==""){

		window.document.form1.txt_propval.focus();
		alert("Please enter amount")
		return false;
		}
	 if (S_no==""){
		window.document.form1.state.focus();
		alert("Please Select a Option")
		return false;
		}
		
	 else if (s_name=="Bihar(Non-Corproration Areas)")
	     {
	      var brca=0.06*prop_value
	      document.form1.stampduty.value=Math.round (brca)
		  }

	else if (s_name=="Pune")
	     {
	      var brca=0.3*prop_value
	      document.form1.stampduty.value=Math.round (brca)
		  }		
	
	    else if (s_name=="Bihar(for Corporation Areas)")
	     {
	      var brca=0.08*prop_value
	      document.form1.stampduty.value=Math.round (brca)
		  }
	
		else if (s_name=="Delhi")
		      {
	         var dl=0.08*prop_value
	         document.form1.stampduty.value=Math.round (dl)
	          }
	
	    else if (s_name=="Goa") 
	       {
	         var go=0.02*prop_value
	         document.form1.stampduty.value=Math.round (go)
	         }
	
	    else if (s_name=="Haryana")
 	       {
	         var hr=0.125*prop_value
	         document.form1.stampduty.value=Math.round (hr)
			 }
	
		else if (s_name=="Kerala")
		   {
	         var kl=(0.085*prop_value)
	         document.form1.stampduty.value=Math.round (kl)
	         }
	
	   else if (s_name=="Rajasthan(For Ladies)")
	       {
	        var rj=(0.05*prop_value)
	        document.form1.stampduty.value=Math.round (rj)
	          }
	 
	   else if (s_name=="Rajasthan(For Others)")
	   	       {
	        var rjj=(0.065*prop_value)
	        document.form1.stampduty.value=Math.round (rjj)
	          }
	 
	     else if (s_name=="Kolkata & Howrah")
		       {
	        var wb=(0.10*prop_value)
	        document.form1.stampduty.value=Math.round (wb)
	          }
			  
		  else if (s_name=="Rest of West Bengal")
	         {
	          var wbo=(0.08*prop_value)
	          document.form1.stampduty.value=Math.round (wbo)
	          }
	  	return false;
        }


