var langPath = (window.location.href.indexOf('/html/') > 0 ) ? '/html/':'/zh-hk/';

function leftContent(){
             
	MM_preloadImages(langPath+'images/left_member_login_help_o.gif',langPath+'images/left_member_login_btn_o.gif')
	var html="";
	
	// newsletter subscribe
	html +="<img src=" + langPath + "images/spacer.gif width=100% height=5><br>";
	html +="<a href=http://www.love-da-records.com" + langPath + "contactUs.php class=news>Subscribe to our Newsletter</a>";
	html +="<img src=/html/images/spacer.gif width=100% height=5><br/>";
	document.write(html);
	
	// MP3 Player
	if ( mstrPageCode == 'HOME' ){
		document.write('<div id="playlistDiv"><p id="mp3player" style="font-family:Arial, Helvetica, sans-serif; font-size:10px;">Please wait a moment.<br/><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a></p></div><br/>');
	}
	
	// Member Login
	html = '';
	html +="<img src=" + langPath +"images/left_member_login_title.gif width=187 height=20><img src=/html/images/spacer.gif width=100% height=10><br>";
	html +='<div id="loginFromArea"></div><br/>';
	
	// Events and News
	html +="<img src=" + langPath + "images/left_eventNews_title.gif width=187 height=20><img src=/html/images/spacer.gif width=100% height=10><br>";
     
	 // this is news 94
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>16.07.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/2708/KITSUTOTE3.bmp border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>OUT IN STORES NOW !!</p></a>";
   html +="</td></tr></table>"; 
   
     // this is news 93
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>16.07.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0714/Morcheemix2.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Even Though – Surfing Leons, Afternoon Remix</p></a>";
   html +="</td></tr></table>";
 
    // this is news 92
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>10.06.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0610/moshi-moshixthedrumssmall.png border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Moshi Moshi x Drums party</p></a>";
   html +="</td></tr></table>";
 
    // this is news 91
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>10.06.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0610/1small.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Le French May Musical 2010 Showdown</p></a>";
   html +="</td></tr></table>";
 
    // this is news 90
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>10.06.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0610/remixsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Two Door Cinema Club Remix Contest</p></a>";
   html +="</td></tr></table>";
 
    // this is news 89
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>31.05.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0419/IODAs.JPG border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>IODA UNVEILS PAN-ASIAN MARKETING PARTNERSHIP WITH HONG KONG’S LOVE DA RECORDS</p></a>";
   html +="</td></tr></table>";
  /* 
   // this is news 88
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>03.05.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0517/lfmshowdownS.JPG border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Le French May Musical Showdown 2010 </p></a>";
   html +="</td></tr></table>";
  
  // this is news 87
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>03.05.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0421/mamasgunS.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>MAMAS GUN LIVE @ MIRA 30/Apr </p></a>";
   html +="</td></tr></table>";
 

 // this is news 86
  
 html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>19.04.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0421/ninjaS.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Love Da Records @ Yumla – 2nd Installment Ninja Tune Special</p></a>";
   html +="</td></tr></table>";
 
 // this is news 85

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>19.04.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0419/poster.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Coachella Valley Music and Arts Festival</p></a>";
   html +="</td></tr></table>";
   
   // this is news 84

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>19.04.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0419/CaribouS.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Caribou 'Sun' Remix Competition </p></a>";
   html +="</td></tr></table>";
 
 
  
  // this is news 83

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>09.04.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0409/mamasgunposterS.JPG border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Mamas Gun Live at Mira</p></a>";
   html +="</td></tr></table>";
   
   // this is news 82

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>09.04.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0409/KekeSmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Kele \"The Boxer\" Solo Album out June 21st</p></a>";
   html +="</td></tr></table>";

	// this is news 81

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>09.04.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0409/bloodS.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>BLOOD LIKE LEMONADE Album release June 7, 2010</p></a>";
   html +="</td></tr></table>";


// this is news 80

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>29.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0329/yumlaS.JPG border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Love Da Records@Yumla on 31st March, 2010</p></a>";
   html +="</td></tr></table>";

 // this is news 79

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>29.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0329/image005s.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Album Leaf live in HK</p></a>";
   html +="</td></tr></table>";

// this is news 78

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>29.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0329/image007s.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Mamas Gun Live at Mira</p></a>";
   html +="</td></tr></table>";

// this is news 77

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>29.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0208/mama.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Mamas Gun’s Single “Yesterday’s News” Video Competition</p></a>";
   html +="</td></tr></table>";
   
  

// this is news 76

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0329_files/Bonnie.JPG border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Behold! The Will Oldham Bottle Stopper</p></a>";
   html +="</td></tr></table>";
   
// this is news 75

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0329_files/Charlatans2.JPG border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Beggars Archive to Reissue 20th Anniversary Edition of The Charlatans’ debut</p></a>";
   html +="</td></tr></table>";

 // this is news 74

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>15.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0315e_files/image005S.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>USA Post Rockers The Album Leaf - live in Hong Kong, April 7th!</p></a>";
   html +="</td></tr></table>";
   
    // this is news 73

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>15.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0315e_files/image003.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>General Fiasco debut album Buildings out next week</p></a>";
   html +="</td></tr></table>";
   
    // this is news 72

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>15.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0315e_files/image004.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Black Rebel Motorcycle Club new album out in shops already</p></a>";
   html +="</td></tr></table>";


   // this is news 71

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0301/2doorSmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Kitsune 力推組合 Two Door Cinema Club 首張大碟今個星期登場</p></a>";
   html +="</td></tr></table>";

   // this is news 70

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0301/BRSsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Blood Red Shoes 全新大碟 Fire Like This 已在3 月1 日推出</p></a>";
   html +="</td></tr></table>";
   
   // this is news 69

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0301/blacklightsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Groove Armada 全新大碟 Black Light 已在3 月1 日推出</p></a>";
   html +="</td></tr></table>";
 
 
  
 // this is news 68

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0301/bigpink.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Big Pink 曾墾求 Carly Simon 批准他們與 Lily Allen 合奏</p></a>";
   html +="</td></tr></table>"; 
   
   // this is news 67

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.03.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0301/horrors.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>The Horrors 開始為下作動工</p></a>";
   html +="</td></tr></table>";


	  // this is news 66

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>22.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0222/mama.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Mamas Gun - Yesterday\'s News 榮登RTHK環球榜第一位</p></a>";
   html +="</td></tr></table>";
   
   	  // this is news 65

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>22.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0222/vampireweekend_small.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Vampire Weekend - 《Contra》 登上新城勁爆外語榜第二位</p></a>";
   html +="</td></tr></table>";
   
	  // this is news 64

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>08.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0208/mama.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Mamas Gun - 《Routes To Riches》 大碟及網上下載將於本星期推出</p></a>";
   html +="</td></tr></table>";

	  // this is news 63

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>08.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0208/Beach_House.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>《Teen Dream》 Pitchfork 評分: 9/10</p></a>";
   html +="</td></tr></table>";

	  // this is news 62

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>08.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0208/midlake.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>BBC獨立音樂榜第一位 Midlake – The Courage of Others</p></a>";
   html +="</td></tr></table>";

	  // this is news 61

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>08.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0208/blackrebelmotorsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php?page=2><p align=center>Black Rebel Motorcycle Club樂器被竊</p></a>";
   html +="</td></tr></table>";

	  // this is news 60

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>08.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0208/groovearmadasmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php?page=2><p align=center>Groove Armada 最新music video Paper Romance網上欣賞</p></a>";
   html +="</td></tr></table>";

	  // this is news 59

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>08.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0208/roxsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php?page=2><p align=center>2010年力捧新人ROX最新單曲music video 搶先睇</p></a>";
   html +="</td></tr></table>";

	  // this is news 58

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php?page=2><img src=/html/whatsNews/2010/0201/phoenixsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Phoenix 榮獲 52nd Grammy Awards Best Alternative Album</p></a>";
   html +="</td></tr></table>";

	  // this is news 57

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php?page=2><img src=/html/whatsNews/2010/0201/vampireweekendsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>Vampire Weekend 登上 US Billboard 首位</p></a>";
   html +="</td></tr></table>";

	  // this is news 56

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php?page=2><img src=/html/whatsNews/2010/0201/thexxsmall.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>The XX 登上最新一期NME封面</p></a>";
   html +="</td></tr></table>";

	  // this is news 55

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>01.02.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news?page=2.php><img src=/html/whatsNews/2010/0201/LosCampesinos1small.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php?page=2><p align=center>LOS CAMPESINOS! 最新music video 網上睇</p></a>";
   html +="</td></tr></table>";

	  // this is news 54

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news?page=2.php><img src=/html/whatsNews/2010/0201/LosCampesinos2small.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php?page=2><p align=center>LOS CAMPESINOS!為海地災民籌款拍賣樂器</p></a>";
   html +="</td></tr></table>";

	  // this is news 53
	/*
   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0126/miranda1.jpg border=0></a></p>"; //Main Image	e
   html +="<a href=news.php><p align=center>2010年矚目女新人Holly Miranda 推出首張個人大碟</p></a>";
   html +="</td></tr></table>";

	  // this is news 52

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0126/shearwater1.jpg border=0></a></p>"; //Main Imagee
   html +="<a href=news.php><p align=center>美國樂隊Shearwater全新大碟於2月面世</p></a>";
   html +="</td></tr></table>";

	  // this is news 51

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0126/tindersticks2.jpg border=0></a></p>"; //Main Imagee
   html +="<a href=news.php><p align=center>Tindersticks為電影”White Material”製作原聲大碟</p></a>";
   html +="</td></tr></table>";
   
	  // this is news 50

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php?page=2><img src=/html/whatsNews/2010/0126/motionaudio1.jpg border=0></a></p>"; //Main Imagee
   html +="<a href=news.php?page=2><p align=center>英國音樂廠牌Ninja Tunes 與 Cinematic Orchestra 主腦攜手成立 Motion Audio</p></a>";
   html +="</td></tr></table>";

	  // this is news 49

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php?page=2><img src=/html/whatsNews/2010/0126/radiohead1.jpg border=0></a></p>"; //Main Imagee
   html +="<a href=news.php?page=2><p align=center>Radiohead 將會為海地大地震舉行慈善演出</p></a>";
   html +="</td></tr></table>";

	  // this is news 48

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>26.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php?page=2><img src=/html/whatsNews/2010/0126/xx2.jpg border=0></a></p>"; //Main Image
   html +="<a href=news.php?page=2><p align=center>英國人氣樂隊 The XX 最新 MV 網上睇</p></a>";
   html +="</td></tr></table>";

	  // this is news 47

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>19.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0119/eels.jpg border=0 width=165></a></p>"; //Main Image
   html +="<a href=news.php><p align=center>Eels - End Times</p><p align=center> Release on 18th Jan</p></a>";
   html +="</td></tr></table>";

	  // this is news 46

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>19.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0119/goodshoes.jpg border=0 width=165></a></p>"; //Main Image
   html +="<a href=news.php><p align=center>Good Shoes - No Future, No Hope</p><p align=center> Release on 18th Jan</p></a>";
   html +="</td></tr></table>";

	  // this is news 45

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>19.01.2010</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2010/0119/midlake.jpg border=0 width=165></a></p>"; //Main Image
   html +="<a href=news.php><p align=center>Midlake - The Courage of Others</p><p align=center>Release on 1st Feb</p></a>";
   html +="</td></tr></table>";

	  // this is news 44

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>28.12.2009</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2009/1228/patrick_watson_small.jpg border=0></a></p>"; //Main Image
   html +="<a href=news.php><p align=center>Patrick Watson - Live in HK</p></a>"; //Main Image
   html +="</td></tr></table>";

		// this is news 42
	
	html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
	html +="<td class=leftContent>15.12.2009</td>"; // News Date
	html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
	html +="<img src=images/spacer.gif width=100% height=5><br>";
	html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
	html +="<p align=center><a href=news.php><img src=/html/whatsNews/2009/1215/eels.jpg width=165 border=0></a></p>"; //Main Image
	html +="<a href=news.php><p align=center>Eels - In My Younger Days</p></a>"; //Main Image
	html +="</td></tr></table>";
	
	  // this is news 41

	html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
	html +="<td class=leftContent>14.12.2009</td>"; // News Date
	html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
	html +="<img src=images/spacer.gif width=100% height=5><br>";
	html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
	html +="<a href=news.php><p align=center>Love Da Newsletter 14 Dec</p></a>"; //Main Image
	html +="</td></tr></table>";
	
	  // this is news 40

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>07.12.2009</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2009/1207/telepathe_small.jpg border=0></a></p>"; //Main Image
   html +="<a href=news.php><p align=center>Love Da Records Christmas Party</p></a>"; //Main Image
   html +="</td></tr></table>";
  	           	
	  // this is news 39
	
	html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
	html +="<td class=leftContent>19.10.2009</td>"; // News Date
	html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
	html +="<img src=images/spacer.gif width=100% height=5><br>";
	html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
	html +="<a href=news.php><p align=center>Love Da Newsletter 30 Nov</p></a>"; //Main Image
	html +="</td></tr></table>";
	
	  // this is news 38

   html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
   html +="<td class=leftContent>11.11.2009</td>"; // News Date
   html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
   html +="<img src=images/spacer.gif width=100% height=5><br>";
   html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
   html +="<p align=center><a href=news.php><img src=/html/whatsNews/2009/1111/WOS_small.jpg border=0></a></p>"; //Main Image
   html +="<a href=news.php><p align=center>Wall of Sound 15 Year's Anniversary Party</p></a>"; //Main Image
   html +="</td></tr></table>";
             	
		// this is news 37
	
	html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
	html +="<td class=leftContent>04,11.2009</td>"; // News Date
	html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
	html +="<img src=images/spacer.gif width=100% height=5><br>";
	html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
	html +="<p align=center><a href=news.php><img src=/html/whatsNews/2009/1104/brett.jpg width=165 border=0></a></p>"; //Main Image
	html +="<a href=news.php><p align=center>Brett Anderson - The Hunted</p></a>"; //Main Image
	html +="</td></tr></table>";
	
	// this is news 36
	
	html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
	html +="<td class=leftContent>02.11.2009</td>"; // News Date
	html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
	html +="<img src=images/spacer.gif width=100% height=5><br>";
	html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
	html +="<a href=news.php><p align=center>Love Da Newsletter 02 Nov</p></a>"; //Main Image
	html +="</td></tr></table>";
	
	// this is news 35
	
	html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
	html +="<td class=leftContent>02.11.2009</td>"; // News Date
	html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
	html +="<img src=images/spacer.gif width=100% height=5><br>";
	html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
	html +="<p align=center><a href=news.php><img src=/html/whatsNews/2009/1102/clockenflap_small.JPG border=0></a></p>"; //Main Image
	html +="<a href=news.php><p align=center>Clockenflap Music and Multi-media Arts Festival 09</p></a>"; //Main Image
	html +="</td></tr></table>";
	
	// this is news 34
	
	html +="<table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
	html +="<td class=leftContent>19.10.2009</td>"; // News Date
	html +="<td width=130 background=images/left_eventNews_top_bg.gif>&nbsp;</td></tr></table>"; 
	html +="<img src=images/spacer.gif width=100% height=5><br>";
	html +="<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left valign=top class=leftContent>";
	html +="<a href=news.php><p align=center>Love Da Newsletter 19 Oct</p></a>"; //Main Image
	html +="</td></tr></table>";
	*/
	
	document.write(html);
}


/*
 * Post a form using AJAX
 * url - the page to handle submit.
 * parameters - the parameters to submit
 * funStr - a script to handle the XMLHttpRequest state change, the XMLHttpRequest Object named "http_request".
 */
function makePOSTRequest(url, parameters, funcStr) {
	http_request = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/html');
		}
	} else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!http_request) {
		alert('Cannot create XMLHTTP instance');
		return false;
	}
	
	http_request.onreadystatechange = function(){eval(funcStr);};
	http_request.open('POST', url, true);
	http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	http_request.setRequestHeader("Content-length", parameters.length);
	http_request.setRequestHeader("Connection", "close");
	http_request.send(parameters);
}

/*
 * Form a parameters string from a Form object.
 * obj - a html form.
 */
function getParamsStr(obj) {
	var getstr = "";
	
	var objList = obj.getElementsByTagName("input");
	if ( objList ){
		for (i=0; i<objList.length; i++) {
			if ((objList[i].type == "text") || (objList[i].type == "hidden") || (objList[i].type == "password")) {
				getstr += (objList[i].name + "=" + objList[i].value + "&");
			} else if ( objList[i].type == "checkbox" ){
				getstr += (objList[i].name + "=" + ((objList[i].checked) ? objList[i].value : '') + "&");
			} else if ( (objList[i].type == "radio") && objList[i].checked ){
				getstr += (objList[i].name + "=" + objList[i].value);
			}
		}
	}
	
	var selectList = obj.getElementsByTagName("select");
	if ( selectList ){
		for (i=0; i<selectList.length; i++) {
			getstr += (selectList[i].name + "=" + selectList[i].value + "&");
		}
	}
	
	for (i=0; i<obj.getElementsByTagName("textarea").length; i++) {
		getstr += obj.getElementsByTagName("textarea")[i].name + "=" + 
		escape(encodeURI(obj.getElementsByTagName("textarea")[i].value)) + "&";
	}
	return getstr;
}


/*
 * To Submit a form by Ajax
 * from - is a HTML Form Object
 * funcStr - is a javascript to be execute when callback.
 */
function ajaxFormSubmit( formObj, funcStr ){
	if ( (formObj) && (formObj.tagName == 'FORM')){
		var params = getParamsStr( formObj );
		makePOSTRequest( formObj.action, params, funcStr );
	}
	
	return false;
}

function evalScripts(scripts)
{	
	try
	{	if(scripts != '')	
		{	var script = "";
			scripts = scripts.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(){
				if (scripts !== null) script += arguments[1] + '\n';
					return '';
			});
			if(script) (window.execScript) ? window.execScript(script) : window.setTimeout(script, 0);
		}
		return false;
	}
	catch(e)
	{
		alert(e)
	}
}

function handleResponse( http_request ){
	if (http_request.readyState == 4) {
		if (http_request.status == 200){
			var obj = document.getElementById('loginFromArea');
			obj.innerHTML = http_request.responseText ;
			evalScripts( http_request.responseText );
		}
	}
}

// Login 

function login( prefix ){
	var noErr = true;
	var obj = document.getElementById( prefix + 'username');
	if ( !(obj) || (obj.value.length == 0) ){
		alert('Please enter username!');
		noErr = false;
	}
	if ( noErr ){
		obj = document.getElementById( prefix + 'password');
		if ( !(obj) || (obj.value.length == 0) ){
			alert('Please enter password!');
			noErr = false;
		}
	}
	if ( noErr ){
		ajaxFormSubmit(document.getElementById( prefix + 'Form'), 'handleResponse( http_request );');
	}
	return noErr;
}

leftContent();
makePOSTRequest( langPath + 'login.php', 'init=true', 'handleResponse( http_request );');


             		 
