;ò
HûÎBc           @   s   d  Z  d Z d Z d S(   s`  

<script>
var setChartGraph = setSpeedChartGraph
var drawDateGraph = drawDateSpeedGraph
var drawCurGraph = drawSpeedGraph
var toplistLabel = 'init'
var menu = '0'

var first = "%(first)s"
var next = "%(next)s"
var prev = "%(prev)s"
var last = "%(last)s"
var prevPath = "%(prevPath)s"

function reset_cur_date() {
	cur_year = %(year_no)s
	cur_month = %(month_no)s
	cur_day = %(day_no)s
	}

function setYear(year) {
	cur_year = year
	}

function setMonth(month) {
	cur_month = month-1
	}

function setDay(day) {
	cur_day = day-1
	}

function drawDateToplist(charttype, output) {
	if (charttype == 3) {
		document.speedchart.from.value = "%(cur_week_start)s"
		document.speedchart.to.value = "%(cur_week_stop)s"
		cur_year = -1
	}
	document.toplist.year.value = cur_year
	document.toplist.month.value = cur_month
	document.toplist.day.value = cur_day
	document.toplist.charttype.value = charttype
	document.toplist.graph.value = "0"
	drawToplistGraph(output)
	}

function drawDateSpeedGraph(charttype, output) {
	if (charttype == 3) {
		document.speedchart.from.value = "%(cur_week_start)s"
		document.speedchart.to.value = "%(cur_week_stop)s"
		cur_year = -1
	}
	document.speedchart.year.value = cur_year
	document.speedchart.month.value = cur_month
	document.speedchart.day.value = cur_day
	document.speedchart.charttype.value = charttype
	document.speedchart.graph.value = "0"
	drawSpeedGraph(output)
	}

function drawSpeedGraph_IP_Search() {
	drawSpeedGraph_IP(document.Input_IP.addr.value,2)
	}

function drawSpeedGraph_IP2_Search() {
	drawSpeedGraph_IP(document.Input_IP2.addr.value,2)
	}

function drawSpeedGraph_IP(addr, output) {
	setIP(addr)
	drawSpeedGraph(output)
	}

function setIP(addr) {
	document.speedchart.IP.value = addr
		document.speedchart.hostname.value = ''
	}

function speedChartMouseDown(value, menu) {
	toplistLabel = value
	contextMenu="contextMenu"+menu;
	debugContextMenu = contextMenu
	document.speedchart.xLabel.value = value
	//alert(contextMenu)
	}

function setMenu(menu) {
	contextMenu="contextMenu"+menu;
		//alert(contextMenu+' setMenu')
	}

function drawchartSpeedGraph(chart, output) {

	//alert('drawchartSpeedGraph')
	document.speedchart.chart.value = chart
	document.speedchart.action = " %(speedFile2Call)s "
	document.speedchart.target = "speed"
	//closeAllMenus ()
	drawSpeedGraph(output)
	}

function setToplistChartGraph(graph, output) {

	document.toplist.graph.value = graph
	drawToplistGraph(output)
	}

function setSpeedChartGraph(graph, output) {

	document.speedchart.graph.value = graph
	drawSpeedGraph(output)
	}

function setChartPath(path, output) {

	document.speedchart.group.value = path
	document.speedchart.IP.value = '/'
	document.speedchart.hostname.value = ''
	drawSpeedGraph(output)
	}

function dayToplistGraph(day, output) {

	document.toplist.charttype.value = "2"
	document.toplist.day.value = day
	document.toplist.graph.value = "0"
	drawToplistGraph(output)
	}

function exportData(output) {
	
	drawToplistGraph(output)
	}

function drawToplistGraph_Hosts(output) {
	document.toplist.hostsingraph.value = document.Input_Hosts.hosts.value
	drawToplistGraph(output)
	}

function drawToplistGraph(output) {

	popdown ()
	document.toplist.output.value = output
	alert('Output = ' + output)
	document.toplist.submit()
	}

function drawSpeedGraph(output) {

	//alert('drawSpeedGraph')
	if (speedPopdown > 0) popdown ();
	document.speedchart.output.value = output
	var speedLinePopUp = window.open('javascript:void(0)', 'speed', 'menubar=no, width=488, height=400, resizable=no, titlebar=no');
	speedLinePopUp.focus();
	document.speedchart.submit()
	}

function popMenuPrint() {
	closeAllMenus ()
	printit ()
	}

function printit(){
if (window.print) {
	window.print() ;
} else {
	var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>;' 
	document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
	WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";
}
}

function callPython(site, target) {
	closeAllMenus ()
	var myPopUp = window.open(site, target);
}

reset_cur_date()

function mousepos() {
	alert('test')
	alert(MouseX)
	if (MouseX >= 130) {
		popup('contextMenu3')
	}
	}

	function hostXlate(IP_addr) {
		var site = 'PL2_Xlate.rpy?IP='+IP_addr
		var myPopUp2 = window.open(site, 'xlate', 'menubar=no, width=250, height=400');
		myPopUp2.focus()
	}

</script>
s	  

<script>
function setLiveLineGraph(graphNode) {
	liveLineGraphId = graphNode
	}

function liveLineGraph (graphNode) {
	drawLiveLineGraph (graphNode, '')
	}

function liveLineGraphInOwnWin () {
	drawLiveLineGraph (liveLineGraphId, liveLineGraphId)
	}

function drawLiveLineGraph (graphNode, target) {
	var myRegExp = "/[- CPU]/g";
	var fileName = 'PL2_SpeedGraph.rpy?chart=11&IP='+graphNode + '&img=2&toolbox=0&title=' + graphNode + ' %(PL2_address1)s'
	var winName = 'livestat_%(PL_address)s' + target.replace(/[ -]/g, '_')
	var option = 'menubar=no, width=800,height=360, titlebar=no'
	var liveLinePopUp = window.open(fileName, winName, 'menubar=no, width=800, height=360, titlebar=no');
	liveLinePopUp.focus()
	}

function webStat()  {
	var webstatPopUp = window.open('PL2_wc.rpy', 'webStat_%(PL_address)s', 'menubar=no, width=484, height=360, titlebar=no');
	webstatPopUp.focus();
}

function drawSpeedLine() {
	var speedLinePopUp = window.open(speed_src, 'speed', 'menubar=no, width=488, height=400, resizable=no, titlebar=no');
	speedLinePopUp.focus();
}

function drawHostcouGraph() {
	var speedLinePopUp = window.open(hostcou_src, 'speed', 'menubar=no, width=488, height=400, resizable=no, titlebar=no');
	speedLinePopUp.focus();
}

function drawToplist() {
	var toplistPopUp = window.open(toplist_src, 'toplist', 'menubar=no, scrollbars=yes, width=500, height=740, titlebar=no');
	toplistPopUp.focus();
}

function drawVBSToplist() {
	var VBStoplistPopUp = window.open(VBStoplist_src, 'VBStoplist', 'menubar=no, scrollbars=yes, width=500, height=740, titlebar=no');
	VBStoplistPopUp.focus();
}

function browsePL2Statistics() {

	var toplistPopUp = window.open(PL2browse_src, 'browse', 'menubar=no, scrollbars=yes, width=500, height=740, titlebar=no');
	toplistPopUp.focus();
}



</script>
s¡   

<script>
	function config(conf) {
		var site = 'PL2_control1.rpy?conf=' + conf
		var myConfig = window.open(site, 'control1');
		myConfig.focus()
	}
</script>
N(   s   script1s   script2s   script3(   s   script1s   script2s   script3(    (    s   C:\Python\PL\PL2_javascript.pys   ?   s   Å<