<!-- 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; 

<!-- privacy popup -->
function openprivacy() 
{
window.open("http://www.scsitech.com/legal/privacy.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");
}

<!-- terms popup -->
function openterms() 
{
window.open("http://www.scsitech.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);


<!-- form checking -->

function checkFields() {
	missinginfo = "";
	if (document.calform.name.value == "") {
		missinginfo += "\n-  Nome";
	}
if (document.calform.lname.value == "") {
		missinginfo += "\n-  Cognome";
	}
	
	if (document.calform.email.value == "") {
		missinginfo += "\n-  Email";
	}
         if (document.calform.username.value == "") {
		missinginfo += "\n-  Username";
	}

         if (document.calform.password.value == "") {
		missinginfo += "\n-  Password";
	}

	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"Vi siete dimenticati di immettere i seguenti dati:\n" +
		missinginfo + "\n_____________________________" +
		"\nSiete pregati di compilarli correttamente";
		alert(missinginfo);
		return false;
	}
	else return true;
}

<!-- 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
}

<!-- for tell friend -->
function MM_validateForm() { //v4.0

  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;

  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);

    if (val) { nm=val.name; if ((val=val.value)!="") {

      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');

        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';

      } else if (test!='R') {

        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';

        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');

          min=test.substring(8,p); max=test.substring(p+1);

          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';

    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

  } if (errors) alert('The following error(s) occurred:\n'+errors);

  document.MM_returnValue = (errors == '');

}
<!-- 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 = "Paris Hotels";
  timer=setTimeout("RefreshStatus()", 0);
}
RefreshStatus();


<!-- frame branding -->
percent = "100";
function frameBranding(actualurl, brandingurl, frametype) {
var framewin = window.open("","brandingframe");
with (framewin.document) {
write("<html><frameset " + frametype + "=" + percent + ",*>");
write("<frame noresize scrolling=no frameborder = 0 src=" + brandingurl + ">");
write(" <frame frameborder = 0 src=" + actualurl + ">");
write("</frameset></html>");
   }
return false;
}


<!-- open window -->

function open_member_window(url)
{
  myWin1= window.open(url,"myWin2");

  if (navigator.appName != "Microsoft Internet Explorer") {
  if (window.focus) myWin1.focus(); 
}
}
