/* 
 * Funciones generales de la aplicación.
 * @date 2008-07-17
 */
function VentanaNueva(mypage, myname, w, h){
		var winL = Math.round((screen.width - w) / 2);
		var winT = Math.round((screen.height - h) / 2);
		var winprops = 'height='+h+',width='+w+',scrollbars=no,resizable=no';
		win = window.open(mypage, myname, winprops);
		win.moveTo(winL,winT);
		}
var bannerID=0 
function text (msg,ctrlwidth,myform) { 
        msg = " --- "+msg 
        newmsg = msg 
        while (newmsg.length < ctrlwidth) { 
                newmsg += msg 
        } 
        document.write ("<INPUT NAME=\"text\" VALUE=\""+newmsg+"\" SIZE=\""+ctrlwidth+"\" onClick=\"document.location.href='noticiesEO.php?id=50'\" style=\"cursor:hand;cursor:pointer;width:"+ctrlwidth+";border:0px;font-face:verdana;color:#000000;size:10px;\" onMouseOver=\"this.style.color='#9B1518'\" onMouseOut=\"this.style.color='#000000'\">"); 
        var bannerID = null 
        rollmsg() 
} 
function rollmsg() { 
      NowMsg = document.Scrolltext.text.value 
        NowMsg = NowMsg.substring(1,NowMsg.length)+NowMsg.substring  (0,1) 
        document.Scrolltext.text.value = NowMsg 
        bannerID = setTimeout("rollmsg()",300)
} 
 
