<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/TaxonomyEditorManager.php';
$tid = $_REQUEST["tid"];
$genusStr = array_key_exists('genusstr', $_REQUEST) ? $_REQUEST["genusstr"] : '';
$taxonEditorObj = new TaxonomyEditorManager();
$taxonEditorObj->setTid($tid);
$verifyArr = $taxonEditorObj->verifyDeleteTaxon();
?>
<script language=javascript>

$(document).ready(function() {

	$("#remaptvalue").autocomplete({ 
			source: "rpc/gettaxasuggest.php",  
			minLength: 2
		}
	);
});

function submitRemapTaxonForm(f){
	taxonValue = f.remaptvalue.value;
	if(taxonValue == ""){
		alert("Target taxon does not appear to be null. Please submit a taxon to remap the resources");
		return false;
	}
	var xmlHttp=GetXmlHttpObject();
	if(xmlHttp==null){
  		alert ("Your browser does not support AJAX!");
  		return;