///  Deshabilitar el botó dret del mouse  ///

function openWindow(url, name) {
popupWin = window.open(url, name, 'scrollbars,resizable,width=450,height=350')
}

function NoRaton(e) 
{
    if (document.layers && (e.which == 3 || e.which == 2)) 
	{
		alert(" © 2002 Sensorial Espai Group® \n\n Aula del Vino® \n\n auladevino@terra.es");
	}else if (event.button == 2 || event.button == 3) 
	{
		alert(" © 2002 Sensorial Espai Group® \n\n Aula del Vino® \n\n auladevino@terra.es");
	}
	return false;
}
document.onmousedown = NoRaton;

if (document.layers) 
{
	window.captureEvents(Event.MOUSEDOWN);
}else {document.oncontextmenu=NoRaton;}

window.onmousedown = NoRaton;


function mira(opcio) 
	{
	switch (opcio) {
		case 1: document.form1.r2.checked=false;
			 break;
			case 2: document.form1.r1.checked=false;
			 break;
			case 3: document.form1.r1.checked=false;
	    		 document.form1.r2.checked=false;
			 break;
		}
	}

function comprovaemail() {
  if (document.form1.emilio.value == "" || document.form1.emilio.value.indexOf('@', 0) == -1) {
     alert("Adreça e-mail no valida!"); }
  }
		
// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com
// Free for all users, but leave in this  header


// set this to true if the popup should close
// upon leaving the launching page; else, false

var autoclose = true

// ============================
// do not edit below this line
// ============================

//s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openFrameless(wide,high,left,top,url,title){

	var urlPop = url
	var title =  title

	// set the popup window width and height

	var windowW=wide //  214
	var windowH=high // 398

	s = "width="+windowW+",height="+windowH;

	// set the screen position where the popup should appear

	var windowX = left  // 260
	var windowY = top // 100

  if (beIE){
    NFW = window.open("","popFrameless","fullscreen,"+s)     
    NFW.blur()
    window.focus()       
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
    var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
    NFW.document.open();
    NFW.document.write(frameString)
    NFW.document.close()
  } else {
    NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
    NFW.blur()
    window.focus() 
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
  }   
  NFW.focus()   
  if (autoclose){
    window.onunload = function(){NFW.close()}
  }
}
