function clear(){document.forms["form1"].elements["state"].selectedIndex=0
document.forms["form1"].elements["txt_propval"].value=""
document.forms["form1"].elements["stampduty"].value =""
}
function state1(){var prop_value=window.document.form1.txt_propval.value;
var S_no=window.document.form1.state.selectedIndex;
var s_name=window.document.form1.state.options[S_no].text;
if (s_name=="Gujarat"){window.document.form1.txt_propval.focus();
alert("For transfer relating to premises in Co-operative Society registered or deemed to have been registered under Gujarat Co-operative Society Act, 1961.")
return
}
if (s_name=="Karnataka"){window.document.form1.txt_propval.focus();
alert("Gives StampDuty for transfer effected by Bangalore Development Authority Act, 1976, relating to a flat as defined under Karnataka Ownership Flat Act, 1972.")
return
}
if (s_name=="Kerala"){window.document.form1.txt_propval.focus();
alert("Gives StampDuty for properties situated within Municipal Corporation or Municipalities.")
return
}
if (s_name=="Maharashtra"){window.document.form1.txt_propval.focus();
alert("Gives StampDuty for residential premises situated within limits Mumbai, Municipal Corporation of Greater Mumbai, Pune, Thane & Navi Mumbai.")
return
}
if (s_name=="Tamil Nadu"){window.document.form1.txt_propval.focus();
alert("Gives stampduty for properties situated within city limits of Chennai, Madurai & Municipal towns of Coimbatore, Salem and Tiruchhirapalli.")
return
}}
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 (S_no==""){window.document.form1.state.focus();
alert("Please Select a Option")
return false;}
if ((s_name=="Andhra Pradesh") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Assam") && (prop_value<150000)){window.document.form1.txt_propval.focus();
alert("Please enter Value greater than 150000")
return false;}
if ((s_name=="Delhi") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Goa") && (prop_value<1000)){window.document.form1.txt_propval.focus();
alert("Please enter Value greater than 1000")
return false;}
if ((s_name=="Gujarat") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Haryana") && (prop_value<1000)){window.document.form1.txt_propval.focus();
alert("Please enter Value greater than 1000")
return false;}
if ((s_name=="Himachal Pradesh") && (prop_value<1000)){window.document.form1.txt_propval.focus();
alert("Please enter Value greater than 1000")
return false;}
if ((s_name=="Karnataka") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Kerala") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Madhya Pradesh") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Maharashtra") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Manipur") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Nagaland") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Orissa") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Punjab") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Rajasthan") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Tamil Nadu") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Tripura") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="Uttarpradesh") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if ((s_name=="West Bengal(Calcutta)") && (prop_value==0)){window.document.form1.txt_propval.focus();
alert("Property Value cannot be Zero .")
return false;}
if(isNaN(prop_value)){window.document.form1.txt_propval.focus();
alert("Please enter a Numeric Value");
return false;}
if ((s_name=="Maharashtra") && ((prop_value >=100000) && (prop_value <=250000))){var mh=0.005*prop_value
document.form1.stampduty.value=Math.round (mh)
}
else if ((s_name=="Maharashtra") && ((prop_value > 250000) && (prop_value <=500000))){var mh=((0.03*(prop_value - 250000))+1250)
document.form1.stampduty.value=Math.round (mh)}
else if ((s_name=="Maharashtra") && ((prop_value > 500000) && (prop_value <=1000000))){var mh=((0.06*(prop_value - 500000))+8750)
document.form1.stampduty.value=Math.round (mh)}
else if ((s_name=="Maharashtra") && (prop_value > 1000000)){var mh=((0.08*(prop_value - 1000000))+38750)
document.form1.stampduty.value=Math.round (mh)}
else if ( (s_name=="Karnataka") && (prop_value <=500000)){var ka=0.04*prop_value
document.form1.stampduty.value=Math.round (ka)
}
else if ((s_name=="Karnataka") && ((prop_value > 500000) && (prop_value <=1500000))){var ka=((0.06*(prop_value - 500000))+20000)
document.form1.stampduty.value=Math.round (ka)
}
else if ((s_name=="Karnataka") && (prop_value > 1500000)){var ka=((0.08*(prop_value - 1500000))+80000)
document.form1.stampduty.value=Math.round (ka)}
else if ((s_name=="Meghalaya") && (prop_value <=50000)){var me=(0.046*prop_value)
document.form1.stampduty.value=Math.round (me)
}
else if ((s_name=="Meghalaya") && (prop_value>=50000) && (prop_value<=90000)){var me=((0.06*(prop_value-50000))+2300)
document.form1.stampduty.value=Math.round (me)
}
else if ((s_name=="Meghalaya") && (prop_value>=90000) && (prop_value<=150000)){var me=((0.08*(prop_value - 90000))+4700)
document.form1.stampduty.value=Math.round (me)
}
else if((s_name=="Meghalaya") && (prop_value>=150000)){var me=((0.099*(prop_value - 150000))+9500)
document.form1.stampduty.value=Math.round (me)
}
else{var sd=s_optval*prop_value
document.form1.stampduty.value=Math.round(sd)
}
return false;}