function ucountr () { document.write(Math.round(Math.random()*100000)); }

function fromwhere() {
document.write('<b>' + document.referrer + '</b>');
}

function kemail(who, fname, doma, domb, subj){ 
    if (subj) {
    document.write('<a href="javascript:kmailme(\''+who+'\', \''+fname+'\', \''+doma+'\', \''+domb+'\', \''+subj+'\')">'+who+'@'+domb+'.'+doma+'</a>');
    }
    else {
    document.writeln('<a href="javascript:kmailme(\''+who+'\', \''+fname+'\', \''+doma+'\', \''+domb+'\')">'+who+'@'+domb+'.'+doma+'</a>');
    }
}

function kmailme(who, fname, doma, domb, subj) {
var mail;
    mail='mailto:'+fname+' <'+who+'@'+domb+'.'+doma+'>'; 
    if (subj) { mail=mail+'?subject='+subj; }
    window.location=mail;
}

function openwin(theURL,winName) { //v2.0
  window.open(theURL,winName,"");
  return false;
}

function upBox(whic) {
if (whic == "posh") {
document.getElementById("txtBox").innerHTML = "<p>&nbsp;</p><p class=\"punch\">PowerShell</p> \
<p class=\"shiftUp\"> Windows PowerShell is a command line shell and scripting language for Windows that supersedes the CMD.exe shell and batch language.  It can simplify any number of administrative tasks from AD management to SQL backups, log-shipping and Server inventory management.</p>"; }
if (whic == "vb") {
document.getElementById("txtBox").innerHTML = "<p>&nbsp;</p><p class=\"punch\">VB &amp; VB.NET</p> \
<p class=\"shiftUp\">It&rsquo;s not taught in basic DBA courses but the ability to write a program can be a real advantage and time saver for a DBA.  Over the years I've written programs in PowerShell, perl, VB6 and VB.NET that interact with databases in various ways.</p>"; }
else if (whic == "sql") {
document.getElementById("txtBox").innerHTML = "<p>&nbsp;</p><p class=\"punch\">SQL DBA</p> \
<p class=\"shiftUp\">Production - Initial installation, secutiry concerns, index analysis, backup strategy, disaster recovery or giving your on-call DBA a break.</p> \
<p class=\"shiftUp\">Development - simple or complex selects, triggers, stored procedures, views or optimizing a slow running stored procedure.</p> \
<p class=\"shiftUp\">Whatever your SQL Server needs with 16 years of DBA experience I can help.</p> \
<table class=\"shiftUp\"><tr><th>Key Skill</th><th>Experience</th></tr> <tr><td>SQL DBA</td><td>16 years</td></tr> \
<tr><td>Performance Tuning</td><td>16 years</td></tr> <tr><td>Stored Procedures</td><td>16 years</td></tr> \
<tr><td>Triggers</td><td>16 years</td></tr> <tr><td>T-SQL</td><td>16 years</td></tr> \
<tr><td>MS SQL 2000</td><td>13 years</td></tr> <tr><td>DTS</td><td>13 years</td></tr> \
<tr><td>Replication</td><td>10 years</td></tr> <tr><td>Clustering</td><td>9 years</td></tr> \
<tr><td>MS SQL 2005</td><td>9 years</td></tr> <tr><td>SSIS</td><td>9 years</td></tr> \
<tr><td>MS SQL 2008</td><td>3 years</td></tr> <tr><td>&nbsp;</td><td>&nbsp;</td></tr></table>"; }
return false;
}

function dnBox() {
document.getElementById("txtBox").innerHTML = "<p>&nbsp;</p>\
<p><span class=\"punch\">Here to Help</span><br />Whether your need is SQL, PowerShell, VB or a combination. Kastner Consulting LLC can help.</p> \
<p><span class=\"punch\">SQL:</span>  From Installation, clustering, UN-Clusteriing, table design to managing transactional replication.<br /> With over 16 years experience as a production and development DBA I can understand your needs and help you achieve your goals.</p> \
<p><span class=\"punch\">PowerShell:</span> There&rsquo;s little PowerShell can&rsquo;t do.  From SQL backups, log-shipping, AD management,  access auditing, you name it and PowerShell can probably accomplish it quickly and easily.</p> \
<p><span class=\"punch\">VB &amp; VB.net:</span> From a stand-alone program to a snippet of code as part of another process contact us for help.</p>";
return false;
}

