// TeamsiteLinker.js
function showbutton(id, parent_id, ffocus){ if (document.getElementById) { document.getElementById(id).style.top = document.getElementById(parent_id).style.top; document.getElementById(id).style.left = document.getElementById(parent_id).style.left; } else if (document.all) { document.all[id].style.top = document.all[parent_id].style.top; document.all[id].style.left = document.all[parent_id].style.left; } show(id); }
function hidebutton(id){ hide(id);} 

// newFunction

function openDCR(categoryType, DCRname, sectionName, discriminatorNbr, nodeName){
	var TS_SERVER;
	var winOptions;
	var newWindow;
	var branchPath;
	var workareaName;
	var targetURL;

	TS_SERVER = 'http://teamsite-prod.rccl.com/iw-cc/command/iw.ccpro.launch_edit_form';

	targetURL = TS_SERVER + '?vpath=' + DCRname
	                      + '&ffocus=' + nodeName 
	                      + '&section=' + sectionName 
	                      + '&replicantNumber=' + discriminatorNbr;

    winOptions = "scrollbars=yes,resizable=yes,toolbar=no,menubar=no,width=800,height=600";
	window.open(targetURL, "TeamSite_Templating", winOptions);
}

