var commentsArray = new Array();
var currentCommentNum = 0;
var comment1 = "<TABLE height=\"100\">" +
               "<TR><TD valign=\"top\" align=\"left\" bgcolor=\"#ffffff\">" +
               "<font class=\"clsContentText\">" +
               "\"AWATA Software Systems is fast, accurate and keeps working with its customer until the customer is" +
               "satisfied with the website\"."	+
               "<BR>"	+
               "<B>&nbsp;-&nbsp;Carl E. Person</B><BR>"+
               "<I>&nbsp;&nbsp;Attorney at Law, New York<BR>" +
               "&nbsp;&nbsp;<A href=\"http://www.lawmall.com\">(www.lawmall.com)</A>" +
               "</I>" +
               "</font>" +
               "</TD></TR></TABLE>";
               
var comment2 = "<TABLE height=\"100\">" +
               "<TR><TD valign=\"top\" align=\"left\" bgcolor=\"#ffffff\">" +
               "<font class=\"clsContentText\">"    +
               "\"AWATA Software Systems have been an absolute joy to work with.  They are easy to"+
               "communicate with. They turned my ideas into a real working application quickly.  The"+
               "turn around time for many revisions and changes was not days or weeks but hours.  I"+
               "will definitely continue to use this team\"."	 +
               "<BR>" +
               "<B>&nbsp;-&nbsp;Michael Kaiser RN</B><BR>" +
               "<I>&nbsp;&nbsp;President / CEO,<BR>"+
               "&nbsp;&nbsp;Peoples'Care, Inc., CA<BR>"	 +
               "&nbsp;&nbsp;<A href=\"http://www.bhims.com\">(www.bhims.com)</A>" +
               "</I>" +
               "</font>" +
               "</TD></TR></TABLE>";
               
var comment3 = "<TABLE height=\"100\"><TR><TD valign=\"top\" align=\"left\" bgcolor=\"#ffffff\">" +
               "<font class=\"clsContentText\">"     +
               "\"Really good. You exceeded my expectations and you have great communication"  +
               "consulting skills outside of your development skills\"."  +
               "<BR>"	  +
               "<B>&nbsp;-&nbsp;Joseph Kent</B><BR>"   +
               "<I>&nbsp;&nbsp; Entreprenuer, Real World Learning<BR>"  +
               "</I>"  +
               "</font>"     +
               "</TD></TR></TABLE>";

var comment4 = "<TABLE height=\"100\"><TR><TD valign=\"top\" align=\"left\" bgcolor=\"#ffffff\">" +
               "<font class=\"clsContentText\">"   +
               "\"Expect good communication, quick service, guaranteed attention to details and value for money." +
               "Outsource your work here.\"."	 +
               "<BR>"  +
               "<B>&nbsp;-&nbsp;Craig Figtree</B><BR>"	 +
               "<I>&nbsp;&nbsp;<A href=\"http://www.tour.com.au\">(www.tour.com.au)<BR>"  +
               "</I>"   +
               "</font>"  +
               "</TD></TR></TABLE>";
commentsArray[0] = comment1;
commentsArray[1] = comment2;
commentsArray[2] = comment3;
commentsArray[3] = comment4;

function showClientComments(Num) {
     var showComment = "";
     var totComments = commentsArray.length;
     try {
         Num = parseInt(Num);
     } catch(e) {}
     try {
         currentCommentNum = currentCommentNum + Num;
     } catch(e) {}
     
     if(currentCommentNum >= totComments) {
         currentCommentNum = 0;
     } else if(currentCommentNum < 0) {
         currentCommentNum = totComments-1;
     }
     showComment = commentsArray[currentCommentNum]
     document.getElementById("Clients").innerHTML = showComment;
}
function hostPlan() {
  var a = document.getElementById("myHost").style.display;
    if (a == 'block') {
      document.getElementById("myHost").style.display = 'none';
      document.getElementById("arrowImg").src = 'images/arrow-d.gif';
    } else {
	document.getElementById("myHost").style.display = 'block';
	document.getElementById("arrowImg").src = 'images/arrow-up.gif';
           }

}
function newsDisplay() {
  var a = document.getElementById("divborder").style.display;
    if (a == 'block')  {
      document.getElementById("divborder").style.display = 'none';
      document.getElementById("arrowImg1").src = 'images/arrow-d.gif';
    } else {
        document.getElementById("divborder").style.display = 'block';
        document.getElementById("arrowImg1").src = 'images/arrow-up.gif';
        }

}   
function showDemos() {
  var a = document.getElementById("divDemos").style.display;
    if (a == 'block')  {
      document.getElementById("divDemos").style.display = 'none';
      document.getElementById("arrowImg1").src = 'images/arrow-d.gif';
    } else {
        document.getElementById("divDemos").style.display = 'block';
        document.getElementById("arrowImg1").src = 'images/arrow-up.gif';
        }

} 
function sendSMS() {
     var dest = "";
     var textMsg = "";
     try {
         dest = document.formMsg.dest.value;       
     } catch(e) {}
     try {
         textMsg = document.formMsg.txt.value;       
     } catch(e) {}
     
     url = "sendSMS.php";
     qstr = "dest="+dest+"&textMsg="+textMsg;
     try {
         xmlDoc = getXMLDoc(url,qstr);
     } catch (e) {}
      
     try {
          msg = xmlDoc.getElementsByTagName("msg")[0].firstChild.nodeValue;
     } catch (e) {}
     document.getElementById("myMsg").innerHTML = msg;
}