// JavaScript Document


var wR = "";
var wR3 = "";
var wR4 = "";
function checkMe()
{
wR = "";
wR3 = "";
wR4 = "";
var nm = document.forms["myform"].sender_email.value.length;
var nm3 = document.forms["myform"].sender_name.value.length;
var nm2 = document.forms["myform"].message.value.length;



var booMa2 = new RegExp("[A-Za-z-]{1,30}");

var booMa = new RegExp("[\\w\\.-]+(\\+[\\w-]*)?@([\\w-]+\\.)+[\\w-]");
	
	strEmail = document.forms["myform"].sender_email.value;
	
	strName = document.forms["myform"].sender_name.value;
	
/////////////////////////////////////////// Email
	if(booMa.test(strEmail) && nm > 0)
	{
		document.getElementById("divErr").innerHTML = "";
	}
	else
	{
	document.getElementById("divErr").innerHTML = "<font style='color:red'> Email incorrecto</font>";
		wR = "yes";
		
}

/////////////////////////////////////////// Name 
if(booMa2.test(strName) && nm3 > 0)
	{
		document.getElementById("divErr2").innerHTML = "";
	}
	else
	{
	document.getElementById("divErr2").innerHTML = "<font style='color:red'>Introduzca su nombre</font>";
		wR3 = "yes";
		
}


/////////////////////////////////////////// Message
if(nm2 > 5)
	{
		document.getElementById("divErr3").innerHTML = "";
	}
	else
	{
	document.getElementById("divErr3").innerHTML = "<font style='color:red'>Mensaje</font>";
		wR4 = "yes";
		
}



}
//////////////////////////////////////////////////////////////////////////
function doNe(){
checkMe();
var nm = document.forms["myform"].sender_email.value.length;
var txtName = document.forms["myform"].sender_name.value.length;
var txtMessage = document.forms["myform"].message.value.length;

//alert(wR);
	var erR ="";
	
	if(wR == "yes" || nm  == 0 ){
	erR += "\n-Por favor introduzca su email.";
	document.getElementById("divErr").innerHTML = "<font style='color:red'>Introduzca su email</font>";	
	}

	if(txtName == 0 || wR3 == "yes")
	{
	erR += "\n-Por favor introduzca su nombre.";	
	document.getElementById("divErr2").innerHTML = "<font style='color:red'>Introduzca su nombre</font>";	
//	document.getElementById("divErr").innerHTML = "inccrrect email";		
	document.forms["myform"].sender_name.focus();
//	return false;
	}


	if(txtMessage == 0 || wR4 == "yes")
	{
	erR += "\n-Por favor introduzca su mensaje.";	
	document.getElementById("divErr3").innerHTML = "<font style='color:red'>Introduzca su mensaje</font>";		
	document.forms["myform"].message.focus();
	}


	if(!erR)
	{

		return true;
	}
	else
	{
//	alert("aasdasd");	
alert(erR);
	return false;

	}
}

<!-- rollover //-->


  if (document.images)
   {
     pic1on= new Image ;
     pic1on.src="splash/english1.gif";  
	 
   	pic2on= new Image;
     pic2on.src="splash/spanish1.gif"; 

     pic3on= new Image;
     pic3on.src="nav/races1.gif"; 
	 
	 
	 pic4on= new Image;
     pic4on.src="nav/photos1.gif"; 
	 
	 pic5on= new Image;
     pic5on.src="nav/links1.gif"; 
	 
	 pic6on= new Image;
     pic6on.src="nav/contact1.gif"; 
	 
	  pic7on= new Image;
     pic7on.src="images/thumbs/05-5-1.jpg"; 
	 
	 	 pic8on= new Image;
     pic8on.src="images/thumbs/05-9-3.jpg"; 
	 
	 
	   pic9on= new Image;
     pic9on.src="images/thumbs/05-4-5.jpg"; 
	 
	pic11on= new Image;
     pic11on.src="images/thumbs/05-10-2.jpg"; 
	 
	//..........off 
	 
	 pic1off= new Image;
     pic1off.src="splash/english.gif";

	 pic2off= new Image;
     pic2off.src="splash/spanish.gif"; 

 	pic3off= new Image;
    pic3off.src="nav/races.gif"; 
	
	 pic4off= new Image;
     pic4off.src="nav/photos.gif";
	 
	 pic5off= new Image;
     pic5off.src="nav/links.gif"; 
	 
	  pic6off= new Image;
     pic6off.src="nav/contact.gif"; 
	 
	 pic7off= new Image;
     pic7off.src="images/thumbs/05-5-3.jpg"; 
	 
	 pic8off= new Image;
     pic8off.src="images/thumbs/05-9-2.jpg"; 
	 
	 
	  pic9off= new Image;
     pic9off.src="images/thumbs/05-4-4.jpg"; 
	 
	 	 
	
	  
	  pic11off= new Image;
     pic11off.src="images/thumbs/05-10-1.jpg"; 
	 



   }

function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff (imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }
 

/// CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 500;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}


///popup

function poponload()
{
testwindow= window.open ("/galeria/a-1.jpg", "mywindow",
    "location=1,status=1,scrollbars=1,width=400,height=400");
testwindow.moveTo(0,0);
}



// other slideshow

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000
// Duration of crossfade (seconds)
var crossFadeDuration =0

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '../slide/2.jpg'
Pic[1] = '../slide/3.jpg'
Pic[2] = '../slide/1.jpg'



// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}













// JavaScript Document
<!--
/****************************************************
     AUTHOR: WWW.CGISCRIPT.NET, LLC
     URL: http://www.cgiscript.net
     Use the script, just leave this message intact.
     Download your FREE CGI/Perl Scripts today!
     ( http://www.cgiscript.net/scripts.htm )
****************************************************/

var url = "http://www.ismael.sambrafamilyart.com";
var title = "Ismael Sambra (Artist)";

function makeLink(){
if(document.all)
window.external.AddFavorite(url,title)
}

// -->


/********************************************************/

// JavaScript Document
<!--
/****************************************************
     AUTHOR: WWW.CGISCRIPT.NET, LLC
     URL: http://www.cgiscript.net
     Use the script, just leave this message intact.
     Download your FREE CGI/Perl Scripts today!
     ( http://www.cgiscript.net/scripts.htm )
****************************************************/

var url = "http://www.ismael.sambrafamilyart.com";
var title = "Ismael Sambra (Escritor Cubano)";

function makeLink1(){
if(document.all)
window.external.AddFavorite(url,title)
}

// -->



//send page
function mailpage()
{
mail_str = "mailto:?subject=Encontre esta página que pienso te puede interesar" ;
mail_str += "&body=Ismael Sambra (Escritor Cubano) ";
mail_str += "" + location.href; 
location.href = mail_str;
}