<?php require_once('Connections/JCH_Sql.php'); ?>
<?php
// Code provided by http://www.protectwebform.com 

if($_GLOBALS['REQUEST_METHOD'] == 'POST' || count($_POST) > 0) { 
$pwf_message = "The image code you have provided does not match the 
actual one. Hit the 'back' button of your browser and input the correct code please.";

if(strlen($_POST['protectwebformcode']) > 30) {
		die($pwf_message);
}

$protectwebformresult = 
	@file_get_contents( "http://protectwebform.com/verify01?vui=3214&vp=w47sxgr156dq&ri=" . 
	urlencode($_SERVER['REMOTE_ADDR']) . "&vs=" . 
	urlencode($_POST['protectwebformcode'])); 
if(preg_match("|<authorization status=\"0\"|", $protectwebformresult)) { 
    echo "Warning. You are not authorithed to use image protection provided by 
		http://www.protectwebform.com. Read http://www.protectwebform.com 
		FAQ for more information"; 
} elseif(!preg_match("|<verification result=\"yes\"/>|", $protectwebformresult)) { 
    die($pwf_message); 
}
}                                                                            
// End of code provided by http://www.protectwebform.com 

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

// configure to fit your needs
$to = "magendran.adeyah@gmail.com";
$toname = "Webmaster";
$subject = "Guest Comments to Artiste";
// for Drupal users modify the form tag the same as the alias line in the page
// do not modify below this line
if (isset($_POST['MM_insert']))
{
$from = $_POST['email'];
$fromname = $_POST['name'];
$fArtist = $_POST['hiddenBand'];
$fdate = $_POST['Date'];
$message = $_POST['comment'];
// extra info to add to message
$address = gethostbyaddr($_SERVER['REMOTE_ADDR']); 
$ip = gethostbyname($_SERVER['REMOTE_ADDR']); 
$timestamp = time (); 
$filename =  $_SERVER['PHP_SELF']; 
$location = $_SERVER['SERVER_NAME'];
// adding
$messagewithinfo = "Artist Name = $fArtist \n Name = $fromname <$from> \n Date = $fdate \n Wrote = \n $message
\n Extra info: \n IP =  $ip \n Address = $address \n Time at server = $timestamp \n Sent with this page = $locationn";
mail($to, $subject, $messagewithinfo, "From: $fromname <$from>\n" . "Reply-To: $from \n" . "X-Mailer: PHP/" . phpversion());
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "Guestbook")) {

  $insertSQL = sprintf("INSERT INTO Guestbook (band, bandURL, name, email, comment, datetime) VALUES (%s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['hiddenBand'], "text"),
                       GetSQLValueString($_POST['hiddenBandURL'], "text"),
                       GetSQLValueString($_POST['name'], "text"),
                       GetSQLValueString($_POST['email'], "text"),
                       GetSQLValueString($_POST['comment'], "text"),
                       GetSQLValueString($_POST['Date'], "text"));

  mysql_select_db($database_JCH_Sql, $JCH_Sql);
  $Result1 = mysql_query($insertSQL, $JCH_Sql) or die(mysql_error());
}

$colname_Artiste_Band_Details = "-1";
if (isset($_GET['BandName'])) {
  $colname_Artiste_Band_Details = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_Artiste_Band_Details = sprintf("SELECT * FROM Band_List WHERE URL_Safe_Name = '%s' ORDER BY Band_Name ASC", $colname_Artiste_Band_Details);
$Artiste_Band_Details = mysql_query($query_Artiste_Band_Details, $JCH_Sql) or die(mysql_error());
$row_Artiste_Band_Details = mysql_fetch_assoc($Artiste_Band_Details);
$totalRows_Artiste_Band_Details = mysql_num_rows($Artiste_Band_Details);

$VarBandName_Artiste_Member_Details = "1";
if (isset($_GET['BandName'])) {
  $VarBandName_Artiste_Member_Details = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_Artiste_Member_Details = sprintf("SELECT * FROM Band_Members WHERE Status = 'Available'  AND SafeName = '%s'", $VarBandName_Artiste_Member_Details);
$Artiste_Member_Details = mysql_query($query_Artiste_Member_Details, $JCH_Sql) or die(mysql_error());
$row_Artiste_Member_Details = mysql_fetch_assoc($Artiste_Member_Details);
$totalRows_Artiste_Member_Details = mysql_num_rows($Artiste_Member_Details);

$colname_PerformanceRecord = "1";
if (isset($_GET['BandName'])) {
  $colname_PerformanceRecord = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_PerformanceRecord = sprintf("SELECT * FROM PerformanceRecord WHERE `BAND NAME` = '%s'", $colname_PerformanceRecord);
$PerformanceRecord = mysql_query($query_PerformanceRecord, $JCH_Sql) or die(mysql_error());
$row_PerformanceRecord = mysql_fetch_assoc($PerformanceRecord);
$totalRows_PerformanceRecord = mysql_num_rows($PerformanceRecord);

$maxRows_Guestbook = 3;
$pageNum_Guestbook = 0;
if (isset($_GET['pageNum_Guestbook'])) {
  $pageNum_Guestbook = $_GET['pageNum_Guestbook'];
}
$startRow_Guestbook = $pageNum_Guestbook * $maxRows_Guestbook;

$colname_Guestbook = "-1";
if (isset($_GET['BandName'])) {
  $colname_Guestbook = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_Guestbook = sprintf("SELECT * FROM Guestbook WHERE bandURL = '%s' AND YesNo = '1' ORDER BY Id DESC", $colname_Guestbook);
$query_limit_Guestbook = sprintf("%s LIMIT %d, %d", $query_Guestbook, $startRow_Guestbook, $maxRows_Guestbook);
$Guestbook = mysql_query($query_limit_Guestbook, $JCH_Sql) or die(mysql_error());
$row_Guestbook = mysql_fetch_assoc($Guestbook);

if (isset($_GET['totalRows_Guestbook'])) {
  $totalRows_Guestbook = $_GET['totalRows_Guestbook'];
} else {
  $all_Guestbook = mysql_query($query_Guestbook);
  $totalRows_Guestbook = mysql_num_rows($all_Guestbook);
}
$totalPages_Guestbook = ceil($totalRows_Guestbook/$maxRows_Guestbook)-1;

$colname_GuestReview = "-1";
if (isset($_GET['BandName'])) {
  $colname_GuestReview = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_GuestReview = sprintf("SELECT * FROM Guestbook WHERE bandURL = '%s' AND YesNo = '0'", $colname_GuestReview);
$GuestReview = mysql_query($query_GuestReview, $JCH_Sql) or die(mysql_error());
$row_GuestReview = mysql_fetch_assoc($GuestReview);
$totalRows_GuestReview = mysql_num_rows($GuestReview);

$colname_RSVideo = "-1";
if (isset($_GET['BandName'])) {
  $colname_RSVideo = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_RSVideo = sprintf("SELECT * FROM Band_List WHERE URL_Safe_Name = '%s' AND VideoYN = '1'", $colname_RSVideo);
$RSVideo = mysql_query($query_RSVideo, $JCH_Sql) or die(mysql_error());
$row_RSVideo = mysql_fetch_assoc($RSVideo);
$totalRows_RSVideo = mysql_num_rows($RSVideo);

$colname_CheckGuestBook = "-1";
if (isset($_GET['BandName'])) {
  $colname_CheckGuestBook = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_CheckGuestBook = sprintf("SELECT * FROM Guestbook WHERE bandURL = '%s' ", $colname_CheckGuestBook);
$CheckGuestBook = mysql_query($query_CheckGuestBook, $JCH_Sql) or die(mysql_error());
$row_CheckGuestBook = mysql_fetch_assoc($CheckGuestBook);
$totalRows_CheckGuestBook = mysql_num_rows($CheckGuestBook);

$colname_Available = "-1";
if (isset($_GET['BandName'])) {
  $colname_Available = (get_magic_quotes_gpc()) ? $_GET['BandName'] : addslashes($_GET['BandName']);
}
mysql_select_db($database_JCH_Sql, $JCH_Sql);
$query_Available = sprintf("SELECT * FROM Band_List WHERE URL_Safe_Name = '%s' AND End_Year = '0'", $colname_Available);
$Available = mysql_query($query_Available, $JCH_Sql) or die(mysql_error());
$row_Available = mysql_fetch_assoc($Available);
$totalRows_Available = mysql_num_rows($Available);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>J C H O N L I N E | Artiste Details Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="Images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url(Images/bg.jpg);
	background-repeat: repeat-x;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->

</script>

</head>
<body>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="150">
      <param name="movie" value="Images/extras/banner2.swf">
      <param name="quality" value="high">
      <embed src="Images/extras/banner2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="150"></embed>
    </object></td>
</tr>
<tr>
  <td>&nbsp;</td>
</tr>
<tr>
	<td width="625" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
        <td width="100%" colspan="2" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td bgcolor="#CCCCCC"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
                    <tr>
                      <td width="9%" align="center" valign="top">
					  
                       <p class="default"><img src="<?php echo $row_Artiste_Band_Details['Photo_Big']; ?>" alt="Click to view bigger photo.."onClick="javascript:window.open('<?php echo $row_Artiste_Band_Details['Big_photo1']; ?>','','width=710,height=800,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,channelmode=no,directories=no','righttop','ignoreLink','',0,'borderless',2,10,5,'');return document.MM_returnValue"><br>
                       </p>
					   
                       </td>
                      <td width="91%" align="center" valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="0">
                        <tr>
                          <td align="center" class="Header1"><?php echo $row_Artiste_Band_Details['Band_Name']; ?></td>
                        </tr>
                        <tr>
                          <td class="Header1"><hr width="80%"></td>
                        </tr>
                        <tr>
                          <td><p align="justify" class="default">
						  <?php 
						  echo $row_Artiste_Band_Details['Band_Write_Up']; 
						  //echo str_replace('\n','<br />' , $row['']); //this is how to break a line.
					  ?>
						  </p>
                              <p class="default">&nbsp;</p></td>
                        </tr>
                        <tr>
                          <td align="center" class="default"><table width="95%" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#F0F0F0">
                              <tr>
                                <td width="38%" valign="top" class="default"><strong>Band Category </strong></td>
                                <td width="1%" valign="top" class="default"><strong>:</strong></td>
                                <td width="61%" valign="top" class="default"><p><?php echo $row_Artiste_Band_Details['Band_Type']; ?>.</p></td>
                              </tr>
                              <tr>
                                <td colspan="3" valign="top" class="default"><span class="smallnews">
                                  <?php if ($totalRows_Available =="0"){?>
                                </span></td>
                                </tr>
                              <tr>
                                <td valign="top" class="default"><strong>Currently perform at</strong></td>
                                <td valign="top" class="default"><strong>:</strong></td>
                                <td valign="top" class="default"><?php echo $row_Artiste_Band_Details['Venue']; ?>, <?php echo $row_Artiste_Band_Details['City']; ?>, <?php echo $row_Artiste_Band_Details['Country']; ?>.<br>
                                  From <?php echo $row_Artiste_Band_Details['Start_Day']; ?> - <?php echo $row_Artiste_Band_Details['Start_Month']; ?> - <?php echo $row_Artiste_Band_Details['Start_Year']; ?> to <?php echo $row_Artiste_Band_Details['End_Day']; ?> - <?php echo $row_Artiste_Band_Details['End_Month']; ?> - <?php echo $row_Artiste_Band_Details['End_Year']; ?>.<br></td>
                              </tr>
                              <tr>
                                <td colspan="3" valign="top" bgcolor="#FFFFFF" class="default"><?php } ?>
                                  <p align="right" class="SmallTitle2"><? if ($row_Artiste_Band_Details['Other_Downloads'] !="0") {  ?></p>
                                  <p align="right" class="SmallTitle2">&nbsp;<a href="<?php echo $row_Artiste_Band_Details['Other_Downloads']; ?>" target="_blank">Download</a>                                      </p>
                                  <p align="right" class="SmallTitle2">
                                    <?php } ?>
                                  </p>
                                  <p class="smallnews">
                                    <?php if ($totalRows_Available >="1") {?>
                                  </p>
                                  </td>
                                </tr>
                              <tr>
                                <td colspan="3" align="center" valign="top" class="default"><p>&nbsp;</p>
                                  <p align="center">This band is available for booking.<br>
                                      <a href="request.php?caption=Request for band name, <?php echo $row_Artiste_Band_Details['Band_Name']; ?>">Contact  us </a>now for more information. </p>
                                  <p>&nbsp;</p></td>
                                </tr>
                              <tr>
                                <td colspan="3" valign="top" class="default"><?php } ?></td>
                                </tr>
                            </table>
                              <SCRIPT LANGUAGE="JavaScript">
function isPPC() {
if (navigator.appVersion.indexOf("PPC") != -1) return true;
else return false;
}
if(isPPC()) {
document.write('<b>Send <A CLASS="contact" HREF=\"mailto:\?subject\=Take a look at this page I found, ' + document.title + '?body=You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends e-mail about this page\'; return true" TITLE="Send your friends e-mail about this page">this page<\/A> to a friend</b>');
}
else { document.write('Send <A CLASS="contact" HREF=\"mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends e-mail about this page\'; return true" TITLE="Send your friends e-mail about this page">this page<\/A> to a friend');
}
//  End --></script></td>
                        </tr>
                        <tr>
                          <td></td>
                        </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
              
            </table></td>
          </tr>
        </table>          </td>
        </tr>
       <tr>
         <td colspan="2" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
           <tr>
             <td valign="top">&nbsp;</td>
             <td align="center" valign="top">&nbsp;</td>
           </tr>
           <tr>
             <td width="50%" valign="top"><table width="400" border="0" cellpadding="1" cellspacing="0" bgcolor="#E0E0E0">
               
               <tr>
                 <td></td>
               </tr>
               
               <tr>
                 <td class="default"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                   <tr>
                     <td class="default"><span class="SmallTitle style3"><img src="Images/extras/titleMemberProfile.gif" width="400" height="30"></span></td>
                   </tr>
                   <tr>
                     <td><?php do { ?>
                         <table width="390"  border="0" align="center" cellpadding="0" cellspacing="0">
                           <tr>
                             <td><div align="center"></div></td>
                           </tr>
                           <tr>
                             <th align="center"><table width="390"  border="0" align="center" cellpadding="5" cellspacing="0" background="Images/bgLeft.gif" id="Performance Record">
                                 <tr class="news">
                                   <td width="50%" bgcolor="#CCCCCC" class="SmallTitle"><?php echo $row_Artiste_Member_Details['Member_Name']; ?><span class="text"><br>
                                     [<?php echo $row_Artiste_Member_Details['Gender']; ?> ] </span></td>
                                   <td width="50%" bgcolor="#CCCCCC" class="news"><div align="right" class="SmallTitle2"><strong><?php echo $row_Artiste_Member_Details['Position']; ?> </strong></div></td>
                                 </tr>
                                 <tr class="news">
                                   <td colspan="2" class="news"><table width="100%" border="0" cellspacing="0" cellpadding="5">
                                       <tr>
                                         <td class="default"><div align="justify"><?php echo $row_Artiste_Member_Details['Profile']; ?></div></td>
                                       </tr>
                                     </table>
                                       </div></td>
                                 </tr>
                             </table></th>
                           </tr>
                           <tr>
                             <td align="center"><img src="Images/leftBtm.gif" width="390" height="5"></td>
                           </tr>
                           <tr>
                             <td align="center">&nbsp;</td>
                           </tr>
                         </table>
                       <?php } while ($row_Artiste_Member_Details = mysql_fetch_assoc($Artiste_Member_Details)); ?></td>
                   </tr>
                   
                 </table>                   </td>
               </tr>
             </table>
               <table width="100%" border="0" cellspacing="0" cellpadding="0">
                 
                 <tr bgcolor="#F0F0F0">
                   <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                 </tr>
                 <tr bgcolor="#F0F0F0">
                   <td align="center" bgcolor="#FFFFFF"><span class="smallnews">
                     <?php if ($totalRows_PerformanceRecord >="1") {?>
                   </span></td>
                 </tr>
                 
                 <tr>
                   <td><img src="Images/extras/titlePerform.gif" width="400" height="30">
                     <table width="390"  border="0" align="center" cellpadding="0" cellspacing="0">
                       <tr>
                         <td align="center"><div align="center">
                             <div align="justify" class="smallnews">
                               <div align="center" class="SmallTitle"><img src="Images/LeftTop.gif" width="390" height="5"></div>
                             </div>
                         </div></td>
                       </tr>
                       <tr>
                         <th><table width="390"  border="0" align="center" cellpadding="1" cellspacing="0" id="Performance Record">
                             <tr class="news">
                               <td background="Images/bgLeft.gif" class="smallnews"><table width="100%"  border="0" cellpadding="3" cellspacing="0">
                                   <?php do { ?>
                                   <tr class="smallnews">
                                     <td width="51%"><span class="text"><?php echo $row_PerformanceRecord['VENUE']; ?></span>, <span class="text"><?php echo $row_PerformanceRecord['CITY']; ?></span>, <br>
                                         <span class="text"><?php echo $row_PerformanceRecord['COUNTRY']; ?></span>.</td>
                                     <td width="49%" valign="top"><div align="right" class="text"><strong><?php echo $row_PerformanceRecord['PERIOD']; ?></strong></div></td>
                                   </tr>
                                   <?php } while ($row_PerformanceRecord = mysql_fetch_assoc($PerformanceRecord)); ?>
                               </table></td>
                             </tr>
                         </table></th>
                       </tr>
                       <tr>
                         <td align="center"><div align="center"><img src="Images/leftBtm.gif" width="390" height="5"></div></td>
                       </tr>
                     </table>                       </td>
                 </tr>
                 <tr bgcolor="#F0F0F0">
                   <td align="center" bgcolor="#FFFFFF"><?php } ?></td>
                 </tr>
               </table>
               <p>&nbsp;</p>
               <p>&nbsp;</p></td>
             <td width="50%" align="center" valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0">
               
               <tr>
                 <td align="center">
                   <p><a href="request.php"><img src="Images/extras/request.jpg" width="350" height="86" border="0"></a>
                     </div>
                   </p>
                   </td>
               </tr>
               <tr>
                 <td>&nbsp;</td>
               </tr>
               <tr>
                 <td align="center">
                   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="370" height="200">
                     <param name="movie" value="Images/extras/promo.swf">
                     <param name="quality" value="high">
                     <embed src="Images/extras/promo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="370" height="200"></embed>
                   </object>
                 </span></td>
               </tr>
               <tr>
                 <td align="center"><span class="smallnews">
                   <?php if ($totalRows_RSVideo >="1") {?>
                 </span></td>
               </tr>
               <tr>
                 <td align="center">&nbsp;</td>
               </tr>
               
               <tr>
                 <td><table width="390"  border="0" align="center" cellpadding="0" cellspacing="0">
                     <tr>
                       <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                           <tr>
                             <td width="5%"><img src="Images/extras/redL.gif" width="20" height="25"></td>
                             <td width="94%" background="Images/extras/redBG.gif" class="SmallTitleWhite">Artiste Video Preview </td>
                             <td width="1%"><img src="Images/extras/redR.gif" width="20" height="25"></td>
                           </tr>
                       </table></td>
                     </tr>
                     <tr>
                       <th align="center" background="Images/bgLeft.gif" class="smallnews"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                           <tr>
                             <td width="100%" align="center">&nbsp;</td>
                             </tr>
                           <tr>
                             <td align="center"><embed src="<?php echo $row_Artiste_Band_Details['Video_URL']; ?>"></embed></td>
                           </tr>
                           <tr>
                             <td align="center">&nbsp;</td>
                           </tr>
                           <tr>
                             <td align="center"><table width="100%" border="0" cellspacing="5" cellpadding="10">
                               <tr>
                                 <td align="center"><span class="text">The video are used for preview purposes only. 
                               The visual and audio quality was set to the minimum setting  to minimize the downloading time.<br>
                                 </span></td>
                               </tr>
                             </table>
                               <p class="default"></p></td>
                             </tr>
                       </table>					   </th>
                     </tr>
                     <tr>
                       <td align="center"><img src="Images/leftBtm.gif" width="390" height="5"></td>
                     </tr>
                 </table></td>
               </tr>
               <tr>
                 <td align="center"><?php } ?></td>
               </tr>
               <tr>
                 <td align="center">&nbsp;</td>
               </tr>
               <tr>
                 <td><table width="390"  border="0" align="center" cellpadding="0" cellspacing="0">
                     <tr>
                       <th align="center" class="smallnews"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                           <tr>
                             <td width="5%"><img src="Images/extras/redL.gif" width="20" height="25"></td>
                             <td width="94%" background="Images/extras/redBG.gif" class="SmallTitleWhite">Guest Comments </td>
                             <td width="1%"><img src="Images/extras/redR.gif" width="20" height="25"></td>
                           </tr>
                       </table></th>
                     </tr>
                     <tr>
                       <td align="center" background="Images/bgLeft.gif"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                           <tr>
                             <td align="center"></td>
                           </tr>
                           <tr>
                             <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                               <tr>
                                 <td><span class="smallnews">
                                   <?php if ($row_Guestbook >="1") {?>
                                 </span></td>
                               </tr>
                               <tr>
                                 <td><?php do { ?>
                                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                       <tr>
                                         <td class="default"><table width="100%" border="0" cellspacing="0" cellpadding="2">
                                             <tr>
                                               <td width="10" bgcolor="#F0F0F0">&nbsp;</td>
                                               <td width="211" bgcolor="#F0F0F0" class="default"><?php echo $row_Guestbook['name']; ?></td>
                                               <td width="126" align="right" bgcolor="#F0F0F0" class="default"><?php echo $row_Guestbook['email']; ?></td>
                                               <td width="12" align="right" bgcolor="#F0F0F0" class="default">&nbsp;</td>
                                             </tr>
                                         </table></td>
                                       </tr>
                                       <tr>
                                         <td align="right" class="default"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                                             <tr>
                                               <td class="default"><?php echo $row_Guestbook['comment']; ?></td>
                                             </tr>
                                         </table></td>
                                       </tr>
                                       <tr>
                                         <td class="default">&nbsp;</td>
                                       </tr>
                                     </table>
                                   <?php } while ($row_Guestbook = mysql_fetch_assoc($Guestbook)); ?>
                                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                       <tr>
                                         <td align="right" class="footer"><a href="addguestbook_go.php?BandName=<?php echo $row_Artiste_Band_Details['URL_Safe_Name']; ?>">read all &gt;&gt; </a></td>
                                       </tr>
                                     </table>
                                   <?php } ?></td>
                               </tr>
                               <tr>
                                 <td align="center"><p class="default"><span class="smallnews">
                                     <?php if ($totalRows_CheckGuestBook =="0") {?>
                                   </span></p>
                                     <p class="default">No Comment given to this Artiste yet. <br>
                                       Be the first one to post a comment.
                                       <?php } ?>
                                   </p></td>
                               </tr>
                               <tr>
                                 <td>&nbsp;</td>
                               </tr>
                             </table></td>
                           </tr>
                           <tr>
                             <td align="center"><form action="<?php echo $editFormAction; ?>" method="POST" name="Guestbook" id="Guestbook">
                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                     <tr>
                                       <td width="22%" class="default"><strong>Name</strong></td>
                                       <td><span class="default"><strong>:
                                         </strong></span>
                                         <input name="name" type="text" id="name" size="25"></td>
                                     </tr>
                                     <tr>
                                       <td class="default"><strong>E-mail</strong></td>
                                       <td class="default"><strong>:
                                         </strong>
                                         <input name="email" type="text" id="email" size="25"></td>
                                     </tr>
                                     <tr>
                                       <td valign="top" class="default"><strong>Comments : </strong></td>
                                       <td><textarea name="comment" cols="35" rows="4" id="textarea" onBlur="MM_validateForm('name','','R','email','','RisEmail','textarea','','R');return document.MM_returnValue"></textarea></td>
                                     </tr>
                                     <tr>
                                       <td class="default"><input name="hiddenBand" type="hidden" id="hiddenBand" value="<?php echo $row_Artiste_Band_Details['Band_Name']; ?>">
                                           <input name="hiddenBandURL" type="hidden" id="hiddenBandURL" value="<?php echo $row_Artiste_Band_Details['URL_Safe_Name']; ?>">
                                           <input name="Date" type="hidden" id="Date" value="<?php echo $datetime=date("D dS M,Y h:i a"); ?>">                                       </td>
                                       <td class="default"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                         <tr>
                                           <td width="22%"><img src="http://protectwebform.com/image/3214/" border="0"></td>
                                           <td width="3%">&nbsp;</td>
                                           <td width="75%" class="default"><img src="http://www.protectwebform.com/images/ssl_lock.gif" border="0"> Enter the code shown in the image:<br />
                                               <input type="text" style="vertical-align:top;"  name="protectwebformcode" value=""></td>
                                         </tr>
                                       </table>									   </td>
                                       </tr>
                                     <tr>
                                       <td colspan="2" align="center" class="default">&nbsp;</td>
                                       </tr>
                                     <tr>
                                       <td colspan="2" align="center" class="default"><input name="Submit" type="submit" onClick="MM_validateForm('name','','R','email','','RisEmail','textarea','','R');return document.MM_returnValue" value="Submit">
                                         <input name="Reset" type="reset" id="Reset" value="Reset"></td>
                                     </tr>
                                   </table>
                                   <p class="default">
                                     <input type="hidden" name="MM_insert" value="Guestbook">
                                     Have a lot to talk about? <a href="phpBB2/index.php">Join</a> our forum now                                   </p>
                                 </form></td>
                           </tr>
                           
                       </table></td>
                     </tr>
                     <tr>
                       <td align="center"><img src="Images/leftBtm.gif" width="390" height="5"></td>
                     </tr>
                 </table></td>
               </tr>
             </table>
               <p><a href="javascript:window.print()"> <img src="Images/extras/print.gif" width="49" height="49" border="0">
			   </a></p></td>
           </tr>
         </table></td>
        </tr>
       
    </table></td>
</tr>

<tr>
  <td bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
<tr>
  <td background="Images/bgRB.gif" bgcolor="#000000"><div align="center"><span class="footer">| &copy; Copyright   1998 - 2006 John Chacko Holdings Sdn. Bhd. | Last Updated on
    <!-- #BeginDate format:Am1m -->January 18, 2009  0:23<!-- #EndDate -->
    |</span></div></td>
</tr>
</table>

</body>
</html>