function maillink(addr) {
var domain = "cascompany.com"
document.write("<a href=\"mailto:"+addr+"@"+domain+"\">")
document.write(addr+"@"+domain+"</a>")
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="&nbsp;&nbsp;"+dayarray[day]+", "+daym+" de "+montharray[month]+" de "+year+" | "+hours+":"+minutes+" "+dn+" (GMT-3)"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}

// JavaScript Document
function preloadFlash() { 
myFlash01 = new Image(); myFlash01.src ="/inc/inc_prices.swf"; 
myFlash02 = new Image(); myFlash02.src ="/inc/inc_title.swf"; 
} 

preloadFlash();

function SetVar(movie,var1,v1,var2,v2){
window.document[movie].SetVariable(var1, v1)
window.document[movie].SetVariable(var2, v2)
}
function WriteFlash(ffile,movieid,fheight,fwidth){
document.write( "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=" + movieid + " codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=" + fwidth + " height=" + fheight +">");
document.write( "<param name=movie value=" + ffile +"><param name=quality value=high><param name=wmode value=transparent>");
document.write( "<embed name=" + movieid + " src=\"" + ffile + "\" width=" + fwidth +" height=" + fheight + " quality=high wmode=transparent swLiveConnect=true pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed></object>");
}
function Price(movieid,value) {
var ffile="/inc/inc_prices.swf";
var v2="https://secure.cascompany.com/billing/order/index.php";
WriteFlash(ffile,movieid,"18","100");
SetVar(movieid,"text",value,"url",v2);
}
function rPrice(movieid,value) {
var ffile="/inc/inc_prices.swf";
var v2="https://secure.cascompany.com/billing/order/index.php?v=2";
WriteFlash(ffile,movieid,"18","100");
SetVar(movieid,"text",value,"url",v2);
}
function Title(movieid,text,linkurl) {
var ffile="/inc/inc_title.swf";
WriteFlash(ffile,movieid,"22","120");
SetVar(movieid,"text",text,"url",linkurl);
}
function DomTit(movieid,text,linkurl) {
var ffile="/inc/inc_title_dom.swf";
WriteFlash(ffile,movieid,"22","85");
SetVar(movieid,"text",text,"url",linkurl);
}

