function Rollover (MyName, MyImage) {
    if (navigator.appVersion.indexOf ('MSIE') != -1) {
        document.images (MyName).src = MyImage;
    } else {
        eval ('document.' + MyName + '.src = \'' + MyImage + '\'');
    }
}

/*
   ####################
   --------------------
    SCRIPT DEFINITIVI
   --------------------
   ####################
*/

/*function OpenPopup (MyPage, MyWidth, MyHeight, MyResizable, MyScrolling) {
	window.open (MyPage, '_blank', 'width=' + MyWidth + ',height=' + MyHeight + ',resizable=' + MyResizable + ',scrollbars=' + MyScrolling)
}*/

function Rolling (MyName, MyImage) {
  if (navigator.appVersion.indexOf ('MSIE') != -1) {
      document.images (MyName).src = MyImage;
  } else {
      eval ('document.' + MyName + '.src = \'' + MyImage + '\'');
  }
}

function PreloadImages () {
	if (document.images) {
		if (!document.preload) {
			document.preload = new Array();
		}
		var i,j = document.preload.length;
		var images = PreloadImages.arguments;
		for (i = 0; i < images.length; i++) {
			if (images[i].indexOf ("#") != 0) {
				document.preload[j] = new Image;
				document.preload[j++].src = images[i];
			}
		}
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function Start () {
	MM_preloadImages ();
}

function LoadCaseHistoryByCustomer (IDCustomer) {
	if (IDCustomer != '') {
		this.location.href = '../CaseHistory/CaseHistoryCliente.asp?IDCustomer=' + IDCustomer;
	}
}

function ArchiveNewsletter (Numero, path) {
	if (Numero != '') {
	
	  if (isNaN(Numero)){
	  
	    switch (Numero){
				case 'nov03':
					document.location.href = path + 'EventiNews/Softpillole0312.asp';
					break;
				case 'oct03':
					document.location.href = path + 'EventiNews/Softpillole0311.asp';
					break;
				default:
					OpenPopup (path + 'EventiNews/Newsletter/' + Numero + '/Default.asp', 640, 700, 'no', 'yes');
				break;
			}
	    
	  } else {
	    
	    switch (Numero){
				case '0402':
					document.location.href = path + 'EventiNews/Softpillole0402.asp';
					break;		
				case '0401':
					document.location.href = path + 'EventiNews/Softpillole0401.asp';
					break;
				default:
					document.location.href = path + 'EventiNews/Newsletter/' + Numero + '/Copertina.asp';
				break;
			}
	    
	  }
	
		

	}
}