function DoFSCommand(sCmd, sArgs){
	var aParams = sArgs.split("##");
	switch(String(sCmd)){
		case "MESSAGE":
			alert(sArgs);
			break
		case "NTrace":
			//alert(sArgs);
			break
		case "CustomMarkup":
			document.all["CustomMarkup"].innerHTML = sArgs;
			break;
		case "CustomTagLine":
			window.status = sArgs;
			break
		case "REFRESH":

			break
		case "VUpload":
		
//alert(aParams[0]+"::"+aParams[1]);
			VUpload(aParams[0], aParams[1]);
			break
		case "RUpload":
			RUpload(aParams[0], aParams[1]);
			break
		case "ACTVLaunch":
			ACTVLaunch(aParams[0], aParams[1]);
			break
		case "ACTVLaunchUS":
			ACTVLaunch(aParams[0], aParams[1]);
			break
		case "PRNTLaunchUS":
			PRNTLaunch(aParams[1]);
	}
}
function PRNTLaunch(sCASE){
	LeftPosition=(screen.width)?(screen.width-576)/2:100;
	TopPosition=(screen.height)?(screen.height-480)/2:100;
	settings='width=704,height=480,top='+TopPosition+',left='+LeftPosition+',scrollbars=0,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';	
	window.zPRNTLaunch = window.open("http://idea.oronova.com/IDEAHOST/IDEA_CasePrint.asp?ESAC="+sCASE,"zPRNTLaunch",settings);
	//window.zPRNTLaunch = window.open("IDEA_CasePrint.asp?ESAC="+sCASE,"zPRNTLaunch",settings);
	window.zPRNTLaunch.focus();
}
function ACTVLaunch(sDATA, sCASE){
	LeftPosition=(screen.width)?(screen.width-576)/2:100;
	TopPosition=(screen.height)?(screen.height-480)/2:100;
	settings='width=704,height=480,top='+TopPosition+',left='+LeftPosition+',scrollbars=0,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';	
	window.zACTVLaunch = window.open("http://idea.oronova.com/IDEAHOST/IDEA_CaseActivity.asp?DATA="+sDATA+"&CASE="+sCASE,"zACTVLaunch",settings);
//	window.zACTVLaunch = window.open("IDEA_CaseActivity.asp?DATA="+sDATA+"&CASE="+sCASE,"zACTVLaunch",settings);
	window.zACTVLaunch.focus();
}
function VUpload(sDATA, sCASE){
	NewWin("http://idea.oronova.com/IDEAHOST/IDEA_Upload.asp?DATA="+sDATA+"&CASE="+sCASE,0,500,400,0,"center");
}
function RUpload(sDATA, sCASE){
	NewWin("http://idea.oronova.com/IDEAHOST/IDEA_Report_Upload.asp?DATA="+sDATA+"&CASE="+sCASE,0,500,400,0,"center");
}
var win=null;
function NewWin(winLoc,winT,w,h,scroll,pos){
	winLoc = winLoc.toString();
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=36;TopPosition=36
	}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(winLoc,"",settings);
	if(win.focus){
		win.focus();
	}
}

function ATDT0(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/Oronova/IDEADesktop.asp', 'website', screen.width-340, 150, 160, 40);
}
function ATDT1(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/FACTUAL/IDEADesktop.asp', 'website', screen.width-170, 50, 160, 40);
}
function ATDT2(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/OPTIMUM/IDEADesktop.asp', 'website', screen.width-340, 50, 160, 40);
}
function ATDT3(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/QUANTUM/IDEADesktop.asp', 'website', screen.width-340, 200, 160, 40);
}
function ATDT4(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/INFOMAX/IDEADesktop.asp', 'website', screen.width-340, 100, 160, 40);
}
function ATDT5(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/JPIV/IDEADesktop.asp', 'website', screen.width-340, 250, 160, 40);
}
function ATDT6(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/NATIONAL/IDEADesktop.asp', 'website', screen.width-170, 250, 160, 40);
}
function ATDT7(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/1054652441/IDEADesktop.asp', 'website', screen.width-170, 200, 160, 40);
}
function ATDT9(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/1054652829/IDEADesktop.asp', 'website', screen.width-340, 300, 160, 40);
}
function ATDT10(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/1054653250/IDEADesktop.asp', 'website', screen.width-170, 350, 160, 40);
}
function ATDT11(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/1054653252/IDEADesktop.asp', 'website', screen.width-340, 350, 160, 40);
}
function ATDT12(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/1054653285/IDEADesktop.asp', 'website', screen.width-170, 400, 160, 40);
}
function ATDT(sDOC){
	window.external.AddDesktopComponent ('http://idea.oronova.com/IDEAHOST/' +  sDOC + '/IDEADesktop.asp', 'website', screen.width-170, 300, 160, 40);
}