function checkSelect(element){    myIndex = element.options[options.selectedIndex].value;    
if(myIndex == 0)    {         alert("select field is required");
return false; }