function Rollover(cual, porcual){
	if(document.images){
		document.images[cual].src = "img/" + porcual;
	}
}
//
//	MUESTRA LAS SOLAPAS DE MAS LEIDAS Y ANTERIORES EN EL PANEL DERECHO
//
function showNews(pintIdNoticias){
	if(pintIdNoticias == "masleidas"){
		document.getElementById('boAnteriores').className = "anterioresOff";
		document.getElementById('boMasLeidas').className = "masLeidasOn";
		document.getElementById('containerAnteriores').style.display = "none";
		document.getElementById('containerMasLeidas').style.display = "block";
	}
	else{
		document.getElementById('boMasLeidas').className = "masLeidasOff";
		document.getElementById('boAnteriores').className = "anterioresOn";
		document.getElementById('containerMasLeidas').style.display = "none";
		document.getElementById('containerAnteriores').style.display = "block";
	}
}
//
//  SUBMITE EL BUSCADOR
//
function submitSearch(pstrString){
	var cadena = new String(document.frmSearch.strSearch.value);
	if(cadena.length < 4){
		alert("Por favor ingrese por lo menos 4 letras a buscar");
		document.frmSearch.strSearch.focus();
		return;
	}
	document.frmSearch.action = "/buscador/1/"+cadena+"/";
	document.frmSearch.submit();
}
//
//
//
function agregarFavoritos(){
   if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
      var url="http://www.colabro.org.ar/";
      var titulo="Colegio de Abogados Rosario";
      window.external.AddFavorite(url,titulo);
   }
   else {
      if(navigator.appName == "Netscape")
         alert ("Presione Crtl+D para agregar este sitio en sus Favoritos");
   }
}
//
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Torsten Frey (tf@tfrey.de) -->
<!-- Web Site:  http://www.tfrey.de -->

<!-- Begin
function check_date(strfecha){
var checkstr = "0123456789";
var DateField = strfecha;
var Datevalue = "";
var DateTemp = "";
var seperator = ".";
var day;
var month;
var year;
var leap = 0;
var err = 0;
var i;
   err = 0;
   DateValue = DateField;
   /* Delete all chars except 0..9 */
   for (i = 0; i < DateValue.length; i++) {
	  if (checkstr.indexOf(DateValue.substr(i,1)) >= 0) {
	     DateTemp = DateTemp + DateValue.substr(i,1);
	  }
   }
   DateValue = DateTemp;
   /* Always change date to 8 digits - string*/
   /* if year is entered as 2-digit / always assume 20xx */
   if (DateValue.length == 6) {
      DateValue = DateValue.substr(0,4) + '20' + DateValue.substr(4,2); }
   if (DateValue.length != 8) {
      err = 19;}
   /* year is wrong if year = 0000 */
   year = DateValue.substr(4,4);
   if (year == 0) {
      err = 20;
   }
   /* Validation of month*/
   month = DateValue.substr(2,2);
   if ((month < 1) || (month > 12)) {
      err = 21;
   }
   /* Validation of day*/
   day = DateValue.substr(0,2);
   if (day < 1) {
     err = 22;
   }
   /* Validation leap-year / february / day */
   if ((year % 4 == 0) || (year % 100 == 0) || (year % 400 == 0)) {
      leap = 1;
   }
   if ((month == 2) && (leap == 1) && (day > 29)) {
      err = 23;
   }
   if ((month == 2) && (leap != 1) && (day > 28)) {
      err = 24;
   }
   /* Validation of other months */
   if ((day > 31) && ((month == "01") || (month == "03") || (month == "05") || (month == "07") || (month == "08") || (month == "10") || (month == "12"))) {
      err = 25;
   }
   if ((day > 30) && ((month == "04") || (month == "06") || (month == "09") || (month == "11"))) {
      err = 26;
   }
   /* if 00 ist entered, no error, deleting the entry */
   if ((day == 0) && (month == 0) && (year == 00)) {
      err = 0; day = ""; month = ""; year = ""; seperator = "";
   }
   /* if no error, write the completed date to Input-Field (e.g. 13.12.2001) */
   if (err == 0) {
      return true;
   }
   /* Error-message if err != 0 */
   else {
      return false;
   }
}
//  End -->

function submitCtt(){
	if(document.frmCtt.strNombre.value == ""){
		alert("Por favor ingrese su nombre");
		document.frmCtt.strNombre.focus();
		return;
	}
	if(document.frmCtt.strApellido.value == ""){
		alert("Por favor ingrese su apellido");
		document.frmCtt.strApellido.focus();
		return;
	}
	if(document.frmCtt.strTel.value == ""){
		alert("Por favor ingrese un teléfono de contacto");
		document.frmCtt.strTel.focus();
		return;
	}
	if(!validaMail(document.frmCtt.strMail.value)){
		alert("Por favor ingrese una casilla de correo válida");
		document.frmCtt.strMail.focus();
		return;
	}
	document.frmCtt.submit();
}

function submitFrmNews(){
	var strFecha = document.frmNews.strDia.value + document.frmNews.strMes.value + document.frmNews.strAno.value;
	//
	if(document.frmNews.strNombre.value == ""){
		alert("Por favor ingrese su nombre");
		document.frmNews.strNombre.focus();
		return;
	}
	if(document.frmNews.strApellido.value == ""){
		alert("Por favor ingrese su apellido");
		document.frmNews.strApellido.focus();
		return;
	}
	if(!check_date(strFecha)){
		alert("Por favor ingrese una fecha de nacimiento válida");
		document.frmNews.strDia.focus();
		return;
	}
	if(document.frmNews.strDNI.value == ""){
		alert("Por favor ingrese su DNI");
		document.frmNews.strDNI.focus();
		return;
	}
	if(!validaMail(document.frmNews.strMail.value)){
		alert("Por favor ingrese una casilla de correo válida");
		document.frmNews.strMail.focus();
		return;
	}
	document.frmNews.submit();
}

function submitDataRecomendar(){
	if(!validaMail(document.frm.strMail.value)){
		alert("Por favor ingrese una casilla de correo válida como destinatario");
		document.frm.strMail.focus();
		return;
	}
	if(!validaMail(document.frm.strRteMail.value)){
		alert("Por favor ingrese una casilla de correo válida como remitente");
		document.frm.strRteMail.focus();
		return;
	}
	document.frm.submit();
}

function focusField(pstrField){
	switch(pstrField.value){
		case "E-Mail (Campo Obligatorio)":
			pstrField.value = "";
			break;
		
		case "Nombre/s":
			pstrField.value = "";
			break;
	}
}

function focusOut(pstrField){
	switch(pstrField.name){
		case "strMail":
			if(pstrField.value == ""){
				pstrField.value = "E-Mail (Campo Obligatorio)";
			}
			break;
			
		case "strRteMail":
			if(pstrField.value == ""){
				pstrField.value = "E-Mail (Campo Obligatorio)";
			}
			break;
		
		case "strNombre":
			if(pstrField.value == ""){
				pstrField.value = "Nombre/s";
			}
			break;
	}
}

function validaMail(string){
	if (typeof(string)!='object'){
			valor = string;
	}
	else{
			var X = new String;
			X = string.value;			
			valor = X;
	}
	if (string == ""){
			return(false);
	}
	else{
		if (valor.search(/[A-Za-z0-9�\-\.\_]+@[A-Za-z0-9\-]+\.[A-Za-z0-9]+(\.[A-Za-z0-9]*)?/g) != 0)
			return (false);
		else
			return(true);	
	}
}

function openPopUp(direccion, pantallacompleta, herramientas, direcciones, estado, barramenu, barrascroll, cambiatamano, ancho, alto, izquierda, arriba, sustituir){
     var opciones = "fullscreen=" + pantallacompleta +
                 ",toolbar=" + herramientas +
                 ",location=" + direcciones +
                 ",status=" + estado +
                 ",menubar=" + barramenu +
                 ",scrollbars=" + barrascroll +
                 ",resizable=" + cambiatamano +
                 ",width=" + ancho +
                 ",height=" + alto +
                 ",left=" + izquierda +
                 ",top=" + arriba;
     var ventana = window.open(direccion,"recomendar",opciones,sustituir);
}

function changeSize(pstrSize){
	var sizeTitulo;
	var sizeContenido;
	//
	document.getElementById('imgxs').src = "img/1.jpg";
	document.getElementById('imgs').src = "img/2.jpg";
	document.getElementById('imgm').src = "img/3.jpg";
	document.getElementById('imgl').src = "img/4.jpg";
	document.getElementById('imgxs2').src = "img/1.jpg";
	document.getElementById('imgs2').src = "img/2.jpg";
	document.getElementById('imgm2').src = "img/3.jpg";
	document.getElementById('imgl2').src = "img/4.jpg";
	//
	switch(pstrSize){
		case "xsmall":
			sizeTitulo = "20px";
			sizeContenido = "11px";
			document.getElementById('imgxs').src = "img/1-roll.jpg";
			document.getElementById('imgxs2').src = "img/1-roll.jpg";
			break;
		case "small":
			sizeTitulo = "30px";
			sizeContenido = "12px";
			document.getElementById('imgs').src = "img/2-roll.jpg";
			document.getElementById('imgs2').src = "img/2-roll.jpg";
			break;
		case "medium":
			sizeTitulo = "36px";
			sizeContenido = "14px";
			document.getElementById('imgm').src = "img/3-roll.jpg";
			document.getElementById('imgm2').src = "img/3-roll.jpg";
			break;
		case "large":
			sizeTitulo = "40px";
			sizeContenido = "18px";
			document.getElementById('imgl').src = "img/4-roll.jpg";
			document.getElementById('imgl2').src = "img/4-roll.jpg";
			break;
	}
	//
	document.getElementById('tituloNews').style.fontSize = sizeTitulo;
	document.getElementById('contenidoNews').style.fontSize = sizeContenido;
}

function showLinks(pstrId){
	if(document.getElementById(pstrId).style.display == "none"){
		document.getElementById(pstrId).style.display = "block";
	}
	else{
		document.getElementById(pstrId).style.display = "none";
	}
}
//
function killIt(item){
	$(function(){
		$('#'+item).fadeOut(1000);
	});
}