//'** USED IN nav_left.htm
function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
//'** USED IN nav_left.htm
function MM_swapImage() { //v3.0
	MM_swapImgRestore;
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){
		document.MM_sr[j++]=x;
		if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
}

//'** USED BY MM_swapImage() function
function MM_findObj(n, d) { //v4.0
	var p,i,x;
	if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); 
	return x;
}

//'** USED IN issue_search_hdr.asp, issue_search_hdr_msd.asp, issue_search_tab_hdr.asp, 
//'**          issue_search_tab_hdr_msd.asp, list_reports_hdr.asp
function MM_preloadImages() { //v3.0
	var d=document;
	if(d.images){ 
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){
			d.MM_p[j]=new Image;
			d.MM_p[j++].src=a[i];
		}
	}
}

//'** USED BY issue_search_hdr.asp
function Issue_Click(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "issue") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "issue";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=issue";
		stringVal = "issue_search_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED BY issue_search_hdr.asp
function KB_Common_Click(pDoc) {
	var lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "issue_search_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED BY issue_search_hdr_msd.asp
function Issue_Click_msd(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "issue") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "issue";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=issue";
		stringVal = "issue_search_hdr_msd.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}
function Issue_Click_caes(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "issue") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "issue";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=issue";
		stringVal = "issue_search_hdr_caes.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED BY issue_search_hdr_msd.asp
function KB_Common_Click_msd(pDoc) {
	var lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "issue_search_hdr_msd.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

function KB_Common_Click_caes(pDoc) {
	var lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "issue_search_hdr_caes.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN ISSUE SEARCH (issue_search_tab_hdr.asp)
function Issue_Click_KB(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "issue") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "issue";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=issue";
		stringVal = "issue_search_tab_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN ISSUE SEARCH (issue_search_tab_hdr.asp)
function Common_Click_KB(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "issue_search_tab_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN ISSUE SEARCH (issue_search_tab_hdr_msd.asp)
function Issue_Click_KB_msd(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "issue") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "issue";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=issue";
		stringVal = "issue_search_tab_hdr_msd.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

function Issue_Click_KB_caes(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "issue") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "issue";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=issue";
		stringVal = "issue_search_tab_hdr_caes.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}


//'** USED IN ISSUE SEARCH (issue_search_tab_hdr_msd.asp)
function Common_Click_KB_msd(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "issue_search_tab_hdr_msd.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

function Common_Click_KB_caes(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "issue_search_tab_hdr_caes.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function process_report_type(pDoc){
	lsSelectedReportType = pDoc.hdrform.cmbReportType.options[pDoc.hdrform.cmbReportType.selectedIndex].value;
	pDoc.hdrform.ReportTypeSelected.value = lsSelectedReportType;
	parent.frames[2].location.replace(lsSelectedReportType);
}


function Resolved_Click(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "resolved") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "resolved";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=resolved";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function Resolved_Click_msd(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "resolved") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "resolved";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=resolved";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function Unresolved_Click(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "unresolved") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "unresolved";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=unresolved";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function Unresolved_Click_msd(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "unresolved") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "unresolved";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=unresolved";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function Common_Click(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function Common_Click_msd(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "common") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "common";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=common";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function Enhancements_Click(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "enhancements") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "enhancements";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=enhancements";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

//'** USED IN LIST REPORTS (list_reports_hdr.asp)
function Outstanding_Click(pDoc) {
	lsQS = pDoc.hdrform.QS.value;
	if (pDoc.hdrform.ReportTypeSelected.value == "outstanding") {
		return false;
	}
	else {
		pDoc.hdrform.ReportTypeSelected.value = "outstanding";
		var x = lsQS.indexOf("&ReportTypeSelected");
		newQS = lsQS.substring(0,x);
		newQS = newQS + "&ReportTypeSelected=outstanding";
		stringVal = "list_reports_hdr.asp?" + newQS;
		pDoc.location.replace(stringVal);
	}
}

