Based on the ID of the control we could use the control.type to check the type of the control.
function fillVC(controlClientId)
{
var control = document.getElementById(controlClientId);
alert(control.type);
if (control != null && control.type == "submit") {
alert('button')
}
else if (control != null && control.type == "select-one") {
alert('dropdown')
}
You need to call the function like this...
<asp:dropdownlist id="ddlGeo" runat="server" width="100px" onchange="fillVC(this.id);" xmlns:asp="#unknown">
</asp:dropdownlist>