 function openPopUp(popupURL, width, Height, scroll)
			{
				var w = width;
			  var h = Height;
			  var l = Math.floor((screen.width-w)/2);
			  var t = Math.floor((screen.height-h)/2);
			  popupWindow = window.open(popupURL,"popupWindowDoc","scrollbars=" + scroll + ",location=no,toolbar=no,directories=no,status=no,resizable=no,height=" + Height + ",width=" + width + ",top=" + t + ",left=" + l);
			  popupWindow.focus();
      }	
      
function effectiveConfirm()
      {
        vypcode = loginForm.vypcode.value;
        nextPage = loginForm.nextPage.value;
        nextPage += "?vypcode=" + vypcode;
        loginForm.nextPage.value = nextPage;
      }


/* CountDown */
	function getCountDown(year, month, day)
	
	{
		//Set the two dates
		var today=new Date();
		var DateEnd = new Date(year, month - 1, day); //Month is 0-11 in JavaScript
	
		if (today.getMonth()==11 && today.getDate()>25) 
			DateEnd.setFullYear(DateEnd.getFullYear()+1);
			
		var one_day=1000*60*60*24;
	
		//Calculate difference btw the two dates, and convert to days
		var Difference = Math.ceil((DateEnd.getTime()-today.getTime())/(one_day));
		
		return Difference; 
	}	


function changePage(parameter){
		
//	alert(parameter);	
	switch(parameter) { 
  
  	//CONTO VYP: bankomat internazionale e home banking gratuito
	  case parameter = '1': 
	  window.location  ="vyp_conto_vyp.jsp";  
	  break; 
	
		//MUTUO CASA VYP: per i primi 3 anni rimborsi solo gli interessi
	  case parameter = '2': 
	 	window.location  ="soldi_mutuovyp.jsp";
	  break;
  	
  	//CARTA PREPAGATA VYP MONEY: disponibile subito anche senza conto
	  case parameter ='3' : 
	  window.location  ="soldi_altriservizi.jsp";
	  break;
		
		// PRESTITO UNIVERSITà VYP: importo fisso ogni mese senza alcun importo aggiuntivo
		case parameter = '4' : 
	  window.location  ="soldi_prestito_universita.jsp";
	  break;
	  
	}

}
