

function resetTabs(tabSet) {
    var i = 1;
    var tabName = "tab_" + tabSet + '_' + i;
    if (document.getElementById(tabName)) { 
      while(document.getElementById(tabName)) {
         document.getElementById(tabName).className='tab';
         var tabName = "tab_" + tabSet+ '_' + (++i);
      }
   }
}

function showDiv(divSet,divID) {
   resetDivs(divSet);
   document.getElementById('div_'+divSet+'_'+divID).style.display='block';
}

function resetDivs(divSet) {
   var i = 1;
   var divName = "div_" + divSet + '_' + i;

   if (document.getElementById(divName)) { 
      while(document.getElementById(divName)) {
         document.getElementById(divName).style.display='none'
         var divName = "div_" + divSet+ '_' + (++i);
      }
   }
}

function clearText(object)
{
    object.value = '';
}

function randomImage() 
{ 
    var images=new Array(); 
    images[0]="./images/skylineBg.jpg"; 
    images[1]="./images/skylineBg1.jpg"; 

    var i=Math.floor(Math.random()*images.length);
    document.getElementById("rightHighlight").style.backgroundImage="url(" + images[i] + ")";
}

function validateRequestInformation()
{
    alert('and here we go!!!!!');
    
    //var lastName = document.getElementByID('ctl00_cpRightColumn_txtLName');
   //var email = document.getElementByID('ctl00_cpRightColumn_txtEmail');
    
    alert('test');
    //alert(firstname.value);
    //alert(firstname.length);
    
    // || lastName.length < 1 || email.length < 1
    if (document.getElementByID('ctl00_cpRightColumn_txtFName').length < 1)
    {
        alert('Please include your first name, last name, and email address.');
        return false;
    }

    return false;
}
