function fillState(){ // this function is used to fill the State list on load addOption(document.drop_list.State, 'Alabama', 'Alabama');addOption(document.drop_list.State, 'Alaska', 'Alaska');addOption(document.drop_list.State, 'Arizona', 'Arizona');addOption(document.drop_list.State, 'Arkansas', 'Arkansas');addOption(document.drop_list.State, 'California', 'California');addOption(document.drop_list.State, 'Colorado', 'Colorado');addOption(document.drop_list.State, 'Connecticut', 'Connecticut');addOption(document.drop_list.State, 'Delaware', 'Delaware');addOption(document.drop_list.State, 'District Of Columbia', 'District Of Columbia');addOption(document.drop_list.State, 'Florida', 'Florida');addOption(document.drop_list.State, 'Georgia', 'Georgia');addOption(document.drop_list.State, 'Hawaii', 'Hawaii');addOption(document.drop_list.State, 'Idaho', 'Idaho');addOption(document.drop_list.State, 'Illinois', 'Illinois');addOption(document.drop_list.State, 'Indiana', 'Indiana');addOption(document.drop_list.State, 'Iowa', 'Iowa');addOption(document.drop_list.State, 'Kansas', 'Kansas');addOption(document.drop_list.State, 'Kentucky', 'Kentucky');addOption(document.drop_list.State, 'Louisiana', 'Louisiana');addOption(document.drop_list.State, 'Maine', 'Maine');addOption(document.drop_list.State, 'Manitoba', 'Manitoba');addOption(document.drop_list.State, 'Maryland', 'Maryland');addOption(document.drop_list.State, 'Massachusetts', 'Massachusetts');addOption(document.drop_list.State, 'Michigan', 'Michigan');addOption(document.drop_list.State, 'Minnesota', 'Minnesota');addOption(document.drop_list.State, 'Mississippi', 'Mississippi');addOption(document.drop_list.State, 'Missouri', 'Missouri');addOption(document.drop_list.State, 'Montana', 'Montana');addOption(document.drop_list.State, 'Nebraska', 'Nebraska');addOption(document.drop_list.State, 'Nevada', 'Nevada');addOption(document.drop_list.State, 'New Brunswick', 'New Brunswick');addOption(document.drop_list.State, 'New Hampshire', 'New Hampshire');addOption(document.drop_list.State, 'New Jersey', 'New Jersey');addOption(document.drop_list.State, 'New Mexico', 'New Mexico');addOption(document.drop_list.State, 'New York', 'New York');addOption(document.drop_list.State, 'Newfoundland And Labrador', 'Newfoundland And Labrador');addOption(document.drop_list.State, 'North Carolina', 'North Carolina');addOption(document.drop_list.State, 'North Dakota', 'North Dakota');addOption(document.drop_list.State, 'Northwest Territories', 'Northwest Territories');addOption(document.drop_list.State, 'Not Specified', 'Not Specified');addOption(document.drop_list.State, 'Nova Scotia', 'Nova Scotia');addOption(document.drop_list.State, 'Nunavut', 'Nunavut');addOption(document.drop_list.State, 'Ohio', 'Ohio');addOption(document.drop_list.State, 'Oklahoma', 'Oklahoma');addOption(document.drop_list.State, 'Ontario', 'Ontario');addOption(document.drop_list.State, 'Oregon', 'Oregon');addOption(document.drop_list.State, 'Palau', 'Palau');addOption(document.drop_list.State, 'Pennsylvania', 'Pennsylvania');addOption(document.drop_list.State, 'Prince Edward Island', 'Prince Edward Island');addOption(document.drop_list.State, 'Puerto Rico', 'Puerto Rico');addOption(document.drop_list.State, 'Quebec', 'Quebec');addOption(document.drop_list.State, 'Rhode Island', 'Rhode Island');addOption(document.drop_list.State, 'Saskatchewan', 'Saskatchewan');addOption(document.drop_list.State, 'South Carolina', 'South Carolina');addOption(document.drop_list.State, 'South Dakota', 'South Dakota');addOption(document.drop_list.State, 'Tennessee', 'Tennessee');addOption(document.drop_list.State, 'Texas', 'Texas');addOption(document.drop_list.State, 'Utah', 'Utah');addOption(document.drop_list.State, 'Vermont', 'Vermont');addOption(document.drop_list.State, 'Virgin Islands', 'Virgin Islands');addOption(document.drop_list.State, 'Virginia', 'Virginia');addOption(document.drop_list.State, 'Washington', 'Washington');addOption(document.drop_list.State, 'West Virginia', 'West Virginia');addOption(document.drop_list.State, 'Wisconsin', 'Wisconsin');addOption(document.drop_list.State, 'Wyoming', 'Wyoming');addOption(document.drop_list.State, 'Yukon Territory', 'Yukon Territory');} // end of JS function function fillAvbl(){ // this function is used to fill the Availability list on load addOption(document.drop_list.Availability, 'Available for Rent', 'Available for Rent');addOption(document.drop_list.Availability, 'Available for Sale', 'Available for Sale');addOption(document.drop_list.Availability, 'Pending Contract', 'Pending Contract');addOption(document.drop_list.Availability, 'Sold', 'Sold');addOption(document.drop_list.Availability, 'Under Lease', 'Under Lease');} // end of JS function function fillBann(){ // this function is used to fill the BannerStatus list on load addOption(document.drop_list.BannerStatus, '', '');addOption(document.drop_list.BannerStatus, 'Contract Pending', 'Contract Pending');addOption(document.drop_list.BannerStatus, 'New Listing', 'New Listing');addOption(document.drop_list.BannerStatus, 'Price Reduced', 'Price Reduced');addOption(document.drop_list.BannerStatus, 'Sold', 'Sold');} // end of JS function function fillType(){ // this function is used to fill the Property Type list on load addOption(document.drop_list.PropertyType, 'Commercial', 'Commercial');addOption(document.drop_list.PropertyType, 'Homes on Acreage', 'Homes on Acreage');addOption(document.drop_list.PropertyType, 'Houses in Town', 'Houses in Town');addOption(document.drop_list.PropertyType, 'Raw Acreage', 'Raw Acreage');addOption(document.drop_list.PropertyType, 'Rental', 'Rental');} // end of JS function function fillCity(){ // this function is used to fill the city list on load addOption(document.drop_list.City, '', '');addOption(document.drop_list.City, 'Bluff Dale', 'Bluff Dale');addOption(document.drop_list.City, 'Comanche', 'Comanche');addOption(document.drop_list.City, 'Gordon', 'Gordon');addOption(document.drop_list.City, 'Stephenville', 'Stephenville');} // end of JS function function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); }