function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function getOffsets (evt) {
  var target = evt.target;
  if (typeof target.offsetLeft == 'undefined') {
    target = target.parentNode;
  }
  var pageCoords = getPageCoords(target);
  var eventCoords = { 
    x: window.pageXOffset + evt.clientX,
    y: window.pageYOffset + evt.clientY
  };
  var offsets = {
    offsetX: eventCoords.x - pageCoords.x,
    offsetY: eventCoords.y - pageCoords.y
  }
  return offsets;
}
function getPageCoords (element) {
  var coords = {x : 0, y : 0};
  while (element) {
    coords.x += element.offsetLeft;
    coords.y += element.offsetTop;
    element = element.offsetParent;
  }
  return coords;
}
function isBusca(string)
{
//   if (!string) return false;
   var iChars = "*|,\":<>[]{}`\';()&$#%@^_~-?/";
   for (var i = 0; i < string.length; i++)
   {
      if (iChars.indexOf(string.charAt(i)) != -1)
         {return false}
   }
   return true;
} 
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}
function normalN1(obj,coloOver) {
	obj.style.background=coloOver;
	obj.style.color="#666666";
}
function rolloverN1(obj,coloIn) {
	obj.style.background=coloIn;
	obj.style.color="#000000";
	obj.style.cursor="hand";
}
function normalN2(obj) {
	obj.style.background="#719ED7";
	obj.style.color="#666666";
}
function rolloverN2(obj) {
	obj.style.background="#82ABDD";
	obj.style.color="#000000";
	obj.style.cursor="hand";
}
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
ns6 = (document.getElementById)? true:false

function showHint(hintname, evt, altura)
{
if(ie4)   // si es explorer el browser
{
	document.all(hintname).style.pixelLeft = evt.clientX-evt.offsetX-5
	document.all(hintname).style.pixelTop = altura;
	document.all(hintname).style.visibility="visible";
	}
	else if(ns4 || ns6)
	{
	document.getElementById(hintname).style.left=evt.pageX-getOffsets(evt).offsetX-3+"px";
	document.getElementById(hintname).style.top = altura+"px";
	document.getElementById(hintname).style.visibility="visible";
	}
}
function showHint3(hintname, evt, altura, izq)
{
if(ie4)   // si es explorer el browser
{
	document.all(hintname).style.pixelLeft = evt.clientX-evt.offsetX-izq
	document.all(hintname).style.pixelTop = altura;
	document.all(hintname).style.visibility="visible";
}
	else if(ns4 || ns6)
{
	document.getElementById(hintname).style.left=evt.pageX-getOffsets(evt).offsetX-izq+"px";
	document.getElementById(hintname).style.top = altura+"px";
	document.getElementById(hintname).style.visibility="visible";
	}
}
function showHint2(hintname, event)
{
document.getElementById(hintname).style.visibility="visible";
}
function hideHint(hintname)
{
document.getElementById(hintname).style.visibility="hidden";
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function validate(emailad) {
var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
var check=/@[\w\-]+\./;
var checkend=/\.[a-zA-Z]{2,3}$/;
	if(((emailad.search(exclude) != -1)||(emailad.search(check)) == -1)||(emailad.search(checkend) == -1))
{
 return true
  }
 else  return false
}
function chequea_esp(forma)
{
		if(forma.nombre.value == "")
		{
			alert("Ingrese nombre")	
			forma.nombre.focus()
			return false
		}
		if(forma.apellido.value == "")
		{
			alert("Ingrese apellido")
			forma.apellido.focus()
			return false
		}
		if(forma.email.value == "")
		{
			alert("Ingrese email")
			forma.email.focus()
			return false
		}
		if(validate(forma.email.value))
		{
			alert("Debe contener email valido.")
			forma.email.focus();
			return false
  		}
		if(forma.pais.value == "")
		{
			alert("Ingrese pais")
			forma.pais.focus()
			return false
		}
		return true
}
function chequea_ing(forma)
{
		if(forma.nombre.value == "")
		{
			alert("Enter Name")	
			forma.nombre.focus()
			return false
		}
		if(forma.apellido.value == "")
		{
			alert("Enter Surname")
			forma.apellido.focus()
			return false
		}
		if(forma.email.value == "")
		{
			alert("Enter email")
			forma.email.focus()
			return false
		}
		if(validate(forma.email.value))
		{
			alert("Enter valid email")
			forma.email.focus();
			return false
  		}
		if(forma.pais.value == "")
		{
			alert("Enter Country")
			forma.pais.focus()
			return false
		}
		return true
}
