<!--
//ACCESS OBJECTS ON PAGE
function ObjAccess(d){
	if(document.all){
		return document.all(d);
	}else{
		return document.getElementById(d);
	}
}


<!--
agent = navigator.userAgent;
var version = navigator.appVersion;
browserVersion = 2;
function lite(imageName,hilite) {
   if (browserVersion == 1) {
      imageShow = eval(hilite + ".src");
      document [imageName].src = imageShow;
   }
}
function norm(imageName,normal) {
   if (browserVersion == 1) {
      imageShow = eval(normal + ".src");
      document [imageName].src = imageShow;
   }
}


<!--
if ((agent.indexOf("a/3",6) == -1) && (agent.indexOf("a/4",6) == -1)) {browserVersion = 2}
   else {browserVersion = 1}
if (browserVersion == 1) {     

btn_01_on = new Image();                           
btn_01_on.src = "../images/btn_one_on.jpg";

btn_01_off = new Image();          
btn_01_off.src = "../images/btn_one_off.jpg";



btn_02_on = new Image();                           
btn_02_on.src = "../images/btn_two_on.jpg";

btn_02_off = new Image();          
btn_02_off.src = "../images/btn_two_off.jpg";


}


function Hilite(name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = "../images/" + name + "_on.jpg";
		else
			window.document.images[name].src =  "../images/" + name + "_off.jpg";
	}
}



function getPageSizeWithScroll(){     

	if(window.innerHeight && window.scrollMaxY){      
		yWithScroll = window.innerHeight + window.scrollMaxY;         
		xWithScroll = window.innerWidth + window.scrollMaxX;  
	}else if(document.body.scrollHeight > document.body.offsetHeight){        
		yWithScroll = document.body.scrollHeight;         
		xWithScroll = document.body.scrollWidth;     
	}else{      
		yWithScroll = document.body.offsetHeight;         
		xWithScroll = document.body.offsetWidth;       
	}     
	return 800;
	
} 
	
		


//AUTO TAB FUNCTION FOR MOVING CURSOR FROM FIELD TO FIELD AFTER CERTAIN NUMBER OF DIGITS ARE TYPED
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
function autoTab(input,len, e) {
	var keyCode = (isNN) ? e.which : e.keyCode; 
	var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
	if(input.value.length >= len && !containsElement(filter,keyCode)) {
		input.value = input.value.slice(0, len);
		input.form[(getIndex(input)+1) % input.form.length].focus();
	}
function containsElement(arr, ele) {
	var found = false, index = 0;
	while(!found && index < arr.length)
		if(arr[index] == ele)
			found = true;
		else
			index++;
			return found;
		}
function getIndex(input) {
	var index = -1, i = 0, found = false;
	while (i < input.form.length && index == -1)
		if (input.form[i] == input)index = i;
		else i++;
			return index;
		}
	return true;
}



function transOpac(id, millisec, opacStart, opacEnd) { 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac('" + id + "', " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac('" + id + "', " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } 
} 



function transPosY(id, millisec, posStart, posEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(posStart > posEnd) { 
        for(i = posStart; i >= posEnd; i--) { 
            setTimeout("changePos('" + id + "',0 , " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } else if(posStart < posEnd) { 
        for(i = posStart; i <= posEnd; i++) 
            { 
            setTimeout("changePos('" + id + "',0 , " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } 
}

function transPosX(id, millisec, posStart, posEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(posStart > posEnd) { 
        for(i = posStart; i >= posEnd; i--) { 
            setTimeout("changePos('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } else if(posStart < posEnd) { 
        for(i = posStart; i <= posEnd; i++) 
            { 
            setTimeout("changePos('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } 
}



function transWidth(id, millisec, widthStart, widthEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(widthStart > widthEnd) { 
        for(i = widthStart; i >= widthEnd; i--) { 
            setTimeout("changeSize('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } else if(widthStart < widthEnd) { 
        for(i = widthStart; i <= widthEnd; i++) 
            { 
            setTimeout("changeSize('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } 
}

function transHeight(id, millisec, HeightStart, HeightEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(HeightStart > HeightEnd) { 
        for(i = HeightStart; i >= HeightEnd; i--) { 
            setTimeout("changeSize('" + id + "', 0, " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } else if(HeightStart < HeightEnd) { 
        for(i = HeightStart; i <= HeightEnd; i++) 
            { 
            setTimeout("changeSize('" + id + "', 0, " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } 
}



function changePos(id, x, y){
    var object = document.getElementById(id).style; 
    object.position="relative";
    if (x!=0){
    object.left=x+"px";
    }
    else if (y!=0){
    object.top=y+"px";
    }
}
function changeSize(id, width, height){
    var object = document.getElementById(id).style; 
    object.overflow='hidden'
    if (height!=0){
    object.height=height+"px";
    }
    else if (width!=0){
    object.width=width+"px";
    }
}
function changeOpac(id, opacity) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 
