function Ver(elcualo,vision)
{
document.getElementById(elcualo).style.visibility = vision
}
function Cargar(elcualo)
{
self.window.location = elcualo
}
function Centrar(elcualo)
{
altura = altdisp - 200
centrada = document.getElementById(elcualo).style
centrada.overFlowType = "none"
izquierda = (parseInt(ancdisp) - parseInt(centrada.width))/2
alto = (parseInt(altura) - parseInt(centrada.height))/2
centrada.left = izquierda
centrada.top = alto
centrada.visibility = "visible"
}
function Enviar(forma)
{
document.getElementById(forma).submit()
}
function Acabose(e)
{
if(NS){window.releaseEvents(Event.MOUSEUP || Event.MOUSEDOWN || Event.MOUSEMOVE)}
dir = ""
raton = false
}

function Diferencia(e)
{
if(NS)
{
paginaX = e.pageX
paginaY = e.pageY
}
else
{
paginaX= event.clientX
paginaY= event.clientY
}
despx = paginaX - xratact
despy  = paginaY - yratact
xrat = Izini + despx
yrat = Topini + despy
if(dir == "E" || dir == "SE"){Sumar(0,0,ancho + despx,0)}
if(dir == "S" || dir=="SO" || dir == "SE"){Sumar(0,0,0,alto + despy)}
if(dir == "O" || dir == "SO"){Sumar(paginaX,0,(ancho - despx),0)}
if(dir == "mover"){Sumar(xrat,yrat,0,0)}
return true
}

function Version()
{
texto = "<center><font face='Arial, Helvetica, sans-serif' size='2'><b>" + version + "</b></font></center>"
document.getElementById('Version').innerHTML = texto
}
function PMarcos()
{
document.getElementById('PMarco').innerHTML.content = "http://p1000p/gekkemark"
alert("1")
document.getElementById('PMarco').style.content = "http://p1000p/gekkemark"
alert("2")
document.getElementById('PMarco').content = "http://p1000p/gekkemark"
alert("3")
document.getElementById('PMarco').style.visibility = "visible"
}
function Empieza(e)
{
if(!raton)
{
raton = true
if(NS){
xratact= e.pageX
yratact= e.pageY
window.captureEvents(Event.MOUSEMOVE)
onmousemove = Diferencia
}
else
{
xratact= event.clientX
yratact= event.clientY
document.onmousemove = Diferencia
}
}
Topini = parseInt(Contenedor.top)
Izini = parseInt(Contenedor.left)
ancho = parseInt(Contenedor.width)
alto = parseInt(Contenedor.height)
return true
}



function Sumar(x0,y0,x1,y1)
{
if (x0 != 0 && (x1 >= 165 || dir == "mover"))
	{
	Contenedor.left = x0
	}
if (y0 != 0)
	{
	Contenedor.top = y0
	}
if (x1 != 0 && x1 >= 165)
	{
	if(NS5){clipR = x1 - 10}
	else{clipR = x1 - 15}
	Contenedor.width = x1
	}
if (y1 != 0 && y1 >= 65)
	{
	Contenedor.height = y1
	clipB = y1 - topP
	}
}
