function resetform()
{
var inputs = document.getElementsByTagName("input");
for (i = 0; i < 17; i++)
{
if (inputs[i].type == "text")
{
inputs[i].value = "";
//inputs[1].value = "";
//alert(i);
}
}
cadd1 = document.getElementById("txt_address1")
cadd1.value = "PO Box 137067";
cadd2 = document.getElementById("txt_address2")
cadd2.value = "";
cadd3 = document.getElementById("txt_address3")
cadd3.value = "Parnell";
ccity = document.getElementById("txt_city")
ccity.value = "Auckland";
cphone = document.getElementById("txt_Work_Phone")
cphone.value = "+64 (09) 356 7250";
sdate = document.getElementById("txt_Start_Date")
sdate.readonly = true;
alert(sdate.value);
//lname = document.getElementById("txt_Last_Name")
//lname.value = "";
//nzqa = document.getElementById("txt_Nzqa_Number")
//nzqa.value = "";
//dob = document.getElementById("txt_DOB")
//dob.value = "";
//strEId = ()
//strETitle = ()
//strEth = new Array(,new Array(strEId),new Array(strETitle))
//eth = document.getElementById("Select_Ethnicity")
//while (eth.options.length!=0)
//eth.options.remove(0);
//for (var i=0;i<strEId.length;i++ )
//{
//eth.options[i].value = strEId[i]
//var oOption = document.createElement("OPTION")
//oOption.value = strEId[i]
//oOption.text = strETitle[i]
//eth.options.add(oOption)
//alert(strEId[i])
//}
var dropDowns = document.getElementsByTagName("select");
alert(dropDowns.length);
for (i = 0; i < dropDowns.length; i++)
{
alert(dropDowns.length);
dropDowns[i].selectedIndex = -1;
dropDowns[0].disabled = true;
//dropDowns[0].style.display = "none";
//dropDowns[1].selectedIndex = -1;
//dropDowns[2].selectedIndex = -1;
}
//var strethnic = strEthnicity();
//document.taform.MainSegment__P__ITO_Ethnicity.rText = strethnic
//var strprev = strprevqual();
//document.taform.MainSegement__P__ITO_Previous_Qual.rText= strprev
}