// JavaScript Document
var bodyData = "";
var headerData = "";
var leftcolData = "";
function getBanner()
{
	
	var result = Math.round( Math.random() * 10 );
	var strapData = "<img src=\"../images/" + result + "w.jpg\" alt=\"\" width=\"774\" height=\"144\" /> ";
	document.getElementById( "strap" ).innerHTML = strapData;
}

function homeData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li id=\"current\"><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;


	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>What we provide</h1>";
	bodyData += "<p>PointAdmin is devoted to providing the highest level of  website and application design that will enable your organization to step above  the competition.  We utilize the latest  tools and help our customers in making an informed, wise and scalable application  decision in selecting the best technologies to fill their needs.</p>";
	bodyData += "<p class=\"style1\">No one knows your business better then you; no one knows our  business better than us!</p><br>";
	bodyData += "<h2>Relax!</h2>";
	bodyData += "<p><img src=\"images/1.jpg\" alt=\"\" width=\"375\" height=\"204\" class=\"left\" />Our main goal is to make your website or application as easy  and carefree for you to administer as possible from anywhere. Security and  customer commitments drive our business model and are taken very serious.</p>";
	bodyData += "<p>Let  us help you get to where you need to go, quickly and more efficiently. This  will give you more time to enjoy the better things in life.  When your out of the office, you can feel  confident that your site is still working hard for you.</p>";
	bodyData += "<p>All websites and applications that are developed for you remain  solely your personal property to do as you please. We do not utilize templates but  make each site unique as per your requiems.</p>";
	document.getElementById( "content" ).innerHTML = bodyData;
}

function consultData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li id=\"current\"><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;

	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>Consultation</h1>";
	bodyData += "<p>We can get you started, help you out of a tight spot, complete your project or simply maintain all elements of your project, from the User Interface (UI) to the Business Intelligents (BI) and the back-end database’s.  Our expertise lies in Java, JavaScript, Macromedia Flash, XML, HTML, DHTML, J2EE Applications Servers, Apache and all flavors of databases.</p>";
	bodyData += "<p class=\"style1\">We can even perform an in-depth analysis of an existing application and suggest areas for increased performance and better flow.</p>";
	bodyData += "<h2>Security</h2>";
	bodyData += "<p><img src=\"images/2.jpg\" alt=\"\" width=\"375\" height=\"204\" class=\"left\" />Security assessments are also covered in our services.  We strive to make sure your applications and web presents’ are kept secure for you and your customers.  We validate code to latest of published industry standards and ensure the latest browser enhancements work as you define and also with <i>n-3</i> versions as well.  With most of our completions looking up to 6 months behind the new releases and only supporting <i>n-2</i> browsers, it is clear where our dedication is made.  </p>";
	bodyData += "<p>For existing and past customers, an update service to also available. This service will help you make sure that once the project is finished and the industry standards evolve or mature, your code will move right along side of it and not cause any downtime or inconvenience to you or your customers.</p>";
	bodyData += "<p>All code is garneted to run on non-proprietary systems.  In other words, write it once, run it on other like platforms as your wish.  Moving your code from one web server like windows (IIE) to Linux (Apache) is no problem.</p>";
	document.getElementById( "content" ).innerHTML = bodyData;
}

function stdData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li id=\"current\"><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;


	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>W3C - World Wide Web Consortium</h1>";
	bodyData += "<p> The Web Security Context Working Group has published the Last Call Working Draft of Web Security Context: User Interface Guidelines. This specification deals with the trust decisions that users must make online, and with ways to support them in making safe and informed decisions where possible. In order to achieve that goal, this specification includes recommendations on the presentation of identity information by Web user agents. It also includes recommendations on handling errors in security protocols. The error handling recommendations both minimize the trust decisions left to users, and represent known best practice in inducing users toward safe behavior where they have to make these decisions.</p>";
	bodyData += "<p class=\"style1\">We can even perform an in-depth analysis of an existing application and suggest areas for increased performance and better flow.</p>";
	bodyData += "<h2>Security</h2>";
	bodyData += "<p><img src=\"images/3.jpg\" alt=\"\" width=\"375\" height=\"204\" class=\"left\" />Security assessments are also covered in our services.  We strive to make sure your applications and web presents’ are kept secure for you and your customers.  We validate code to latest of published industry standards and ensure the latest browser enhancements work as you define and also with <i>n-3</i> versions as well.  With most of our completions looking up to 6 months behind the new releases and only supporting <i>n-2</i> browsers, it is clear where our dedication is made.  </p>";
	bodyData += "<p>For existing and past customers, an update service to also available. This service will help you make sure that once the project is finished and the industry standards evolve or mature, your code will move right along side of it and not cause any downtime or inconvenience to you or your customers.</p>";
	bodyData += "<p>All code is garneted to run on non-proprietary systems.  In other words, write it once, run it on other like platforms as your wish.  Moving your code from one web server like windows (IIE) to Linux (Apache) is no problem.</p>";
	document.getElementById( "content" ).innerHTML = bodyData;
}

function contactData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li id=\"current\"><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\" class=\"here\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;


	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>Contact Us</h1>";
	bodyData += "For additional informarion, please fill out the request below:<br>";
	bodyData += "<p><form id=\"form1\" name=\"form1\" method=\"post\" action=\"../cgi-bin/mail.pl\" method=post id=\"emailAddress\">";
	bodyData += "<table><tr><td>&nbsp;First Name:</td><td><input type=\"text\" name=\"fName\" id=\"fName\" onkeypress=\"return checkChar(event);\" /></td></tr>";
	bodyData += "<tr><td>&nbsp;Last Name:</td><td><input type=\"text\" name=\"lName\" id=\"lName\" onkeypress=\"return checkChar(event);\" /></td></tr>";
	bodyData += "<tr><td>&nbsp;Email Address:</td><td><input type=\"text\" name=\"eMail\" id=\"eMail\" onkeypress=\"return checkChar(event);\" /></td></tr>";
	bodyData += "<tr><td colspan=\"2\"><textarea cols=\"29\" rows=\"5\" name=\"textBox\" id=\"textBox\" onkeypress=\"return checkChar(event);\"></textarea></td></tr>";
	bodyData += "</table>";
	bodyData += "<input align=\"middle\" type=\"submit\" name=\"submit\" id=\"submit\" value=\"Submit\" />";
	bodyData += "</form>";
	bodyData += "<h2>Voice 425-830-9101<br>Fax 360-830-1337</h2>";
	bodyData += "<p>Office hours:  8AM - 5PM PSD (Pacific Time Zone)</p>";
	bodyData += "Emergency: Text Message to 4258309101 durring off hours";

	bodyData += "<p><img src=\"images/contacts.gif\" alt=\"\" width=\"375\" height=\"204\" class=\"left\" /></p>";
	document.getElementById( "content" ).innerHTML = bodyData;
}

function devData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;


	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>Development</h1>";
	bodyData += "<p> At PointAdmin we utilize a broad range of development tools, languages and the most cost effective utilities which keep the application footprint small and overhead low to help you get to where you need to go.</p>";
	bodyData += "<p><img src=\"images/programming8.jpg\" alt=\"\" width=\"337\" height=\"505\" class=\"right\" /></p>";
	bodyData += "<h2>Technologies</h2>";
	bodyData += "<p>";
	bodyData += "<li>Java</li>";
	bodyData += "<li>JavaScript</li>";
	bodyData += "<li>PHP</li>";
	bodyData += "<li>CGI</li>";
	bodyData += "<li>XHTML</li>";
	bodyData += "<li>Perl</li>";
	bodyData += "<li>DHTML</li>";
	bodyData += "<li>XML</li>";
	bodyData += "<li>FLASH</li>";
	bodyData += "<li>ActionScript</li>";
	bodyData += "<li>mySQL DB</li>";
	bodyData += "<li>Oracle DB</li>";
	bodyData += "<li>UNIX Shell</li>";
	bodyData += "<li>Apache</li>";
	bodyData += "<li>AJAX</li>";
	bodyData += "<li>DOM</li>";
	bodyData += "<li>SQL</li>";
	bodyData += "<li>HTTP Server</li>";
	bodyData += "<li>J2EE</li>";
	bodyData += "<li>Application Server</li>";
	bodyData += "<li>Linux RHCE</li>";
	bodyData += "<li>Open Source</li>";
	bodyData += "<li>LAMP</li>";
	bodyData += "<li>WebSphere AS / PS</li>";
	bodyData += "</p>";
	document.getElementById( "content" ).innerHTML = bodyData;
}

function empData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;


	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>Employment Opportunities</h1>";
	bodyData += "<p> PointAdmin is an equal opportunity employer.</p>";
	bodyData += "<p><img src=\"images/employment.jpg\" alt=\"\" width=\"337\" height=\"506\" class=\"right\" /></p>";
	bodyData += "<h2><li>Clerical</li></h2>";
	bodyData += "<p>No openings at this time.</p>";
	bodyData += "<p></p>";
	bodyData += "<h2><li>Administrative</li></h2>";
	bodyData += "<p>No openings at this time.</p>";
	bodyData += "<p></p>";
	bodyData += "<h2><li>Development</li></h2>";
	bodyData += "<p>No openings at this time.</p>";
	bodyData += "<p></p>";
	bodyData += "<h2><li>Customer Relations</li></h2>";
	bodyData += "<p>No openings at this time.</p>";
	bodyData += "<p>";
	bodyData += "<p>Submit your Résumé.  All candidates will remain actively on file for a period no less than 6 months.</p>";
	bodyData += "<p></p>";
	bodyData += "<p>To browse related career interests, check out <a href=\"http://www.dice.com\"><img src=\"../images/DiceLogo.gif\" height=\"40px\" longdesc=\"http://www.dice.com\"></a></p>";
	bodyData += "</p>";

	document.getElementById( "content" ).innerHTML = bodyData;
}
//  Hosting Data ///////////////////////////////////////////////////////////////////////////////////////////////////////////////

function hostData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;


	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>Application Hosting</h1>";
	bodyData += "<p>Not only does PointAdmin provide cutting edge website development, we also support multiple technologies for your sites hosting.  For static to full, database driven, dynamic sites - they are no problem. </p>";
	bodyData += "<p><img src=\"images/employment.jpg\" alt=\"\" width=\"337\" height=\"506\" class=\"right\" /></p>";
	bodyData += "<h2><li>Hardware</li></h2>";
	bodyData += "<p>We run on clustered Linux servers with backup power equipment for optimal performance and reliability.  These clusters are fully hardened and can incorporate the use of e-mail, pop3 service and streaming technologies.  Detailed hardware configurations, architecture and other design documents are available upon request.</p>";
	bodyData += "<p></p>";
	bodyData += "<h2><li>Price's</li></h2>";
	bodyData += "<p>Static sites run $20/month</p>";
	bodyData += "<p>Dynamic site that require a database or XML backend run $25/month plus $5/month for each 10M requirement of backend storage space.</p>";
	bodyData += "<p>Flash/JavaScript sites run $20/month unless backend space is required</p>";
	bodyData += "<p></p>";
	bodyData += "<p>All costs are in US dollars</p>";
	bodyData += "<p>Domain name registration and DNS service is $50/year</p>";
	bodyData += "<p></p>";

	document.getElementById( "content" ).innerHTML = bodyData;
}

// News Data //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function newsData()
{
	document.getElementById( "header" ).innerHTML = "";
	headerData = "";
	headerData += "<ul>"
	headerData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>"
	headerData += "<li><a href=\"javascript:stdData()\">Standards</a></li>"
	headerData += "<li><a href=\"javascript:consultData()\">Consultaion</a></li>"
	headerData += "<li><a href=\"javascript:homeData()\">Home</a></li>"
	headerData += "</ul>"
	document.getElementById( "header" ).innerHTML = headerData;

	document.getElementById( "leftcol" ).innerHTML = "";
	leftcolData = "";
	leftcolData += "<ul>";
	leftcolData += "<li><a href=\"javascript:devData()\">Development</a></li>";
	leftcolData += "<li><a href=\"javascript:hostData()\">Hosting</a></li>";
	
	leftcolData += "<li><a href=\"javascript:docData()\">Documents</a></li>";
	leftcolData += "<li><a href=\"javascript:empData()\">Employment</a></li>";
	leftcolData += "<li><a href=\"javascript:contactData()\">Contacts</a></li>";
	leftcolData += "<li><a href=\"javascript:newsData()\">Industry News</a></li>";
	leftcolData += "</ul>";
	document.getElementById( "leftcol" ).innerHTML = leftcolData;


	document.getElementById( "content" ).innerHTML = "";
	bodyData = "";
	bodyData += "<h1>Industry News</h1>";
	new rssticker_ajax("W3C", 600, "rss0", "defaltclass", 6000, "description");
	new rssticker_ajax("DW", 600, "rss1", "defaltclass", 6000, "description");
	new rssticker_ajax("Flash", 600, "rss2", "defaltclass", 6000, "description");
	new rssticker_ajax("SUNAJAX", 600, "rss3", "defaltclass", 6000, "description");
	new rssticker_ajax("OS", 600, "rss4", "defaltclass", 6000, "description");
	new rssticker_ajax("Linux", 600, "rss5", "defaltclass", 6000, "description");

alert( bodyData );
	document.getElementById( "content" ).innerHTML = bodyData;
}

//  Functions  - Validation  ///////////////////////////////////

function checkChar(e)  //charactors only on typing
{
	var key = window.event ? e.keyCode : e.which;
	var keychar = String.fromCharCode(key);
	reg = /([A-Za-z0-9@.!' ]+)/;
	return reg.test(keychar);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
