here is how i myself fixed it
function setValue(){
myVariable= document.forms["myform"]["gname"].value;
myVariable2= document.forms["myform"]["gpc"].value;
myVariable3= document.forms["myform"]["procesor"].value;
myVariable4= document.forms["myform"]["ram"].value;
myVariable5= document.forms["myform"]["os"].value;
var gname = ["Prince of Persia: The Forgotten Sands"];
var gpc = ["GeForce 8600 GTS 512MB", "GeForce 8800 Ultra", "GeForce 8800 GTX", "GeForce 8800 GTS (640 MB)", "GeForce 8800 GTS (512 MB)", "GeForce 8800 GTS (320 MB)", "GeForce 8800 GT", "GeForce 8800 GS", "GeForce 8600 GTS", "9800 GX2 (1 GB)", "9800 GTX (512MB GDDR3)", "9800 GTX+ (512MB GDDR3)", "9800 GT(512MB GDDR3)", "9600 GT(512MB)", "9600 GSO (384MB)", "9500 GT (256MB GDDR3)", "GeForce GTX 590", "GeForce GTX 580", "GeForce GTX 570", "GeForce GTX 560", "GeForce GTX 560", "GeForce GTX 550", "GeForce GT 520", "GeForce GTX 560" , "GeForce GTX 560" , "GeForce GTX 555" , "GeForce GT 545 GDDR5" , "GeForce GT 545 DDR3" , "GeForce GT 530" , "GeForce GT 520" , "GeForce 510" , "GeForce GTX 400 GPUs" , "GeForce GTX 480" , "GeForce GTX 470" , "GeForce GTX 460" , "GeForce GTX 465" , "GeForce GTS 450" , "GeForce GT 440" , "GeForce GT 430" , "GeForce GTX 460" , "GeForce GTS 450" , "GeForce GT 440" , "GeForce GT 430" , "GeForce GT 420" , "GeForce 405" , "GeForce GT 340" , "GeForce GT 330" , "GeForce GT 320","GeForce 315"];
var procesor = ["Core 2 Duo E4500 2.2GHz", "Athlon 64 X2 Dual Core 4400+"];
var ram = ["3 GB", "2 GB", "1 GB"];
var os = ["Windows Xp", "Windows 7", "Windows Vista", "Windows 8"];
var canRun = false;
{
for(i=0;i<gname.length;i++)
if (myVariable === gname[i])
{
for (j=0;j<gpc.length;j++)
{
if (myVariable2 === gpc[j])
{
for (k=0;k<procesor.length;k++)
{
if (myVariable3 === procesor[k])
{
for (h=0;h<ram.length;h++)
{
if (myVariable4 === ram[h])
{
for (l=0;l<os.length;l++)
{
if (myVariable5 === os[l])
{
canRun = true;
}
}
}
}
}
}
}
}
}
}
var a = ["Gears of War"];
var b = ["ATI Radeon 5000 Series", "ATI Radeon 4000 Series", "ATI Radeon 3000 Series", "ATI Radeon HD 2900 Overview", "ATI Radeon HD 2600 Overview", "ATI Radeon HD 2400 Overview", "ATI Radeon X1950 Series", "ATI Radeon X1900 Series", "ATI Radeon X1800 Series", "ATI Radeon X1650 Series", "ATI Radeon X1600 Series", "ATI Radeon X1550 Series", "ATI Radeon X1300 Series", "ATI Radeon X1050 Series"];
var c = ["Core 2 Duo E4500 2.2GHz", "Athlon 64 X2 Dual Core 4400+"];
var d = ["3 GB", "2 GB", "1 GB"];
var e = ["Windows Xp", "Windows 7", "Windows Vista", "Windows 8"];
for(m=0;m<a.length;m++)
{
if (myVariable === a[m])
{
for (n=0;n<b.length;n++)
{
if (myVariable2 === b[n])
{
for (o=0;o<c.length;o++)
{
if (myVariable3 === c[o])
{
for (p=0;p<d.length;p++)
{
if (myVariable4 === d[p])
{
for (q=0;q<e.length;q++)
{
if (myVariable5 === e[q])
{
canRun = true;
}
}
}
}
}
}
}
}
}
}
if (canRun)
{
alert("yes this game can run");
}
else
{
alert("No, This game cannot run");
}
};