Infinite Control Switch WB24T10058 for electric range dual burner

Hi, I have ordered the above switch for my GE electric range model# JBP78WOB2WW dual burner. This switch according to some posts is a upgrade switch for the original part# WB24T10031.
The problem that I am having is that the labels on those connectors are different.

The original switch WB24T10031 has the following:
P - Yellow wire
L1 - Black wire
L2 - Red wire
H1 - Blue wire
H2 - Blue wire (two part one goes to the switch for dual burner

The switch that I have WB24T10058 which suppose to be the upgrade to the original switch has the following connectors:

P1 - dual connector, 2, 4, Pilot, P2

Can someone tell me if this switch will actually work with my stove and if so then what wires go to what connectors?

Thanks much!

Ok here is what I found on the switch. The L1=P2, the P=PILOT, the H1=4, H2=2 and L2=P1. The wires from the terminals 2 and 4 should go to the element. The P2 and the P1 terminals should have the piggy back L1 and L2 power going into the switch. The PILOT is connected to the “element ON” light. Wiring this switch correctly is extremely important. Failure to wire it correctly can result in damage to the switch and wiring. Be sure that the range is unplugged when you are wiring this switch.
Also make sure the wires on your range are going where it says in the instructions above. Hope this helps.

First, thanks a lot for the information.
I have connected all of the wires the way you have specified below and everything works with exeption for the pilot or surface light. The light comes one whenever the surgace heating elements are activated. It worls that way with my other three burners but not this one.
Any suggestions?

As long as you have the pilot wire on the pilot spade then it should work. You can check and make sure that it has a good connection, and check it at your element to make sure it is ok there as well. Hope this helps.