//java document

/*
   Function List:
   contact
      Used to create a href mailto:  to prevent spammers.

*/


/*

   Function List:
   stringReverse
      Used to reverse the order of characters in a text string

*/


function stringReverse(textString) {
   if (!textString) return '';
   var revString='';
   for (i = textString.length-1; i>=0; i--)
       revString+=textString.charAt(i)
   return revString;
}



  function contact()
  {
    var to = 'mai' + 'lto:';
    var addr = 'i' + 'nf' + 'o@de' + 'sig' + 'nsi' + 'nston' + 'eonl' + 'ine.c' + 'om';

    document.write('<a href="' + to +  addr +'" id="contact">'+ 'info@designsinstoneonline.com' + '</a>');
  }
  
  
  
  
      function showEM(userName, emServer)

      {

	/*The showEM() function displays a link to the user's e-mail address.  

          The text of the user and e-mail server names are entered in 

          reverse order to thwart e-mail harvesters.

        */



	userName = stringReverse(userName);  // reverse the text of the userName parameter.

        emServer = stringReverse(emServer);  // reverse the text of the emServer parameter.



        var emLink = userName + "@" + emServer; // combine the text of userName and emServer

        document.write("<a href='mailto:" + emLink + "'>");

        document.write(emLink);

	document.write("</a>");

       }
/*

function checkEntries()
{ 
 var hadError = false;

 
if (contactform.name.value == "") 
{
alert("Name is a required field." );
hadError =true;
}

 
if (contactform.phone.value == "")
{
alert("Phone Number is a required field.");
hadError =true;
}

if (contactform.email.value == "")
{
alert("Email address is a required field.");
hadError =true; 
}
 
 return !hadError;

 

}
*/