﻿// JScript File


function storeInt(strSize,intObj)
{
    //alert('int: '+ intObj); // debug
    var hdnInts = document.getElementById(strSize +'_hdnInts');												
						
	hdnInts.value = hdnInts.value + intObj +',';
    //alert('hdn val: '+ hdnInts.value); // debug
}


/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Mr J | http://www.huntingground.net/ */

if (document.all)
{
    scrollStep=2 //ie only
} else {
    scrollStep=1 //other browsers
}

timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}


// show/hide div
function showHide(objDivID)
{
    var objDiv = document.getElementById(objDivID);
    
    if (objDiv.className == 'hidden') 
    {
        objDiv.className = 'visible';
    } else {
        objDiv.className = 'hidden';
    }


}


