
function verify(sea)
{
//alert("3567");
//alert(document.sea.special.selectedIndex);
var ind1=document.sea.special.selectedIndex;
//alert(ind1);           
      
      if (document.sea.Category.selectedIndex =="0")
      {
		alert ("Please select the Category");
		document.sea.Category.focus();
		return false;
      }   
      else if (document.sea.special.value =="0")
      {
         alert ("Please first  select one new Category ");
		document.sea.Category.focus();
		return false;
      
      }
      if (ind1=="-1")
	{
	alert("Select One SubCategory");
	document.sea.special.focus();  
	return false;

	}
           
      
   document.sea.method="get";
   document.sea.action="/architect/search.asp";
   document.sea.submit();
   return true;
}

function search_com(major)
     {
    //alert("1");
	var ctr=major.options[major.selectedIndex].value;	
	//alert(ctr);
	var buf2=document.sea.special
	
	var buf2arr=buf2.options;
	//alert(buf2arr);
	if (ctr == 0) 
	{
	buf2arr.length=0;
	buf2arr.length=1;
	buf2arr[0].value='0';
	buf2arr[0].text='Select SubCategory';
	}
	else
	{
	buf2arr.length=0;
	buf2arr.length=subcat[ctr].length;
	//alert(subcat[ctr].length) ;
	
	for(j=0;j<subcat[ctr].length;++j)
	{	
	 buf2arr[j].text=subcat[ctr][j];
	 buf2arr[j].value=subcat[ctr][j];
	}
	}
  }