<!-- //navigation rollover functions
var img1   = new Image();
var img1on = new Image();
var img2   = new Image();
var img2on = new Image();
var img3   = new Image();
var img3on = new Image();
var img4   = new Image();
var img4on = new Image();
var img5   = new Image();
var img5on = new Image();

img1.src   = "http://www.grupoproar.com/images/menu/empresa.gif";
img1on.src = "http://www.grupoproar.com/images/menu/empresa_on.gif";
img2.src   = "http://www.grupoproar.com/images/menu/contacto.gif";
img2on.src = "http://www.grupoproar.com/images/menu/contacto_on.gif";
img3.src   = "http://www.grupoproar.com/images/menu/promo-encurso.gif";
img3on.src = "http://www.grupoproar.com/images/menu/promo-encurso_on.gif";
img4.src   = "http://www.grupoproar.com/images/menu/promo-final.gif";
img4on.src = "http://www.grupoproar.com/images/menu/promo-final_on.gif";  
img5.src   = "http://www.grupoproar.com/images/menu/promo-prox.gif";
img5on.src = "http://www.grupoproar.com/images/menu/promo-prox_on.gif";

self.status='Proar';

function highlight(img) {
   document[img].src = eval(img+"on.src");
}

function unhighlight(img) {
   document[img].src = eval(img+".src");
   self.status='Proar';
   return true
}

function preloadImages() {
    if (document.images) {
        var imgFiles = preloadImages.arguments;
        if (document.preloadArray == null) {
            document.preloadArray = new Array();
        }
        var i = document.preloadArray.length;
        with (document) {
            for (var j = 0; j < imgFiles.length; j++) {
                if (imgFiles[j].charAt(0) != "#") {
                    document.preloadArray[i] = new Image();
                    document.preloadArray[i++].src = imgFiles[j];
                }
            }
        }
    }
}

var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;

function show(sw,obj) {
	// show/hide the divisions
	if (sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'visible';
	if (!sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'hidden';
	if (sw && ns4) document.layers[obj].visibility = 'visible';
	if (!sw && ns4) document.layers[obj].visibility = 'hidden';
}

function setSize()	{
	if (screen.availWidth > 800)
	{
		self.resizeTo(880,690);
		//self.resizeTo(self.screenLeft+780,self.screenTop+500);
		moveTo(40,20)
	}
		else
	{
		self.resizeTo(screen.availWidth,screen.availHeight);
		moveTo(0,0);
	}
}

function SubmitForm()
{
  if (document.info.nombre.value == '')
       {  alert('El nombre es obligatorio - Por favor rellena el campo');
          document.info.nombre.focus();
          return;
       }
	   
  if (document.info.apellidos.value == '')
       {  alert('El apellido es obligatorio - Por favor rellena el campo');
          document.info.apellidos.focus();
          return;
       }

  if (document.info.email.value == '')
       {  alert('La dirección de Email es obligatoria - Por favor rellena el campo');
          document.info.email.focus();
          return;
       }	  
	   
  if (emailCheck(document.info.email.value) == false)
       {  document.info.email.focus();
          return;
       }
     
if (document.info.observacion.value == '')
     {  alert('Las observaciones son obligatorias - Por favor rellena el campo');
        document.info.observacion.focus();
        return;
     }

document.info.submit();
}

function popImg(path,x,y) {
var winx = eval(x+20);
var winy = eval(y+20);
window.open(path, null,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+winx+',height='+winy+',top=30,left=70');
}