// JavaScript Document
function main()
{
//	setTimeout("document.getElementById('tableflash').innerHTML=document.getElementById('tablemain').innerHTML",2500);
	setTimeout("window.location='index1.asp'",4500);
}

function imgchg(id,no)
{
	for (id_t=1;id_t<=no;id_t++) 
	{
  	document.getElementById('img'+id_t).className='highlightit';
	}
 	document.getElementById('img'+id).className='highlightit_t';
	if (document.getElementById('text_msg'))
	{
		id_n='pic'+id;
		document.getElementById('text_msg').innerHTML=document.getElementById(id_n).alt;
	}
}

step=2;

function toTop(id)
{ 
document.getElementById(id).scrollTop=0 ;
} 

function scrollDivDown(id)
{ 
document.getElementById(id).scrollTop+=step ;
timerDown=setTimeout("scrollDivDown('"+id+"')",10) ;
} 

function scrollDivLeft(id)
{ 
document.getElementById(id).scrollLeft-=step ;
timerUp=setTimeout("scrollDivLeft('"+id+"')",10) ;
} 

function scrollDivRight(id)
{ 
document.getElementById(id).scrollLeft+=step ;
timerDown=setTimeout("scrollDivRight('"+id+"')",10) ;
} 

function scrollDivUp(id)
{ 
document.getElementById(id).scrollTop-=step;
timerUp=setTimeout("scrollDivUp('"+id+"')",10);
} 

function toBottom(id)
{ 
document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight;
} 

function toPoint(id)
{ 
document.getElementById(id).scrollTop=100;
} 

function connect()
{
	var xmlHttp = false;
	try 
	{
  		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e) 
	{
  		try 
		{
    		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  		} 
		catch (e2) 
		{
    		xmlHttp = false;
  		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') 
	{
  		xmlHttp = new XMLHttpRequest();
	}
	if(xmlHttp)
	return xmlHttp;
}

function loadpage(url, containerid)
{
	var xmlHttp=new Array();
	xmlHttp=connect();
	xmlHttp.open("GET", url);
	xmlHttp.onreadystatechange=function()
	{
	if (xmlHttp.readyState == 4 && (xmlHttp.status==200 || window.location.href.indexOf("http")==-1))
		{
			data=xmlHttp.responseText;
			document.getElementById(containerid).innerHTML=data;
		}
	}
    xmlHttp.send(null);
}

function showdiv(id,no)
{
op=document.getElementById(id).style.display;
if (op=='none')
{
	for (id_t=1;id_t<=1;id_t++) 
	{
 		document.getElementById('d'+id_t).style.display='none';
	}
	document.getElementById(id).style.display='block';
}
}

function hidediv(id)
{
document.getElementById(id).style.display='none';
}

