// JavaScript Document

	function newWindow(pagina, ancho, alto){
			tamano = ("width=" + ancho + ", height=" + alto);                                
			window.open(pagina, '_blank', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no,' + tamano);
	}

	function funChangeErrorPicturesOne(theImageID){
			var theDefImage = ('images/logo.gif');
			if (eval('document.' + theImageID + '.complete == false')){
				eval('document.' + theImageID + '.src = (theDefImage)');
			}
	}
	
	function funChangeErrorPictures(){
		var theImgs = document.all.tags("IMG");
		for (i=0; i<theImgs.length; i++){
			if (jsLeft(theImgs[i].id, 8) == 'omImgPro'){
				if (theImgs[i].complete == false){
					theImgs[i].src = ('/inmodom/webpos/images/marcas/logo.png');
				}
			}
		}
	}
	
	function funChangeErrorPicturesPartners(){
		var theImgs = document.all.tags("IMG");
		for (i=0; i<theImgs.length; i++){
			if (jsLeft(theImgs[i].id, 12) == 'theImageAso_'){
				if (theImgs[i].complete == false){
					theImgs[i].src = ('images/logo.gif');
				}
			}
		}
	}
	
	function jsLeft(String, Length){
			 if (String == null)
			 return (false);
			 return String.substr(0, Length);
	}

