function GetElement(element){
	return document.getElementById(element);
}
function setValue(element,value){
if(GetElement(element) && value!=null && value!='undefined')
	GetElement(element).value = value;

}
function __doDisablecontrol(scontrol){
	if(GetElement(scontrol)){
		GetElement(scontrol).disabled = true;
	}
}
function __doOpenlinkwindow(site){
	window.open(site)
}
function __doErrorprocess(e){
	alert(e.description);
}
function __doOpenpopup1(sname,scontent, sheight,sstyle){
if(sstyle==null || sstyle=='undefined')
	return;
try{
window.open(
	'showpopup1.aspx'+
	'?Content='+scontent +
	'&style='+sstyle +
	'&windowname='+sname ,
	sname, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left=0,top=0,width=400,height=' + sheight );	
}
catch(e){
	__doErrorprocess(e);
}

}
function __doEvallink(slink){
var slocal = String(slink);
slocal = slocal.toLowerCase();
if(slocal.indexOf('java')!=-1)
	eval(slink);
}
function SetValues(objName,value){
setValue(objName,value);
}
function goHome(){
setValue('IdMenuNivel1','');
setValue('IdMenuNivel2','');
setValue('IdMenuNivel3','');
setValue('IdMenuNivel4','');
document.frmHome.submit();
}
function goContent(nivel1Value,nivel2Value,nivel3Value,nivel4Value){
setValue('IdMenuNivel1',nivel1Value);
setValue('IdMenuNivel2',nivel2Value);
if(nivel3Value==null || nivel3Value=='undefined')
	nivel3Value = '';
setValue('IdMenuNivel3',nivel3Value);
setValue('IdMenuNivel4',nivel4Value);
document.frmHome.submit();
}
function __goBanner(surl,bnewwindow)
	{
	if(bnewwindow)
		{
		childWindow = window.open('showBanner.aspx?gourl='+surl,'ComcelBanner');
		childWindow.opener = self;
		}
	else
		{
		document.location.href = document.location.href + '?gourl=' + surl;
		}
	}
	
function __goPopUp(surl,bnewwindow,swidth, sheight)
	{
	alert('entro a goPopUp');
	if(bnewwindow)
		{
		childWindow = window.open('showBanner.aspx?gourl='+surl,'ComcelBanner', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left=0,top=0,width="+swidth+",height="+sheight+"');
		childWindow.opener = self;
		}
	else
		{
		document.location.href = document.location.href + '?gourl=' + surl;
		}
	}
