/* auteur: Carlos Ramos */
/* Date de création: 2001-09-27 */

	var q
	/* This script is meant to be placed in a webpage with other content.
	To do that, place this script between the HEAD tags, call the time(); function 
	on the body onload event, then put span tags with the id "clock" wherever you 
	want the clock.  All the editing you may want to do is to tell the script if seconds 
	should be displayed, and the font style and size. */
	
	function time() {
		
		// should the clock display seconds?
		var seconds = "yes";
		
		// clock font
		var font = "Arial, Verdana, Sans";
		
		// clock size
		var size = "3";
		
		// get current time
		var d = new Date();
		var h = d.getHours();
		var m = d.getMinutes();
		var s = d.getSeconds();
		
		// determine AM or PM
		var ampm = (h >= 12)?"PM":"AM";
		if (h >12) h -= 12;
		if (h == 0 ) h = 12;
		if (m < 10) m = "0" + m;
		if (s < 10) s = "0" + s;
		
		// put it all together
		var time = h + ':' + m;
		if (seconds == 'yes') { 
			var time = time + ':' + s;
			}
		var time = time + ' ' + ampm;
		
		// determine place for clock
		document.getElementById("clock").innerHTML = "<font face=\"" + font + "\" size=\"" + size + "\">" + time + "</font>";
		
		// make it update every second
		setTimeout("time()", 1000);
		}

		
		
			if (window.Event)
			document.captureEvents(Event.MOUSEUP);
			function nocontextmenu()
			{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
			}
			function norightclick(e)
			{
			if (window.Event)
			{
			if (e.which == 2 || e.which == 3)
			return false;
			}
			else
			if (event.button == 2 || event.button == 3)
			{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
			}
			}

		if (document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
		}
		document.oncontextmenu = nocontextmenu;
		document.onmousedown = norightclick;
		document.onmouseup = norightclick;

		
				function disableselect(e)
		{
		   return false
		}
		function reEnable()
		{
		   return true
		}
		
			//if IE4+
			document.onselectstart=new Function ("return false")
			//if NS6

		if (window.sidebar)
		{
		   document.onmousedown=disableselect
		   document.onclick=reEnable
		}


   
function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}

function netie(net, ie) {
  if ((navigator.appVersion.substring(0,3) >= net && navigator.appName == 'Netscape' && net != -1) || (navigator.appVersion.substring(0,3) >= ie && navigator.appName.substring(0,9) == 'Microsoft' && ie != -1))
    return true;
else return false;
}

function aproposde(f1)
{
window.open("PostCart/previewpic.asp?url=" + f1 , "aproposde", "toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, resizable=no, copyhistory=no, width=530, height=510, left=10, top=10");
}
 
// OnFocus="efface('InscripcionNovedades','Email');return true" 
function efface(form,name)
{
eval ( that = window.document [form] [name]);
if ( name == 'Email' && that.value == 'Votre E-mail' )
{
that.value = '';
}
else return false;
} 

function verif_InscripcionNovedades()
{
	if (document.InscripcionNovedades.Email.value == "Entre su correo por favor")
	{
		alert("Entre su dirección electrónica por favor, Gracias!");
		return false;
	}
  else if (document.InscripcionNovedades.Email.value.indexOf('@', 0) == -1)
  {
    alert("Su dirección electrónica no es valida! \n Revísela por favor, Gracias!");
  	document.InscripcionNovedades.Email.focus();
  	return (false);
  }
	return true;
}

function FocusText(BoxName)
{
if (BoxName.value == BoxName.defaultValue)
{
BoxName.value = '';
}  
}

function BlurText(BoxName)
{
if (BoxName.value == '')
{
BoxName.value = BoxName.defaultValue;
}
}
  

function addFav() 
{ 
if (document.all) 
{ 
window.external.AddFavorite(location.href, document.title); 
} 
else 
{ 
alert('Usted puede hacer CTRL + D /n para agregar esta página /n en sus bookmarks, o los favoritos.') 
} 
} 