function openSO() {

      W = screen.availWidth;
      H = screen.availHeight;

      if (W >= 1024) {
         W = 1024;
      }//end if

      if (H >= 740) {
         H = 740;
      }//end if

      if (screen.availWidth > 1024) {
         X = Math.ceil((screen.Width-W)/2);
         Y = (Math.ceil((screen.Height-H)/2) - 10);
      } else {
         X = 0;
         Y = 0;
      }//end if

      strOpen = "http://ibt.afrihost.com/__interphazeext/main.php?rs=ws&userid=&passwd=";
      strTitle = "InterPhazeExt4611eb2b3626663a596a40f5700bad50";
      strOptions = "fullscreen=0, scrollbars=0"
      var CWIN = window.open("about:blank", strTitle, strOptions)
      CWIN.resizeTo(W,H)
      CWIN.moveTo(X,Y)
      CWIN.focus();
      CWIN.location = strOpen;
}//end function

function openSMS() {
      W = screen.availWidth;
      H = screen.availHeight;

      if (W >= 1024) {
         W = 1024;
      }//end if

      if (H >= 740) {
         H = 740;
      }//end if

      if (screen.availWidth > 1024) {
         X = Math.ceil((screen.Width-W)/2);
         Y = (Math.ceil((screen.Height-H)/2) - 10);
      } else {
         X = 0;
         Y = 0;
      }//end if

      strOpen = "http://afrisms.smsactive.co.za/main.php?rs=ah&userid=&passwd=";
      strTitle = "iSMS4611eb2b3626663a596a40f5700bad50";
      strOptions = "fullscreen=0, scrollbars=0"
      var IWIN = window.open("about:blank", strTitle, strOptions)
      IWIN.resizeTo(W,H)
      IWIN.moveTo(X,Y)
      IWIN.focus();
      IWIN.location = strOpen;

}//end function

//*****************************************************************************
// SMS Active - Window open functions
//*****************************************************************************

   function openIT() {

         W = screen.availWidth;
         H = screen.availHeight;

         if (W > 1024) {
            W = 1024
         }//end if

         if (H > 768) {
            H = 718;
         } else {
            H = 688;
         }//end if

         if (screen.availWidth > 1024) {
            X = Math.ceil((screen.Width-W)/2);
            Y = (Math.ceil((screen.Height-H)/2) - 10);
         } else {
            X = 0;
            Y = 0;
         }

		 strOpen = "http://sms.afridesign.com/main.php?rs=ad";
         strTitle = "AfriSMS" + Math.floor(Math.random * 1000);
         strOptions = "status=0, fullscreen=0, scrollbars=0, left=" + X + ", top=" + Y + ", width=" + W + "px, height=" + H + "px";
         var CWIN = window.open(strOpen, strTitle, strOptions)

   }//end function
   //-------------------------------------------------------------------------//

   function smsRegister() {

         W = 630;
         H = 440;

         if (screen.availWidth > 1024) {
            X = Math.ceil((screen.Width-W)/2);
            Y = (Math.ceil((screen.Height-H)/2) - 10);
         } else {
            X = 0;
            Y = 0;
         }

		 strOpen = "http://regsms.afridesign.com";
         strTitle = "AfriSMSReg" + Math.floor(Math.random * 1000);
         strOptions = "fullscreen=0, scrollbars=1, left=" + X + ", top=" + Y + ", width=" + W + "px, height=" + H + "px";

         var IWIN = window.open(strOpen, strTitle, strOptions)

   }//end function
   //-------------------------------------------------------------------------//
