<!--
function openWin(image, winName, width, height) { 
  var url  = "images.php?head="+winName+'&image='+image ;
  var features = "scrollbars=yes,width="+width+",height="+height ;
  window.open(url, winName, features);
}
function toSearch () {
	frm = document.frmSearch ;
	strP = frm.pattern.value 
	
	if(isEmpty(strP)) {
		alert("Falta el Parametro a buscar") ;
	}else {
		frm.submit () ;
	}
}
function isEmpty(inputVal) {
	inputStr = inputVal.length
	var contsps = 0    // contador de espacios en blanco
	for (var i = 0; i < inputStr ; i++) {
		var oneChar = inputVal.charAt(i)
		if (oneChar == " ") {
			contsps = contsps + 1 
		}
	}
	if (contsps == inputStr) {
		return true
	}else {
        return false 
	}
}
//-->
<!-- Animacion
function DoPanLeft() {
        document.ptviewer.startAutoPan( -0.6, 0.0, 1.0 );
}

function DoPanUp() {
        document.ptviewer.startAutoPan( 0.0, 0.6, 1.0 );
}

function DoPanDown() {
        document.ptviewer.startAutoPan( 0.0, -0.6, 1.0 );
}

function DoPanRight() {
        document.ptviewer.startAutoPan( 0.6, 0.0, 1.0 );
}

function DoAutorotationStop() {
        document.ptviewer.stopAutoPan();
}
function DoZoomIn() {
	document.ptviewer.startAutoPan( 0.0, 0.0, 1.0/1.03 );
}
function DoZoomOut() {
	document.ptviewer.startAutoPan( 0.0, 0.0, 1.03 );
}
function DoShowHideHotspots() {
	document.ptviewer.toggleHS();
}
function DoReset() {
	document.ptviewer.gotoView( -45, -60, 80 );
}

function mousehs(n) {
	if( n== -1 )
   			document.cn.hsnum.value = "---" ;
	else
   			document.cn.hsnum.value = n ;
}
function getview(p,t,f) {
   document.cn.pan.value = p ;
   document.cn.tilt.value = t ;
   document.cn.fov.value = f ;
}

function startPano(n) {
        document.ptviewer.newPanoFromList(n);
}
//-->