/*
        Functions useful for Conectu key development
        August 2003, Temuco - Chile
*/

//if (window != top) { top.location.href = location.href; }

/* This one tries to avoid the spammer's software that collects emails from web pages */
/* Usage: fckd_mail('webmaster','conectu','com' [,'alt text']) */
function ActivarFlash()
{
document.write('<object>\n');
document.write('<embed src="img/banner_hosting_inicio_ctu.swf" width="150" height="250"  bgcolor="#ffffff">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

function ActivarFlashDominioCompra()
{
    document.write('<object width="140" height="260">\n');
    document.write('<param name="movie" value="inicioryc.swf">\n');
    document.write('<param name="quality" value="high">\n');
    document.write('<embed src="img/banner_hosting_inicio_ctu.swf" width="140" height="260"  bgcolor="#DDEDFF" align="right"></embed>\n');
    document.write('</object>\n');
}

function fckd_mail() { a0=arguments[0]; a1=arguments[1]; a2=arguments[2]; a3=arguments[3]; mail_unfckd=a0+'@'+a1+'.'+a2; a3=(typeof(a3)=='undefined')?mail_unfckd:a3; document.write('<a href="mailto:'+mail_unfckd+'">'+a3+'<\/a>'); }

function fckd_flash(file, width, height){

var menu = 'false';
if (arguments.length>=4) { menu = 'true'; }

txt = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+ width +'" height="'+ height +'" > '
+ '<param name="quality" value="high" /><param name="menu" value="'+ menu +'" /><param name="bgcolor" value="#FFFFFF" /> '
+ '<param name="movie" value="'+ file +'" /> '
+ '<embed src="'+ file +'" width="'+ width +'" height="'+ height +'" ></embed> '
+ '</object> ';
document.write(txt);
}
function VerificaExtencionSelecionada(txt1,txt2,txt3,txt4,txt5,txt6)
{
//if((txt1.checked==false)&&(txt2.checked==false)&&(txt3.checked==false)&&(txt4.checked==false)&&(txt5.checked==false)&&(txt6.checked==false))
//alert(debe seleccionar una o mas extenciones);
}

function LimpiaCampo(txt1,txt2)
{
        if(txt1.value=='Email')
           txt1.value = '';
        if(txt2.value=='password')
          txt2.value = '';

}
function LlenaCampo(txt1,txt2)
{
if(!txt1.value)
{
txt1.value='Email';
txt1.blur();
}
if((!txt2.value)&&(txt1.value=='Email'))
{
txt2.value='password';
txt2.blur();
}

}

function CampoLleno(txt1,txt2)
{
       if ((txt1.value=="Email")||(txt1.value==""))
       {
                alert("Debe ingresar su mail");
                txt1.value='Email';
                txt1.focus();
       }
       else
       {
           if(txt2.value=="")
           {
                alert("Debe ingresar su password");
                txt2.focus();
           }
       }
}

