help on this code

I need help determining why this code will not execute.

I get the error message" error: expected initializer before ‘blinkLed’ In function ‘void loop()’:
At global scope:

I do not know how to fix this. Thanks.

start of code:

int ledPin = 13;
int usbnumber = 0;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}

void loop() {
if (Serial.available() > 0) {
usbnumber = Serial.read();
}

if (usbnumber > 0) {
if (usbnumber % 2 == 0){
blinkLed(1,300);
}else{
blinkLed(2,300);
}
usbnumber = 0;
}
}

void function blinkLed(times, lengthms){
for (int i = 0; i < times, i++){
digitalWrite(ledPin, HIGH);
delay(lengthms);
digitalWrite(ledPin, LOW);
delay(lengthms);
}
}

void function blinkLed(times, lengthms){

No type specifiers here: What are the data types of "times" and "lengthms" ?

Hint: Don't make "lengthms" a "byte", and ditch the "function" - it isn't a C keyword

times is an integer lengthms is a time on milliseconds

How to I declare these?

Thank you.

for (int i = 0; i < times[glow];[/glow] i++){

Make them "int"s, at least.

How to I declare these?

void myfunction blinkLed(int times, int lengthms){
   for (int i = 0; i < times, i++){
       digitalWrite(ledPin, HIGH);
       delay(lengthms);
       digitalWrite(ledPin, LOW);
       delay(lengthms);
   }
}