

<!-- norightclick -->

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 !=1) 
return false; 
} 
else 
if (event.button !=1) 
{ 
event.cancelBubble = true 
event.returnValue = false; 
return false; 
} 
} 
document.oncontextmenu = nocontextmenu; 
document.onmousedown = norightclick; 


<!-- miniwindow -->

function openit(sURL){
newwindow=open(sURL,"newwin",
"scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=420,height=350");
}

<!-- flashwrap -->
function AC_RunFlContentX()
{
  AC_AddExtension(arguments, "movie", ".swf");
  AC_AddExtension(arguments, "src", ".swf");
  var codebase = AC_GetCodebase
                 (  "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="
                  , "7,0,0,0", arguments 
                 );
	
  AC_GenerateObj
  (  "AC_RunFlContentX()", true, "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
   , codebase
   , "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
   , "application/x-shockwave-flash", arguments
  );	
}


<!-- privacy popup -->
function openprivacy(sURL){
newwindow=open(sURL,"newwin",
"scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no ,status=no, width=750,height=500");
}

<!-- terms popup -->
function openterms() 
{
window.open("http://www.affittaresardegna.com/legal/termswww.htm","Ordine","height=400,width=620,status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top=200,left=250");
}

<!-- netscape refresh -->

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


<!-- show hide layer -->

// _w : which ID (1) or (2)
// _h : (h)ide or (s)how
function toggleT(_w,_h) {
	if (document.all) { // is IE
		if (_h=='s') eval("document.all."+_w+".style.visibility='visible';");
		if (_h=='h') eval("document.all."+_w+".style.visibility='hidden';");
	} else { // is NS? -- just guessing for this simple example...
		if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';");
		if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';");
	}
}



<!-- Clear default form value -->
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 


<!-- alpha opacity -->

function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}

<!-- Hide status bar -->
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus

<!-- refresh status bar -->
function RefreshStatus(){
  window.status = "MatinexT";
  timer=setTimeout("RefreshStatus()", 0);
}
RefreshStatus();