<!--
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+''
win = window.open(mypage,myname,settings);
}


var nav4 = window.Event ? true : false;

function acceptNum(evt){	
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	
var key = nav4 ? evt.which : evt.keyCode;	
return (key <= 13 || (key >= 48 && key <= 57));
}

function printPage() { print(document); }

function favorito(){
if (window.external) { 
window.external.AddFavorite(window.location.href,window.document.title); }
}

function validate_email(txtinput) {
    if(-1 == txtinput.value.indexOf("@")) { 
       txtinput.focus(); 
       alert("El correo debe tener una '@'."); 
       return false; 
       }
    if(-1 != txtinput.value.indexOf(",")) { 
       txtinput.focus(); 
       alert("El correo no debe tener una ','."); 
       return false; 
       }
    if(-1 != txtinput.value.indexOf("#")) { 
       txtinput.focus(); 
       alert("El correo no debe tener una '#'." ); 
       return false; 
       }
    if(-1 != txtinput.value.indexOf("!")) { 
       txtinput.focus(); 
       alert("El correo no debe tener una '!'." ); 
       return false; 
       }
    if(-1 != txtinput.value.indexOf(" ")) { 
       txtinput.focus(); 
       alert("El correo no debe tener un espacio." ); 
       return false; 
       }
    if(txtinput.value.length == (txtinput.value.indexOf("@")+1) ) {
       txtinput.focus();
       alert("El correo debe tener un nombre de dominio después de la '@'.");
       return false;
       }

    if(txtinput.value.length == 0) { 
      txtinput.focus(); 
      alert("Favor digite el e-mail."); 
      return false; 
      }

    return true;
  }

//Donde todos los campos son obligatorios
function validate(frmPassed) {
        var leng, blnFlag;
	for (i = 0; i < frmPassed.elements.length; i++) {
    if ( (i!=1000) ){
		if(frmPassed.elements[i].value =="") {
			alert("Favor ingrese valores para el campo...")
                        frmPassed.elements[i].focus();
			return false;
	   	}
               leng = frmPassed.elements[i].value.length;
               for(j=0; j<leng; ++j) {
                	if (frmPassed.elements[i].value.charAt(j) == " ") {
                 		blnFlag = false; }
                 	else {
                 		blnFlag = true;
                		break; }
                }
                          if (blnFlag==false) {
                         	alert("Favor digite la información válida para el campo ...");
                         	frmPassed.elements[i].focus();
                        	frmPassed.elements[i].select();
                        	return false;
          }

	   }
	 }  
	return true
}


function scroll(seed)
{
 var msg=".:. Garper Group .:."; 
 var out = " ";
 var c = 1;
 if (seed > 100) {
 seed--;
 var cmd="scroll(" + seed + ")";
 timerTwo=window.setTimeout(cmd,100);
 }
 else if (seed <= 100 && seed > 0) {
 for (c=0 ; c < seed ; c++) {
 out+=" ";
 }
 out+=msg;
 seed--;
 var cmd="scroll(" + seed + ")";
 window.status=out;
 timerTwo=window.setTimeout(cmd,100);
 }  else if (seed <= 0) {
 if (-seed < msg.length) {
 out+=msg.substring(-seed,msg.length);
 seed--;
 var cmd="scroll(" + seed + ")";
 window.status=out;
 timerTwo=window.setTimeout(cmd,100);
 }
 else {
 window.status=" ";
 timerTwo=window.setTimeout("scroll(100)",7);
 }
 }
}
//timerONE=window.setTimeout('scroll(100)',50);

// End -->
//-->
