Finally figured it out here is what I had to do pretty simple, it just took 3 days of trying functions, using stylying sheets then I got this! Thanks everyone for their help I upvoted all for contributing!

    document.write(  "&lt;td ONCLICK=\"Jump('"+Link+"')\" onmouseover=\"this.style.background='url("+M+")'; this.style.cursor='pointer';\" onmouseout=\"this.style.background='url("+B+")';\" onmousedown=\"this.style.background='url(../Images/Gold-360-ButtonMouseOver.png)'\"  height='25' width='350' background='"+B+"' &gt;&lt;p align='center'&gt;&lt;font color='"+C1color+"'&gt;&lt;b&gt;"+T+"&lt;/b&gt;&lt;/td&gt;"  );


on mouse over background change in document.write
         string query = &lt;Where&gt; 
                           &lt;And&gt;    
                              &lt;And&gt;       
                                 &lt;And&gt;          
                                      &lt;Eq&gt;&lt;/Eq&gt;
                                      &lt;Eq&gt;&lt;/Eq&gt;
                                 &lt;/And&gt;
                                   &lt;Geq&gt;&lt;/Geq&gt;
                                   &lt;Leq&gt;&lt;/Leq&gt;
                              &lt;/And&gt;       
                                &lt;Eq&gt;&lt;/Eq&gt;
                           &lt;/And&gt;
                        &lt;/Where&gt;


In SharePoint foundation development, i have used this CAML query to query a SharePoint list. This query contains five conditions. After above query gets executed, it throws an Microsoft.Sharepoint.SPException exception. I tried but couldn't figure it out. Is there any mistake in above CAML query. Any help is appreciated.
