

function addEvent(eShow,eValue){
	window.open("/erpReport/rpt_event.asp?eShow=" + eShow + "&eValue=" + eValue,"winRptEvent","toolbars=0,left=0,top=0,width=800,height=600,resizable=1,scrollbars=1,status=1");
}

function latencyCust(sourceStr){
	window.open("/erpReport/rpt_cLatency.asp?source=" + sourceStr ,"winRptLatency","toolbars=0,left=" + ((screen.availWidth/2) - 310) + ",top=" + ((screen.availHeight/2)-130 ) + ",width=620,height=260,resizable=0,scrollbars=0");
}	

function addRefer(source){
	////formGetRefer.source.value=source;
	/////formGetRefer.submit();
	window.open("/erpReport/rpt_getRefer.asp?source=" +  source,"winRptRefer","toolbars=0,left=" + ((screen.availWidth/2) - 320) + ",top=0" + ",width=640,height=430,resizable=1,scrollbars=1,status=1");
	
}
function checkRefer(txt){
	var str = txt.value;
	if(str!==""){
		if(str.substr(0,1)!=",")
			str = "," + str;
		if(str.substr(str.length-1,1)!=",")
			str = str + ",";
		txt.value = str;
	}
}

function fixTxtArea(t,action){
	if(action==0)
		{
		if(t.rows>2)
		t.rows -=2;
		}
	else
		t.rows +=2;
}


