/**
*
*	
* */

function windowOpener(url, windowname) {
	
	window.open( url , '', 'location=yes,toolbar=yes,menubar=yes,directories=yes,status=yes,resizable=yes,scrollbars=yes', false);
	
}



function pageUrl(page, lang) {
	
	switch (page){

	//Stolar
	
	   //planmeca universal
	   case 63218 :
	   
	      url = 'http://www.planmeca.com/index.php?page=00365&lng=1';
	      windowname = 'Planmeca Chair';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);
	      
	      break;
	      
	//planmeca dental stools
	   case 63201 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63148&lng=1';
	      windowname = 'Planmeca dental stools';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);
	      
	      break;
	   
	//Units
	   //compact series
	   case 63186 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63142&lng=1';
	      windowname = 'Planmeca Compact i - effortless usability';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	    //planmeca sovereign
	    case 63216 :
	   
	      url = 'http://www.planmeca.com/index.php?page=00345&lng=1';
	      windowname = 'Planmeca Sovereign - Revolutionary';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	    
	    //planmeca universal
	    case 63217 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63048&lng=1';
	      windowname = 'Planmeca Universal';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	    
	 //Röntgen
	   
	    //planmeca intra
	    case 63191 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63123&lng=1';
	      windowname = 'Planmeca Intra - ergonomic design';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	   //planmeca proline xc
	    case 63192 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63122&lng=1';
	      windowname = 'Planmeca Proline XC - practical and elegant';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	   //planmeca promax 3d
	    case 63193 :
	   
	      url = 'http://www.planmeca.com/index.php?page=00301&lng=1';
	      windowname = 'Planmeca ProMax 3D';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);
	      
	      break;
	      
	    //planmeca proone
	    case 63219 :
	   
	      url = 'http://www.planmeca.com/index.php?page=00367&lng=1';
	      windowname = 'Planmeca ProOne';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	//Övrigt
	//       
	  //planmeca perla
	    case 63198 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63150&lng=1';
	      windowname = 'Planmeca Perla autoclave';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	  //planmeca intracam af
	    case 63196 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63178&lng=1';
	      windowname = 'Planmeca Intracam AF';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	  //planmeca delight
	    case 63197 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63147&lng=1';
	      windowname = 'Planmeca Delight';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);

	      
	      break;
	      
	 //Opus Journal system
	    case 63195 :
	   
	      url = 'http://www.opusdental.com/sweden/';
	      windowname = 'Opus journalsystem';
	      type = '';
	      
	      confirmBox(windowname, type);
	      
	      break;
	      
	  //Planmeca Dimaxis
	    case 63221 :
	   
	      url = 'http://www.planmeca.com/index.php?page=63106&lng=1';
	      windowname = 'Planmeca Dimaxis';
	      type = 'planmeca';
	      
	      confirmBox(windowname, type);
	      
	      break;
	      
	  //Opus Journal system
	    case 00366 :
	   
	      url = 'http://www.opusdental.com/sweden/';
	      windowname = 'Opus journalsystem';
	      type = '';
	      
	      confirmBox(windowname, type);
	      
	      break;
	      
	  //Forssbergs
	 
	  case 00367 :
	   
	      url = 'http://www.fd.se/';
	      windowname = 'Forssbergs Dental AB';
	      type = '';
	      
	      confirmBox(windowname, type);
	      
	      break;


	   default : return;
	} 
}

