function dialogOpen(Url,Wvar,wWidth,wHeight)
{
	window.showModalDialog(Url,Wvar,"dialogWidth:"+wWidth+";dialogHeight:"+wHeight+";help:no;status:no;scrollbars=no;resizable=yes;");
}
function windowOpen(Url,wTarget,wWidth,wHeight)
{
	window.open(Url,wTarget,"width="+wWidth+",height="+wHeight+",menubar=0,toolbar=0,location=0,status=0,resizable=1,scrollbars=yes");
}
function checkInput(frms)
{
	for (var i=0;i<frms.length;i++){
		if (frms.elements[i].value==""){
			alert("Each one of individual event of the form must be filled out! ");
			return false;
		}
	}
}
function checkInputFirst(frms)
{
	if (frms.elements[0].value==""){
		alert("The name can't be free ");
		frms.elements[0].focus();
		return false;
	}
}
function selectall(frm,thisChecked)
{
	var l=frm.sel.length;
	if(l==null)
		l=1;
	if(l==1){
		frm.sel.checked = thisChecked;
	}else{
	for(i=0;i<=frm.sel.length;i++){
		if(frm.sel[i]!=null)
    		frm.sel[i].checked = thisChecked;}
	}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function cha(n){
	var img = document.getElementById("img"+n);
	var c = document.getElementById("c"+n);
	if(c.style.display=='none'){
		c.style.display='';
		img.innerHTML = '<a href="javascript:cha('+n+');"><img src="/Emperor/images/dot.gif" border="0"></a>&nbsp;';
	}else{
		c.style.display='none';
		img.innerHTML = '<a href="javascript:cha('+n+');"><img src="/Emperor/images/img1.gif" border="0"></a>&nbsp;';
	}
}
