<!-- 	function openPopupImage(imgPath)	{		var popUpUrl= "/cgi-bin/ivecomp.dll/IVECO_MP/popup/popupImage.jsp?BV_UseBVCookie=Yes&language=en"+"&image="+ imgPath;		var win = window.open(popUpUrl,'imagePopup','width=400,height=200,toolbar=no,scrollbars=no,resizable=yes');		win.focus();	} 	function openPopupImageGallery(imgPath)	{		var popUpUrl= "/cgi-bin/ivecomp.dll/IVECO_MP/popup/popupImageG.jsp?BV_UseBVCookie=Yes&language=en"+"&image="+ imgPath;		var win = window.open(popUpUrl,'imagePopup','width=500,height=400,toolbar=no,scrollbars=no,resizable=yes');		win.focus();	} 	function openPopupVideo(videoPath,videoType,videoWidth,videoHeight)	{		var popUpUrl= "/cgi-bin/ivecomp.dll/IVECO_MP/popup/popupVideo.jsp?BV_UseBVCookie=Yes&language=en"+"&videoPath="+ videoPath + "&videoType=" + videoType + "&videoWidth=" + videoWidth + "&videoHeight=" + videoHeight; 		var win = window.open(popUpUrl,'imagePopup','width=400,height=200,toolbar=no,scrollbars=no,resizable=yes');		win.focus();	} 	function openPage(type,pagePath,pageParam,wopenParam,id ){		if ( pagePath==null || pagePath=='' )			return; 		var path = ''; 		switch( type ) {			case '0':				path = '/cgi-bin/ivecomp.dll/IVECO_MP'+pagePath+'?BV_UseBVCookie=Yes&language=en';				if (pageParam != null && pageParam != '') {				    path += '&' + pageParam;				}			break;			case '1':				path = pagePath;				if (pageParam != null && pageParam != '') {				    path += '?' + pageParam;				}			break;			case '2':				path = pagePath+'?BV_UseBVCookie=Yes&language=en';				if (pageParam != null && pageParam != '') {				    path += '&' + pageParam;				}			break;			default:				return;			break;		}  		if( wopenParam == null || wopenParam == '' ) {			if( path.indexOf('/ne/') != (-1)) {				var win = window.open(path,'news');				win.focus();				return;			}			document.location.href=path;			return;		} 		if( wopenParam == '_blank') {			if( path.indexOf('/ne/') != (-1)) {				var win = window.open(path,'news');				win.focus();			} else {				window.open(path);			}		} else { 			if( id != null ) {				var win = window.open(path,id,wopenParam);				win.focus();			} else				window.open(path,'',wopenParam);		}}   	-->

function openPage(type,pagePath,pageParam,wopenParam,id )
	{
		if ( pagePath==null || pagePath=='' ) 
			return;
		
		var path = '';
		
		switch( type ) {
			case '0':
				path = 'http://www.iveco.com/cgi-bin/iveco.dll/IVECO_COM'+pagePath+'?BV_SessionID=@@@@1819661276.1185443040@@@@&BV_EngineID=ccccaddlihdldldcefeceegdgigdgff.0&language=it';
				if (pageParam != null && pageParam != '') {
				    path += '&' + pageParam;
				} 
			break;
			case '1':
				path = pagePath;
				if (pageParam != null && pageParam != '') {
				    path += '?' + pageParam;
				} 
			break;
			case '2':
				path = pagePath+'?BV_SessionID=@@@@1819661276.1185443040@@@@&BV_EngineID=ccccaddlihdldldcefeceegdgigdgff.0&language=it';
				if (pageParam != null && pageParam != '') {
				    path += '&' + pageParam;
				} 
			break;
			default:
				return;
			break;
		}
		
		
		if( wopenParam == null || wopenParam == '' ) {
			if( path.indexOf('/ne/') != (-1)) {
				var win = window.open(path,'news');
				win.focus();
				return;
			} 		
			document.location.href=path;
			return;
		}
		
		if( wopenParam == '_blank') {
			if( path.indexOf('/ne/') != (-1)) {
				var win = window.open(path,'news');
				win.focus();
			} else {
				window.open(path);
			}
		} else {

			if( id != null ) {	
				var win = window.open(path,id,wopenParam);
				win.focus();
			} else
				window.open(path,'',wopenParam);
		}
	}
