// Copyright (C) 2006 by Oxid8 Technologies LLC.  
// All Rights Reserved. 

// All source code contained within this file are the copyrighted works 
// of Oxid8 Technologies LLC.  Any redistribution, reproduction, 
// modification of source code herein is expressly forbidden.  

// THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
// WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
// WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
// FOR A PARTICULAR PURPOSE.  

var pid = "";

function toggle_tab(cid) {

	if (pid == cid) { 
		document.getElementById(pid).style.display = "none";
                document.getElementById("list").style.display = "block";
                pid = "";
	}	
	else {
		document.getElementById(cid).style.display = "block";
                document.getElementById("list").style.display = "none";
		pid = cid;
	}
}

function toggle_tab2(cid) {

        if (pid != "") { 
                document.getElementById(pid).style.display = "none";
        }
        if (cid == pid) { 
                document.getElementById(cid).style.display = "none";
                pid = ""; 
        }
        else {
                document.getElementById(cid).style.display = "block";
                pid = cid;
        }
}