// JavaScript Document

function pathwayHit()
{
	document.interactors.method = "POST";
	document.interactors.action = "c_pathwayrep.jsp";
	document.interactors.submit();
}

function drawMap()
{
	document.interactors.method = "POST";
	document.interactors.action = "c_batchinfo.jsp";
	document.interactors.submit();
}

function SetAllCheckBoxes(FormName, FieldName, CheckValue)
{
	if(!document.forms[FormName]) {
		return;
	}
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	if(!objCheckBoxes) {
		return;
	}
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes) {
		objCheckBoxes.checked = CheckValue;
	}
	else {
		for(var i = 0; i < countCheckBoxes; i++) {
			objCheckBoxes[i].checked = CheckValue;
		 }
	}
}

function next_level()
{
	document.interactors.flagtype.value = "next_level";
	document.interactors.method = "POST";
	document.interactors.submit();
}

function back_bone()
{
	document.interactors.flagtype.value = "back_bone";
	document.interactors.method = "POST";
	document.interactors.submit();
}
function next_level_batch()
{
	document.interactors.flagtype.value = "next_level_batch";
	document.interactors.method = "POST";
	document.interactors.submit();
}
function phys_int()
{
	document.interactors.flagtype.value = "phys_int";
	document.interactors.method = "POST";
	document.interactors.submit();
}
function trans_assoc()
{
	document.interactors.flagtype.value = "trans_assoc";
	document.interactors.method = "POST";
	document.interactors.submit();
}
function save_list()
{
	document.interactors.flagtype.value = "save_list";
	document.interactors.method = "POST";
	document.interactors.submit();
}
function refresh_current()
{
	document.interactors.flagtype.value = "refresh_current";
	document.interactors.method = "POST";
	document.interactors.submit();
}

function proteininfo_next_level() {
	document.interactors.method = "POST";
	document.interactors.action = "c_batchinfo.jsp";
	document.interactors.submit();
}

function proteininfo_refresh_current() {
	document.interactors.submitflag.value = "true";
	document.interactors.method = "POST";
	document.interactors.submit();
}
