function Mano(obj){	obj.style.cursor = "hand"}
function ChangeImage(obj, img, titulo){obj.src = img;Mano(obj);//obj.alt=titulo
}
function LlenaCombo(control, controlToPopulate, ItemArray, GroupArray)
{
  var myEle ;  var x ;
  for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;
  myEle = document.createElement("option") ;
  myEle.value = "" ;
  myEle.text = "" ;
  controlToPopulate.add(myEle) ;
 for ( x = 0 ; x < ItemArray.length  ; x++ )
    {
     if ( GroupArray[x] == control.value )
       {
          myEle = document.createElement("option") ;
          myEle.value =x ;
         myEle.text      = ItemArray[x] ;
         controlToPopulate.add(myEle) ;
       }
    }
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
  
  popUpWin.focus()
}

		function validamail(txtmail) {
		carmal = " /:,;"
		if (txtmail == " " ) {
			return false
		}

		for (i=0; i<carmal.length; i++) {

			carmal2 = carmal.charAt(i)

			if (txtmail.indexOf(carmal,0) != -1) {
				return false
			}
		}

		atPos = txtmail.indexOf("@",1)

		if (atPos == -1) {
			return false
		}

		if (txtmail.indexOf("@",atPos+1) != -1) {
			return false
		}

		periodopos = txtmail.indexOf(".",atPos)

		if (periodopos == -1) {
			return false
		}

		if (periodopos+3 >  txtmail.length) {
			return false
		}

		return true			
	}
