function removeFromCompareG(removeId)
{
    var myString = document.hsaCompareForm.hsacompareids.value;
	var tokens = new Array();
    if(String.tokenize != null) {
		tokens = myString.tokenize(",", " ", true);
    }
	else{
		var filter = new RegExp(",","ig");
        myString = myString.replace(filter, "~");
		tokens = tokenize_forie5(myString,"~", " ", true)
	}

	appendString = "";
    for(var i=0; i<tokens.length; i++) {
        if (tokens[i]==removeId)
            continue;
        if (tokens[i]==0)
            continue;
        appendString = appendString + tokens[i]+",";
    }
    appendString = appendString+"0";
    document.hsaCompareForm.hsacompareids.value = appendString;

    document.hsaCompareForm.precedence.value = "formdata";

    document.hsaCompareForm.submit();
}

function removeFromCompare(removeId)
{
    var myString = document.hsaCompareForm.hsacompareids.value;
	var tokens = new Array();
    if(String.tokenize != null) {
		tokens = myString.tokenize(",", " ", true);
    }
	else{
		var filter = new RegExp(",","ig");
        myString = myString.replace(filter, "~");
		tokens = tokenize_forie5(myString,"~", " ", true)
	}
    appendString = "";
    for(var i=0; i<tokens.length; i++) {
        if (tokens[i]==removeId)
            continue;
        if (tokens[i]==0)
            continue;
        appendString = appendString + tokens[i]+",";
    }
    appendString = appendString+"0";
    document.hsaCompareForm.hsacompareids.value = appendString;

    document.hsaCompareForm.submit();
}

function quote()
{
	document.hsaCompareForm.action="/health-plans/quote.php";
	document.hsaCompareForm.module.value='healthplan';
	document.hsaCompareForm.sub_tab.value='quote';
    document.hsaCompareForm.method="GET";
	document.hsaCompareForm.submit();
}

function hsaselector()
{
	document.hsaCompareForm.action="/hsa/hsa_ds.php";
	document.hsaCompareForm.module.value='hsa';
	document.hsaCompareForm.sub_tab.value='selecthsa';
    document.hsaCompareForm.method="GET";
	document.hsaCompareForm.submit();
}

