function ok(){ document.fok.submit() }
function ok2(){ document.fok2.submit() }
function ok3(){ document.fok3.submit() }
function logout(){ document.flogout.submit() }
function cambiar() {
document.fok.grabar.value="0";
document.fok.submit();
}
function limitno(que,cuanto)
{
var v=que.value
if(v.length>cuanto)
  que.value=v.substring(0,cuanto)
else
  document.fok.contno.value=cuanto-v.length
}
function limitap(que,cuanto)
{
var v=que.value
if(v.length>cuanto)
  que.value=v.substring(0,cuanto)
else
  document.fok.contap.value=cuanto-v.length
}

function logoinicio(){ 
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="362" height="362">') 
   document.write('<param name="movie" value="../images/logoprincipal.swf">')
   document.write('<param name="quality" value="low">')
   document.write('<param name="wmode" value="transparent">')
   document.write('<embed src="../images/logoprincipal.swf" quality="low" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="362" height="362"></embed></object>')
}
function verpersi(){
document.fverpersi.submit()
}
function verperno(){
document.fverperno.submit()
}
function editar(){
document.feditar.submit()
}
function limit1(que,cuanto)
{
var v=que.value
if(v.length>cuanto){
  que.value=v.substring(0,cuanto)
} else {
  document.fok.cont1.value=cuanto-v.length
}  }
function limit2(que,cuanto)
{
var v=que.value
if(v.length>cuanto){
  que.value=v.substring(0,cuanto)
} else {
  document.fok.cont2.value=cuanto-v.length
}  }
function limit3(que,cuanto)
{
var v=que.value
if(v.length>cuanto){
  que.value=v.substring(0,cuanto)
} else {
  document.fok.cont3.value=cuanto-v.length
}  }
function limit4(que,cuanto)
{
var v=que.value
if(v.length>cuanto){
  que.value=v.substring(0,cuanto)
} else {
  document.fok.cont4.value=cuanto-v.length
}  }
function limit5(que,cuanto)
{
var v=que.value
if(v.length>cuanto){
  que.value=v.substring(0,cuanto)
} else {
  document.fok.cont5.value=cuanto-v.length
}  }
function limit6(que,cuanto)
{
var v=que.value
if(v.length>cuanto){
  que.value=v.substring(0,cuanto)
} else {
  document.fok.cont6.value=cuanto-v.length
}  }