<?php


$logged=$_GET['log'];

include("../admin/GoTool/cat.inc");
 $connection = @mysql_connect($host,$user,$password) or die(mysql_error());
$db = @mysql_select_db($db_name,$connection) or die(mysql_error());
 $testy=$_GET['test'];
 $log=$_GET['log'];

$prog="notes222.php";

$Rtoday1=date("Y-m-d h:i:s");

 $testy=$_GET['test'];
 $log=$_GET['log'];
 $agent_id=$log;


 $sq112abM="SELECT * FROM $table_name85  ORDER BY name  ";
  $result112abM = @mysql_query($sq112abM,$connection) or die(mysql_error());
while ($row112abM = mysql_fetch_array($result112abM)) {
       $nameG =$row112abM['name'];
 $group_id =$row112abM['survey_id'];    
$nameGG2[$group_id]=$nameG;
        }

$jedID2=5;


$tok=$_GET['token'];
$bar=$_GET['ean'];
//$tok= session_id();
//include("../cat.inc");
    $cust_id=$log;

  if ($jedID2 == 5) {
  $display_title="Activity Panel";
   $phone=$_POST['phone'];
  $phone = ereg_replace("[^A-Za-z0-9]", "", $phone );
  $phone = str_replace(' ', '', $phone);
  //$home=$phone;
    $email=$_POST['email'];
 //   $email=$cust_emailC
    $fname = $_POST['fname'];
    $fnameC = strtoupper($fname);
   $fname =trim($fname);
     $fname1 =substr($fname,1,3);
  $lname= $_POST['lname'];
  $lnameC = strtoupper($lname);
   $lname =trim($lname);
   $lname1 =substr($lname,1,3);
  $lname =strtolower ($lname);
   $fname =strtolower ($fname);
    $cust_id=$_POST['cust'];

     $consult_del=$_POST['consult_del'];
     $cat_mod=$_POST['cat_mod'];
     $cat_mod=$_POST['cat_mod'];
     $gbad=$_POST['gbad'];
     $lang=1;
    $cat_text= "Add New Text to Edit";





    if ($gbad == 6){
              $sql2 = "INSERT INTO $table_name71 (language_id, name  ) VALUES ( '$lang', '$cat_mod')";
$result2 = @mysql_query($sql2,$connection) or die(mysql_error());
    }

      if ($gbad == 7){
              if ($cat_mod == $cat_text){
             $sql2 ="DELETE FROM $table_name71 WHERE (stock_status_id = '$consult_del') ";
             $result2 = @mysql_query($sql2,$connection) or die(mysql_error());
                                         }else {
              $sql2 = "UPDATE $table_name71 SET  name= '$cat_mod'   WHERE stock_status_id = '$consult_del'";
$result2 = @mysql_query($sql2,$connection) or die(mysql_error());
    }
      }


  if(($fname==$blink) or ($fname==0)){
   $sql33 ="SELECT * FROM $table_name36 WHERE customer_id = '$cust_id' ";
     $result331 = @mysql_query($sql33,$connection) or die(mysql_error());
//     $row1=mysql_fetch_assoc($result331);
    while ($row1 = mysql_fetch_array($result331)) {
  $fnameC=  $row1['firstname'];
  $lnameC=  $row1['lastname'];
  $email=  $row1['email'];
  $email=$cust_email;
  $phone=  $row1['telephone'];
   $address_id=  $row1['address_id'];
  }
 }






   //   if(($home ==0) OR ($home == $blink)) {
 //       $sql33b ="SELECT * FROM $table_name70 WHERE (app_id = '$app_id') ";
//     $result331b = @mysql_query($sql33b,$connection) or die(mysql_error());
//       while ($row1bc = mysql_fetch_array($result331b)) {
  //$app_id=  $row1b['app_id'];
//  $home=  $row1bc['telephone'];
 //                            }
//     }



    $sql33 ="SELECT * FROM $table_name36 WHERE (customer_id = '$log') ";
     $result331 = @mysql_query($sql33,$connection) or die(mysql_error());
//     $row1=mysql_fetch_assoc($result331);
    while ($row1 = mysql_fetch_array($result331)) {
  $cust_first=  $row1['firstname'];
  $cust_last=  $row1['lastname'];
  $cust_email=  $row1['email'];

  $phone=  $row1['telephone'];
   $address_id=  $row1['address_id'];
  }


if (($email == $blink) or ($email == 0)){
  $email=$cust_email;
  }




 $sql34 ="SELECT * FROM $table_name40 WHERE address_id = '$address_id' ";
        $result224 = @mysql_query($sql34,$connection) or die(mysql_error());
        $row14 =mysql_fetch_array($result224,MYSQL_ASSOC);
        if ($address_id == $row14['address_id'])
        {
         $company=  $row14['company'];
     $address_1 =$row14['address_1'];
    $address_2 =$row14['address_2'];
    $cityC =$row14['city'];
    $postcode =$row14['postcode'];
    $country_id =$row14['country_id'];
    $zone_id =$row14['zone_id'];
        }

        $sql35 ="SELECT * FROM $table_name45 WHERE country_id = '$country_id' ";
        $result225 = @mysql_query($sql35,$connection) or die(mysql_error());
        $row15 =mysql_fetch_array($result225,MYSQL_ASSOC);
        if ($country_id == $row15['country_id'])
        {
         $country=  $row15['name'];
        }



        $sql36 ="SELECT * FROM $table_name46 WHERE country_id = '$country_id' AND zone_id = '$zone_id' ";
        $result226 = @mysql_query($sql36,$connection) or die(mysql_error());
        $row16 =mysql_fetch_array($result226,MYSQL_ASSOC);

     if (($zone_id == $row16['zone_id']) || ($country_id==$row16['country_id']))
        {
         $zone=  $row16['name'];
        }





          if ($date==$blink){
           $date=$today;
          }

          if ($address==$blink){
           $address = "$address_1, $address_2";
           $city=$cityC;
$state = $zone;
$zip = $postcode;
          }





 // include("worksheet_formG.php");         //the main worksheet
 // include("address_update.php");
  //include("mail_out1.php");

  include("rightbar1.php");

 include("bottomB.php");

      $deliverables="Ready to Review your Deliverables?";
    $activities="Ready to Start? Take the Flow Test.";
    $explore="Ready to Explore the GoFlow Tool?";
    $definition="Welcome to GoFlow: The Discovery Consultation Tool";
  include("note.php");
    $gbadMod=$_POST['gbadMod'];
   // $gbadMod2=$_POST['gbadMod2'];

    include("comment.php");     //comment display

   // $mess .="<div class=success2><b>Coach:</b> $agent_first $agent_last <br /> The Client ID for $fnameC $lnameC for telephone - $phone will be:$cust_id . Customer will need the ID for tracking purposes. Their Password is their phone number.</div><br /> ";

    if (($address1 != $blink)or ($address1 !=0)) {
     $address= "$address<br />$address1";
    }
        $jedID2cat=addslashes($_POST['jedID2cat']);

      //  $jedID2cat=4 ;




 $Rtoday = date("Y-m-d");
          if($gbad==16){
          $cat16=$_POST['consult_values'];
          $catnote16=addslashes($_POST['bottomBA']);
 $cust_id=$_POST['groupM'];
$company=$nameGG2[$groupM];
$company=addslashes($company);
          $catdo=addslashes($_POST['bottomdo']);
           $sql2 = "INSERT INTO $table_name75 (app_id, agent_id,map_id, customer_id,  create_date  ,   company, lastname,  category, comments  )VALUES ('$app_id','$agent_id', '$map_id', '$cust_id', '$Rtoday1',  '$company','$lnameC',  '$cat16', '$catnote16')";
$result2 = @mysql_query($sql2,$connection) or die(mysql_error());

      $companyPost=stripslashes($company);
  $mess .="<div class=success>The note has been posted to The Ministy ID:$cust_id, $companyPost </div> ";


          }



            if($gbad==18){
 //         $cat16=$_POST['consult_values'];
 //         $catnote16=addslashes($_POST['bottomBA']);
 //         $catdo=addslashes($_POST['bottomdo']);

           $ebad=$_POST['ebad'];

           if ($ebad ==1){
          $agdo=addslashes($_POST['ag_update']);

          $catnotedo=addslashes($_POST['Ccomments']);
          $catdo=addslashes($_POST['consult_values22']);

$sql2 = "UPDATE $table_name75  SET   category ='$catdo', comments='$catnotedo' WHERE ag_id = $agdo";
$result2 = @mysql_query($sql2,$connection) or die(mysql_error());

           }






       include("company_report.php");
//           $sql2 = "INSERT INTO $table_name75 (app_id, agent_id, customer_id, map_id, create_date  ,   company, lastname,  category, comments  )VALUES ('$app_id','$agent_id',  '$cust_id', '$map_id','$Rtoday',  '$company','$lnameC',  '$cat16', '$catnote16')";
//$result2 = @mysql_query($sql2,$connection) or die(mysql_error());


  //$mess .="<div class=success>The note has been posted to The Client ID:$cust_id , $fnameC $lnameC $cat16 file </div> ";

          }

//view calendar

            if($gbad==19){
 //         $cat16=$_POST['consult_values'];
 //         $catnote16=addslashes($_POST['bottomBA']);
 //         $catdo=addslashes($_POST['bottomdo']);

           $ebad=$_POST['ebad'];

           if ($ebad ==1){
          $agdo=$_POST['ag_update'];

          $catnotedo=addslashes($_POST['Ccomments']);
          $meetT=addslashes($_POST['meetT']);
$meetD=($_POST['meetD2']);
$meetD=date('Y-m-d', strtotime($meetD));

$sql2 = "UPDATE $table_name86b  SET  event_date ='$meetD', event_time ='$meetT', note='$catnotedo' WHERE event_id = $agdo";
$result2 = @mysql_query($sql2,$connection) or die(mysql_error());

           }






       include("company_report_date.php");
//           $sql2 = "INSERT INTO $table_name75 (app_id, agent_id, customer_id, map_id, create_date  ,   company, lastname,  category, comments  )VALUES ('$app_id','$agent_id',  '$cust_id', '$map_id','$Rtoday',  '$company','$lnameC',  '$cat16', '$catnote16')";
//$result2 = @mysql_query($sql2,$connection) or die(mysql_error());


  //$mess .="<div class=success>The note has been posted to The Client ID:$cust_id , $fnameC $lnameC $cat16 file </div> ";

          }





    
     if($gbad==24){
 


   $Rtoday = $date3;
          $gdate= isset($_REQUEST["date5"]) ? $_REQUEST["date5"] : "";  
          $gtime=addslashes($_POST['timeM']);
          $gnote=addslashes($_POST['gnote']);
          $groupM=$_POST['groupM'];
          $groupName=addslashes($nameGG2[$groupM]);
           $sql2 = "INSERT INTO $table_name86b ( agent_id, group_id, group_name, create_date  ,  event_date, event_time,  note  )VALUES ('$agent_id',  '$groupM',  '$groupName', '$Rtoday',  '$gdate','$gtime',   '$gnote')";
           
             $result331a = @mysql_query($sql2,$connection) or die(mysql_error());
           
           $mess .="<div class=success>This meeting has been posted to your account. </div> ";

}
    


   if($gbad==17){

   $Rtoday = $date3;
          $gdate=$_POST['gdate'];
          $gtime=$_POST['gtime'];
          $gnote=addslashes($_POST['gnote']);
           $sql2 = "INSERT INTO $table_name75 (app_id, agent_id, customer_id, map_id, create_date  ,   company, lastname,  category, comments  )VALUES ('$app_id','$agent_id', '$map_id', '$cust_id', '$Rtoday',  '$company','$lnameC',  '$cat16', '$catnote16')";





   $sql331a ="SELECT * FROM $table_name36 WHERE (agent_id = '$log') ";
  $result331a = @mysql_query($sql331a,$connection) or die(mysql_error());
   while ($row1d = mysql_fetch_array($result331a)) {
$to2 = $row1d['email'];
$email=$to2;
    }

 $sql331a ="SELECT * FROM $table_name49 WHERE (user_id = '$agent_id') ";
  $result331a = @mysql_query($sql331a,$connection) or die(mysql_error());
   while ($row1d = mysql_fetch_array($result331a)) {
$em551 = $row1d['email'];
    }

    include("mail_form3.php");
    $warn11 ="$warn11<br /><div class=success><i>Emails were sent to Customer: $to2  admin: $em55 agent:  $em551 </i> </div>";





          }
                        $blink2=", ";  $blink4=", , ";       $blink3=", , , ";




 	$display_block .= "<p>$warn11</p>


 

      <table border=\"0\" width=\"50%\" class=\"list\">
      <tbody>
	<tr>
    <td class=left> $noteA
    $display_block1 <br>$bottomB</td>
    <td class=left width=300 valign=\"top\"> $display_block2 </td>
	</tr>

    </tbody>

</table>

 $company_report";

 }




?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
<title>Notes  <? echo "$tok"; ?> jedID2=<? echo "$jedID2"; ?>email=<? echo "$email"; ?> t=<? echo "$t_id"; ?></title>

<STYLE type="text/css">
   H1.myclass {border-width: 1; border: solid; text-align: center}

 </STYLE>



<link rel="stylesheet" type="text/css" href="../admin/view/stylesheet/stylesheet.css" />
<script type="text/javascript" src="../admin/view/javascript/jquery/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="../admin/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="../admin/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="../admin/view/javascript/jquery/ui/external/jquery.bgiframe-2.1.2.js"></script>
<script type="text/javascript" src="../admin/view/javascript/jquery/tabs.js"></script>

<script type="text/javascript" src="../admin/view/javascript/jquery/superfish/js/superfish.js"></script>
<script type="text/javascript" src="../admin/GoTool/risk/jquery.min.js"></script>



<script type="text/javascript"><!--
function updatesum() {
document.form.sum.value = (document.form.sum1.value -0) + (document.form.sum2.value -0) + (document.form.sum3.value -0) + (document.form.sum4.value -0); }
//--></script>

<SCRIPT LANGUAGE="JavaScript" SRC="GoTool/risk/AnimatedFader.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">

//Script submitted to and featured on
//http://www.dynamicdrive.com

/*
 * FadingText(divName, numSteps, BGColor)
 * divName : Must match the DIV names defined at the end of the BODY)
 * numSteps: The number of steps in the fading transition
 * BGColor : The background colour of the DIV or document.
 */
	FadingText('fade1', 10,"FFFFFF");

/*** The "Frame Interval" Smaller = faster ***/
	FadeInterval=30;

</SCRIPT>

<script language="javascript" src="calendar/calendar/calendar.js"></script>
<link href="calendar/calendar/calendar.css" rel="stylesheet" type="text/css">


<script>
$(document).ready(function() {

	//select all the a tag with name equal to modal
	$('a[name=modal]').click(function(e) {
		//Cancel the link behavior
		e.preventDefault();

		//Get the A tag
		var id = $(this).attr('href');

		//Get the screen height and width
		var maskHeight = $(document).height();
		var maskWidth = $(window).width();

		//Set heigth and width to mask to fill up the whole screen
		$('#mask').css({'width':maskWidth,'height':maskHeight});

		//transition effect
		$('#mask').fadeIn(1000);
		$('#mask').fadeTo("slow",0.8);

		//Get the window height and width
		var winH = $(window).height();
		var winW = $(window).width();

		//Set the popup window to center
		$(id).css('top',  winH/2-$(id).height()/2);
		$(id).css('left', winW/2-$(id).width()/2);

		//transition effect
		$(id).fadeIn(2000);

	});

	//if close button is clicked
	$('.window .close').click(function (e) {
		//Cancel the link behavior
		e.preventDefault();

		$('#mask').hide();
		$('.window').hide();
	});

	//if mask is clicked
	$('#mask').click(function () {
		$(this).hide();
		$('.window').hide();
	});


	$(window).resize(function () {

 		var box = $('#boxes .window');

        //Get the screen height and width
        var maskHeight = $(document).height();
        var maskWidth = $(window).width();

        //Set height and width to mask to fill up the whole screen
        $('#mask').css({'width':maskWidth,'height':maskHeight});

        //Get the window height and width
        var winH = $(window).height();
        var winW = $(window).width();

        //Set the popup window to center
        box.css('top',  winH/2 - box.height()/2);
        box.css('left', winW/2 - box.width()/2);

	});

});

</script>

<script type="text/javascript" src="GoTool/risk/jquery.min.js"></script>
<script src="GoTool/risk/formwizard2.js" type="text/javascript">

/***********************************************         1.4.2 version of jQuery above
* jQuery Form to Form Wizard-
* This notice MUST stay intact for legal use
*
***********************************************/

</script>

<script type="text/javascript">

var myform=new formtowizard({
	formid: 'feedbackform',
	persistsection: true,
	revealfx: ['slide', 500]
})

var myform2=new formtowizard({
	formid: 'feedbackform2',
	persistsection: true,
	revealfx: ['fade', 1000],
	validate: ['order_username', 'order_sex', 'order_addr1', 'order_shippingmethod', 'order_feedback']
})


var myform3=new formtowizard({
 formid: 'staff_feedbackform',
 validate: ['staff_username', 'staff_sex', 'staff_addr1'],
 revealfx: ['slide', 500] //<--no comma after last setting
})


</script>

<style>



#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:none;
}

#boxes .window {
  position:fixed;
  left:0;
  top:0;
  width:440px;
  height:400px;
  display:none;
  z-index:9999;
  padding:20px;
}

#boxes #dialog {
  width:375px;
  height:403px;
  padding:10px;
  background-color:#ffffff;
}

#boxes #dialog1 {
  width:375px;
  height:403px;
}

#dialog1 .d-header {
  background:url(../admin/GoTool/risk/images/login-header2.png) no-repeat 0 0 transparent;
  width:375px;
  height:200px;
}

#dialog1 .d-header1 {
  background:url(../admin/GoTool/risk/images/login-middle.png) repeat 0 0 transparent;
  width:375px;

}

#dialog1 .d-header input {
  position:relative;
  top:60px;
  left:100px;
  border:3px solid #cccccc;
  height:22px;
  width:200px;
  font-size:15px;
  padding:5px;
  margin-top:4px;
}

#dialog1 .d-blank {
  float:left;
  background:url(../admin/GoTool/risk/images/login-blank.png) no-repeat 0 0 transparent;
  width:267px;
  height:53px;
}

#dialog1 .d-login {
  float:left;
  width:108px;
  height:400px;
}

#boxes #dialog2 {
  background:url(../admin/GoTool/risk/images/notice1.png) repeat 0 0 transparent;
  width:326px;
  height:400px;
  padding:10px 0 20px 5px;
}


#boxes #dialog3 {
  background:url(../admin/GoTool/risk/images/notice1.png) repeat 0 0 transparent;
  width:326px;
  height:400px;
  padding:5px 0 20px 5px;
}

#boxes #dialog9 {
  background:url(../admin/GoTool/risk/images/notice1.png) repeat 0 0 transparent;
  width:326px;
  height500px;
  padding:10px 0 20px 5px;
}

#boxes #dialog4 {
  background:url(../admin/GoTool/risk/images/notice1.png) repeat 0 0 transparent;
  width:326px;
  height:400px;
  padding:50px 0 20px 25px;
}

#boxes #dialog4a {
  background:url(../admin/GoTool/risk/images/notice1.png) repeat 0 0 transparent;
  width:326px;
  height:400px;
  padding:50px 0 20px 25px;
}

#boxes #dialog5 {
  background:url(../admin/GoTool/risk/images/notice1.png) repeat 0 0 transparent;
  width:326px;
  height:400px;
  padding:50px 0 20px 25px;
}

#boxes #dialog6 {
  background:url(../admin/GoTool/risk/images/notice1.png) repeat 0 0 transparent;
  width:326px;
  height:400px;
  padding:50px 0 20px 25px;
}

fieldset.sectionwrap{ /*fieldset that wraps around each form "page" */
border-width:0;
margin-top: 0;
	margin-bottom: 0;

padding:2px;
}

legend{ /*title shown at top of each form page */
font:bold 16px Arial;
color: darkred;
}

div.stepsguide{ /*div that contains all the "steps" text located at top of form */
width: 320px; /*width of "steps" container*/
overflow:hidden;
margin-bottom:15px;
cursor:pointer;
}

div.stepsguide .step{ /*div that wraps around each "steps" text */
width:290px; /*width of each "steps" text*/
font: bold 18px Arial;
float:left;
}

div.stepsguide .disabledstep{ /*div that wraps around each "steps" text */
color:#C4C4C4;
}

div.stepsguide .step .smalltext{ /*small footer text inside "steps" text */
font-size: 10px;
font-weight: normal;
}

div.formpaginate{ /* CSS for pagination DIV container */
width: 300px;
overflow:hidden;
font-weight:bold;
text-align:center;
margin-top:1em;
}

div.formpaginate .prev, div.formpaginate .next{ /*CSS for "prev" and "next" SPAN elements within paginate container */
border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
padding:2px 5px;
background:darkred;
color:white;
cursor:hand;
cursor:pointer;
}


#feedbackform2 legend{ /*title shown at top of each form page */
color: navy;
}

#feedbackform2 div.field{
margin-bottom:7px;
}


#feedbackform2 div.formpaginate .prev, #feedbackform2 div.formpaginate .next{
background:navy;
}


</style>

<? echo "$special_code"; ?>




</head>
<body>

<div id="content">

          <? echo "$mess"; ?>    <br />    <br />
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/report.png" alt="" /> <? echo "$display_title"; ?> </h1>
    </div>
    <div class="content">
      <table class="form">
        <tr>

<? echo "$display_block"; ?>   <br />


      </table>
      <div class="pagination"></div>
    </div>
  </div>
</div>


</div>
 <? echo "$string"; ?>
  <? echo "$display_blockFF"; ?>

    <div style="font-size:10px;color:#ccc">Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License.</div>

<div id="boxes">

<div id="dialog" class="window">
Note Window |
<FORM METHOD=POST
   ACTION="notes222.php?token=$tok&log=$logged"
   onSubmit="popupform(this, 'join')">
Name: <INPUT NAME="realname"><BR>
Email: <INPUT NAME="email"><BR>
Value: <INPUT NAME="val2"><BR>
<INPUT TYPE=SUBMIT VALUE="show me">
</FORM>
<a href="#"class="close"/>Close it</a>
</div>

<!-- Start of Login Dialog -->
<div id="dialog1" class="window">
  <div class="d-header">
  <input type="button" value="Close it" class="close"/>
    <input type="text" value="username" onclick="this.value=''"/><br/>
  </div>
  <div class="d-header1">
    <input type="text" value="username" onclick="this.value=''"/><br/>
    <input type="password" value="Password" onclick="this.value=''"/>
  </div>
  <div class="d-blank"></div>
  <div class="d-login"><input type="image" alt="Login" title="Login" src="images/login-button.png"/></div>
</div>
<!-- End of Login Dialog -->



<!-- Start of Sticky Note -->
<div id="dialog2" class="window">
<? echo "$bottomNote"; ?>
</FORM>


<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->



<!-- Mask to cover the whole screen -->
  <div id="mask"></div>
</div>

 </body></html>


</div>
 <? echo "$string"; ?>
  <? echo "$display_blockFF"; ?>

    <div style="font-size:10px;color:#ccc"></div>

<div id="boxes">

<div id="dialog" class="window">
Note Window |
<FORM METHOD=POST
   ACTION="notes222.php?token=$tok&log=$logged"
   onSubmit="popupform(this, 'join')">
Name: <INPUT NAME="realname"><BR>
Email: <INPUT NAME="email"><BR>
Value: <INPUT NAME="val2"><BR>
<INPUT TYPE=SUBMIT VALUE="show me">
</FORM>
<a href="#"class="close"/>Close it</a>
</div>

<!-- Start of Login Dialog -->
<div id="dialog1" class="window">
  <div class="d-header">
  <input type="button" value="Close it" class="close"/>
    <input type="text" value="username" onclick="this.value=''"/><br/>
  </div>
  <div class="d-header1">
    <input type="text" value="username" onclick="this.value=''"/><br/>
    <input type="password" value="Password" onclick="this.value=''"/>
  </div>
  <div class="d-blank"></div>
  <div class="d-login"><input type="image" alt="Login" title="Login" src="images/login-button.png"/></div>
</div>
<!-- End of Login Dialog -->



<!-- Start of Sticky Note -->
<div id="dialog2" class="window">
<? echo "$bottomNote"; ?>
<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->


<!-- Start of Sticky Note -->
<div id="dialog9" class="window">
<FORM  name="formcheck3"  METHOD="POST" ACTION=<? echo "$prog?token=$tok&log=$logged"; ?> onSubmit="popupform(this, 'join')">
 Select the Date of the Meeting <br/><br/>      
<?
$myCalendar = new tc_calendar("date5", true, false);
$myCalendar->setIcon("calendar/calendar/images/iconCalendar.gif");
$myCalendar->setPath("calendar/calendar/");
$myCalendar->setYearInterval(2011, 2030);
//$myCalendar->dateAllow('2011-05-13', '2010-03-01');
$myCalendar->setDateFormat('j F Y');
$myCalendar->writeScript();
?>
<br/><br>
            
<? echo "$bottomNote1"; ?>

<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->

<!-- Start of Sticky Note -->
<div id="dialog3" class="window">
<? echo "$bottomReport"; ?>
<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->

<!-- Start of Sticky Note -->
<div id="dialog4" class="window">
<? echo "$bottomDelete"; ?>
<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->


<!-- Start of Sticky Note -->
<div id="dialog4a" class="window">
<? echo "$calend"; ?>
<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->

<!-- Start of Sticky Note -->
<div id="dialog5" class="window">
<? echo "$bottomCriteria"; ?>
<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->

<!-- Start of Sticky Note -->
<div id="dialog6" class="window">
<? echo "$bottomDate"; ?>
<input type="button" value="Close it" class="close"/>
</div>
<!-- End of Sticky Note -->

<!-- Mask to cover the whole screen -->
  <div id="mask"></div>
</div>

 </body></html>

