function valiform() {/* bool valiform( )::if a field in 'arguments' is null, it shall send not the form. no arguments will still send form. */
var submitt = true;

for (var i = 0; i < arguments.length; i++) //searches for all fields to have something.
  {
  if (arguments[i] == '') { submitt = false; }
  }
return submitt;
}


function see(element, visible, inline) { /* NULL see( str element, bool visible )::changes element's display from 'none' to block/inline or vice versa [25|setiembre|2006] */
var disp = 'none';
if(visible) if(inline) disp = 'inline'; else disp = 'block';
document.getElementById(''+element).style.display = disp;
}


function swapsee(elem1, elem2, inline) { /* NULL swapsee( str element, str element, bool inline/block )::sets first parameter's display to none and second do block/inline */
var disp = (inline)?'inline':'block';
document.getElementById(''+elem1).style.display = 'none';
document.getElementById(''+elem2).style.display = disp;
}


function gebi(s1) {
return document.getElementById(''+s1)
}


function textaEnlarge(texta, height, font, size) { /* NULL textaEnlarge( obj HTMLtexarea, int minimun height in pixels [, str font-family to match] [, int font-size to match] ) */
var ob = new Object;
var lediv = new Object;

//creates new ELEMENT only if there is none created yet.
ob = document.getElementById('sps');

if(!ob) {
  lediv = document.createElement('div');
  lediv.setAttribute('id', 'sps');
  document.body.appendChild(lediv);
  }
ob = document.getElementById('sps');
ob.style.width = texta.clientWidth+5+'px';
ob.style.position = 'absolute';
ob.style.top = '0px';
ob.style.left = '-943px';
if(font) ob.style.fontFamily = font;
if(size) ob.style.fontSize = size+'pt';
ob.innerHTML = texta.value.replace(/\n/g, "<br />");

if(ob.clientHeight > 20 && ob.clientHeight > (height - 50)) texta.style.height = ob.clientHeight+(50)+'px';
else texta.style.height = height+'px';
}
