Guys I already found a solution to this. Here is what i did:
I found this file on the internet. Youll have to download this file ot-906.http://www.mediafire.com/?1phq58wf0z0t19n
1.download the file ot-906.rar. save and extract the file.
2.install the broadcom usb located in your extracted file named BRCM_PC_USB_Driver.
3.make sure your phone battery is charged atleast 50%, or it wont flash.
4.connect your cable to pc, not yet to phone. remove your battery, then insert it back then plug the usb. your phone should be datected by your pc as usb to serial device. Change the usb port to comport 4.
5.now open the batch file named download_froyo_1_3_6.bat.it will begin the flashing process. wait untill it says finished or success.
6.unplug the phone.remove the battery, insert again. power the phone on. now just wait 5-10 mins before you phone completely boots up.it takes sometime to boot because your phone still configures the software.
Now your phone should work fine.
Credits to the person who found and discover this.