// JavaScript Document
function bookmarksite(){
var myloc = location.href;
var title = "Lucy Reyes";
// check if active
// alert (title+"\r\n"+myloc);
if (document.all)
window.external.AddFavorite(myloc,title);
else if (window.sidebar)
window.sidebar.addPanel(title, myloc,"")
}



function sendtofriend() {
	// alert (URL);
	var URL 
	URL = location.href;
	window.open('sendtofriend.htm?page='+URL, 'EmailWindow', 'scrollbars=yes,width=650,height=355');
}

function submitForm() {
	eForm = document.emailForm;
	
	if (eForm.Nombre.value=="") {
		alert("Mecanografie por favor adentro su nombre.");
		eForm.Nombre.focus();
		return;
	}
	
	else if (eForm.Telefono.value=="") {
		alert("Mecanografie por favor adentro su numero de telefono.");
		eForm.Telefono.focus();
		return;
	}
	
	
	else if (eForm.email.value=="") {
		alert("Mecanografie por favor adentro su email address.");
		eForm.email.focus();
		return;
	}
	
	else if (eForm.Detalles.value=="") {
			alert("Mecanografie por favor adentro sus detalles.");
			eForm.Detalles.focus();
			return;
	}

	document.emailForm.action="contactos.html";
	document.emailForm.submit();
	eForm.formAction.value = "Submit";
	eForm.submit();
	}


 
function ordertransact() {
	eForm = document.transaction;
	
	if (eForm.txtfname.value=="") {
		alert("Please type in your name.");
		eForm.txtfname.focus();
		return;
	}
	
	else if (eForm.txtlname.value=="") {
		alert("Please type in your last name.");
		eForm.txtlname.focus();
		return;
	}
	
	else if (eForm.txtadd1.value=="") {
		alert("Please type in your address.");
		eForm.txtadd1.focus();
		return;
	}
	
	else if (eForm.txtemail.value=="") {
		alert("Please enter your email address.");
		eForm.txtemail.focus();
		return;
	}
	
		else if (eForm.txtcity.value=="") {
		alert("Please enter your city.");
		eForm.txtcity.focus();
		return;
	}
	
	else if (eForm.txtstate.value=="") {
		alert("Please enter your state.");
		eForm.txtstate.focus();
		return;
	}
	
	else if (eForm.txtcountry.value=="") {
		alert("Please enter your country.");
		eForm.txtcountry.focus();
		return;
	}
	
	else if (eForm.txtzip.value=="") {
		alert("Please enter your zipcode.");
		eForm.txtzip.focus();
		return;
	}


document.transaction.action="checkout_paypal.php";
	document.transaction.submit();
	eForm.formAction.value = "Submit";
	eForm.submit();
	}



