UKHeliBob:
if(cpos=='27001308231F')Single quotes are used round single characters. Can you see a problem here ?
There also appear to be some strange characters at the end of the values that you are comparing with. They show up when the code you posted is copied into the IDE
how can i correct it