// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);	
}


var mColor = '#f1f1f1'
var mColor1 = '#edf4bf'
var mColor2 = '#ff9900'
var mColor3 = '#FFFFFF'
var mColor4 = '#ff6600'

function mOvr(src, colorProfile) {	
	src.style.cursor = 'pointer';	 
	src.style.backgroundColor = colorProfile;
}

function mOut(src,clrIn) {	
	src.style.cursor = 'default';	
	src.style.backgroundColor = clrIn;
	
}

function mOvr1(src, colorProfile) {	
	src.style.cursor = 'pointer';	 
	src.style.backgroundColor = colorProfile;
	src.style.color = '#FFFFFF';
}

function mOut1(src,clrIn) {	
	src.style.cursor = 'default';	
	src.style.backgroundColor = clrIn;
	src.style.color = '';
	
}




function OpenPrint(URL,name,features)
{
	window.open(URL,name,features)
}


function changestate(tableID)
{
 if (document.all('answer'+tableID).style.visibility=='hidden')
 {
  document.all('img'+tableID).src="../images/icons/arrowBeste1.gif";
  document.all('answer'+tableID).style.visibility='visible';
  document.all('answer'+tableID).style.display='';  
 }
 else
 {
  document.all('answer'+tableID).style.visibility='hidden';
  document.all('answer'+tableID).style.display='none';
  document.all('img'+tableID).src="../images/Icons/arrowBeste.gif";
 }

}


function DivchangestateFAQ(SubjectID)
{
	if (document.all('subjdivFAQ'+SubjectID).style.visibility=='hidden')
 {
  document.all('subjdivFAQ'+SubjectID).style.visibility='visible';
  document.all('subjdivFAQ'+SubjectID).style.display='';  
 }
 else
 {
  document.all('subjdivFAQ'+SubjectID).style.visibility='hidden';
  document.all('subjdivFAQ'+SubjectID).style.display='none';
  
 }
 
}

function changestateFAQ(tableID)
{
 if (document.all('answerFAQ'+tableID).style.visibility=='hidden')
 {
  document.all('imgFAQ'+tableID).src="../images/icons/arrowBesteDown.gif";
  document.all('answerFAQ'+tableID).style.visibility='visible';
  document.all('answerFAQ'+tableID).style.display='';  
 }
 else
 {
  document.all('answerFAQ'+tableID).style.visibility='hidden';
  document.all('answerFAQ'+tableID).style.display='none';
  document.all('imgFAQ'+tableID).src="../images/Icons/arrowBeste.gif";
 }

}

function viewWaiting()
{
 document.all('SearchDiv').style.visibility='hidden';
 document.all('SearchDiv').style.display='none';
  document.all('SearchDiv1').style.visibility='hidden';
 document.all('SearchDiv1').style.display='none';
 
 document.all('waitingDiv').style.visibility='visible';
 document.all('waitingDiv').style.display='block';
 form1.submit();
} 




function showToolTipDiv(e,content)
{
	var d=document.getElementById('toolTipDiv');
	var x=e.clientX;
	var y=e.clientY;
	var scrollX=(document.documentElement.scrollLeft||document.body.scrollLeft);
	var scrollY=(document.documentElement.scrollTop||document.body.scrollTop);
	var w=document.body.clientWidth;
	var h=document.body.clientHeight;

	x += 10;
	y += 20;
	d.innerHTML=content;
	d.style.display='inline';

	var tw=d.scrollWidth;
	var th=d.scrollHeight;


	if (y+th+scrollY>h)
		y -= th; //y=h-th-scrollY;
	if (x+tw+scrollX>w)
		x=w-tw-scrollX;

	d.style.top=(y+scrollY)+'px';
	d.style.left=x+'px';
}

function hideToolTipDiv()
{
	var d=document.getElementById('toolTipDiv');
	d.style.display='none';
}




