<!--
var appconf=new Object();
appconf.helpWindowName="/cconline/resources/WindowHelp";
appconf.helpWindowFile;
appconf.hWWidth="350";
appconf.hWHeight="300";
appconf.hWImage="bi_ayuda02_es_ES.gif";
appconf.tttDefaultPos="R";
appconf.tttFontFamily="arial";
appconf.tttFontSize="11";

document.onkeypress=pulsaenter;

function pulsaenter() {
	if(event.keyCode==13) checkURL();
}

function init2() {
	document.formu.userV.focus()
}

var wcco;
var wDemo;
var wContr;
var lang="ca_ES";

function openWinC(address) {
	if(wContr&&!wContr.closed) 
		wContr.close();
	wContr=window.open(address,'wContr','scrollbars=yes,resizable=yes,width=630,height=361,left=161,top=183');
}

function openWinD(address) {
	if(wDemo&&!wDemo.closed)
		wDemo.close();
		
	wDemo=window.open(address,'wDemo','resizable=1,toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,width=796,height=439,left=0,top=0');
	wDemo.moveTo(-4,-4);
}

function openWin() {
	if(wcco&&!wcco.closed)
		wcco.close();
		
	wcco=window.open('','wcco','resizable=1,toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,width=796,height=439,left=0,top=0');
	wcco.moveTo(-3,-3);
	wcco.document.write('<FRAMESET rows="*,0" border=0><FRAME name="visible" src="/cconline/void.html"><FRAME name="oculto" src="/cconline/void.html"></FRAMESET>');
	wcco.focus();
}

function select2OnChange() {
	formu.innerframe.value=formu.select2.options[formu.select2.options.selectedIndex].value;
	formu.Oper.value=formu.select2.options[formu.select2.options.selectedIndex].value;
}

function start(str){
	
	
	panelName=str;
	if(appconf.helpWindowName!=undefined)
		appconf.helpWindowFile=appconf.helpWindowName+"_"+appconf.locale+".html";
		
	if(appconf.imagesdir!=undefined)
		appconf.hWImage=appconf.imagesdir+appconf.hWImage;
}

var jsidioma;
var panelName;
var undefined;
var reload=true;

function start(str){
	panelName=str;
	if(parent.ccmenu!=undefined){
		parent.ccmenu.isOk=true;
		reload=false;
		if(appconf.locale!=undefined&&parent.ccmenu.setActiveWindowLocale!=undefined)
		parent.ccmenu.setActiveWindowLocale(appconf.locale);
	}
	
	if(appconf.helpWindowName!=undefined)
		appconf.helpWindowFile=appconf.helpWindowName+"_"+appconf.locale+".html";
		if(appconf.imagesdir!=undefined)appconf.hWImage=appconf.imagesdir+appconf.hWImage;
}
	
var help;
var extendedHelp;
var viewHelp=false;
var timerID;

function overCFTT(shortMess,longMess,x,y,width,height,pos) {
	hideToolTip();
	if(shortMess!=""&&!viewHelp) {
		if(pos=="") 
			pos=appconf.tttDefaultPos;
		help=replaceBlankString(shortMess);
		extendedHelp=replaceBlankString(longMess);
		if(longMess=="") {
			if(nav.isMac)
				message.innerHTML="<DIV style='position:absolute;border:1;border-color:black;border-style:solid'><TABLE border=0 cellspacing=0 cellpading=0 bgcolor='#000000'><TD bgcolor='#ffffe1' style='font-family:"+appconf.tttFontFamily+"; font-size="+appconf.tttFontSize+"px'>"+help+"</TD></TABLE></DIV>";
			else 
				message.innerHTML="<TABLE border=0 cellspacing=1 cellpading=0 bgcolor='#000000'><TD bgcolor='#ffffe1' style='font-family:"+appconf.tttFontFamily+"; font-size="+appconf.tttFontSize+"px'>"+help+"</TD></TABLE>";
		} else {
			var img=appconf.hWImage;
			if(img!="") 
				message.innerHTML="<TABLE border=0><A href='javascript: showLongToolTip()'><IMG border=0 src='"+img+"' alt='"+help+"'></A></TABLE>";
		}
		
		var valid=true;
		
		if(pos=="B"||pos=="BR"||pos=="BL")
			message.style.top=y+height+5;
		else if(pos=="T"||pos=="TR"||pos=="TL")
			message.style.top=y-5;
		else if(pos=="R"||pos=="L")
			message.style.top=y+height/2;
		else 
			valid=false;
			
		if(pos=="R"||pos=="BR"||pos=="TR")
			message.style.left=x+width+5;
		else if(pos=="L"||pos=="BL"||pos=="TL")
			message.style.left=x-5;
		else if(pos=="B"||pos=="T")
			message.style.left=x+width/2;
		else 
			valid=false;
			
		if(valid){
			message.pos=pos;
			timerID=setInterval("showToolTip()",900)
		}
	}
}

function showToolTip() {
	if(timerID!=undefined)
		clearInterval(timerID);
	timerID=setInterval("hideToolTip()",3000)
	message.style.visibility="visible"
	if(message.pos=="L"||message.pos=="BL"||message.pos=="TL")
		message.style.left=parseInt(message.style.left)-message.offsetWidth;
	else if(message.pos=="B"||message.pos=="T") 
		message.style.left=parseInt(message.style.left)-message.offsetWidth/2;
		
	if(message.pos=="T"||message.pos=="TR"||message.pos=="TL")
		message.style.top=parseInt(message.style.top)-message.offsetHeight;
	else if(message.pos=="R"||message.pos=="L")
		message.style.top=parseInt(message.style.top)-message.offsetHeight/2;
		
	viewHelp=true;
}

function hideToolTip(){
	if(timerID!=undefined)
		clearInterval(timerID);

	
	message.style.visibility="hidden";
	viewHelp=false;
	
}

function outCFTT(){
	if(extendedHelp==""||!viewHelp) 
		hideToolTip();
}

function showLongToolTip(){
	hideToolTip();
	if(appconf.helpWindowFile!=undefined)
		showHelpWindowFTT();
}

var helpWindowFTT;

function showHelpWindowFTT(){
	var hWLeft=400-appconf.hWWidth/2;
	var hWTop=300-appconf.hWHeight/2; 
	if(!(!helpWindowFTT||helpWindowFTT.closed)) { 
		helpWindowFTT.document.all["HelpWindowTitle"].innerHTML=help; 
		helpWindowFTT.document.all["HelpWindowText"].innerHTML=extendedHelp;helpWindowFTT.focus();
	} else
		helpWindowFTT=window.open(appconf.helpWindowFile,"HW","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width="+appconf.hWWidth+",height="+appconf.hWHeight+",left="+hWLeft+",top="+hWTop+",screenLeft="+hWLeft+",screenTop="+hWTop);
}

function replaceBlankString(str){
	while(str.indexOf(" ")!=-1)
		str=str.substring(0,str.indexOf(" "))+"&nbsp;"+str.substring(str.indexOf(" ")+1);
		
	return str;
	
}

function BrowserCheck(){
	this.isNN=false;this.isIE=false;
	this.isMac=false;
	var b=navigator.appName;
	if(b=="Netscape") 
		this.isNN=true;
	else if(b=="Microsoft Internet Explorer")
		this.isIE=true;
	
	if(navigator.userAgent.indexOf("Mac")!=-1)
		this.isMac=true;
		
}

var nav=new BrowserCheck();

//-->
