function popUpphototour2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=765,height=365,left = 5,top =5');");
}

function popUpbanner(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=285,left = 1,top =1');");
}

function popUp2003(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=780,height=570,left = 3,top =1');");
}

function popUpgalleries(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=687,height=585,left = 1,top =1');");
}

function popUpbannerlarge(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=585,left = 1,top =1');");
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=700,height=550,left = 20,top =5');");
}

function popUppricelist(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=710,height=550,left=1,top=1');");
}

function popUpnoexiste(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=220,height=160,left=1,top=1');");
}

function popUpchat(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=630,height=456,left = 1,top =1');");
}

function popUpcol(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=535,height=450,left = 1,top =1');");
}

function popUphotels(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=905,height=608,left=0,top=0');");
}

function popUpphototour(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=365,left = 5,top =5');");
}

function popUppostal(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=495,height=450,left = 1,top =1');");
}


function popUpfotoupload(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=315,left = 250,top =250');");
}

function popUpenviarmensajeamigo(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=240,height=180,left = 250,top =250');");
}

function popUpampliacion(URL,WIDTH,HEIGHT,SCROLLBAR) {
day = new Date();
id = day.getTime();


eje_x=(screen.width- WIDTH) / 2;
eje_y=(screen.height- HEIGHT) / 2;

window.open(URL, 'ampliacion','toolbar=0,scrollbars='+SCROLLBAR+',location=0,statusbar=0,menubar=0, resizable=0,width='+WIDTH+',height='+HEIGHT+',left = ' + eje_x +', top = ' + eje_y);


}

function popUpampliacionguia(URL,WIDTH,HEIGHT,SCROLLBAR) {
day = new Date();
id = day.getTime();


eje_x=(screen.width- WIDTH) / 2;
eje_y=(screen.height- HEIGHT) / 2;

window.open(URL, 'ampliacion','toolbar=0,scrollbars='+SCROLLBAR+',location=0,statusbar=0,menubar=0, resizable=0,width='+WIDTH+',height='+HEIGHT+',left = ' + eje_x +', top = ' + eje_y);


}


//Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
function makevisible(cur,which){
	strength=(which==0)? 1 : 0.8
	
	if (cur.style.MozOpacity)
		cur.style.MozOpacity=strength
	else if (cur.filters)
		cur.filters.alpha.opacity=strength*100
}

function textCounter(field, countfield, maxlimit) {
   if(field.value.length > maxlimit){
      field.value = field.value.substring(0, maxlimit);
   }
   else{ 
      countfield.value = maxlimit - field.value.length;
   }
}
function cleartagboard() {
    document.tagboard.cjmsg.value="";
}  
function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=250,left = 262,top = 184');");
}
var isNav, isIE
if (parseInt(navigator.appVersion) >= 4) {
  if (navigator.appName == "Netscape")
    isNav = true
  else
    isIE = true
}
function showKeyValue(evt) {
  var keyValue
  if (isNav) 
    keyValue = evt.which
  else
    keyValue = window.event.keyCode
        
  if (keyValue == 13) {
    javascript:document.tagboard.submit();
  }
  return false
}

