/*	DISPLAY SCRIPT FOR HELP TIPS
	NOTE: div id must follow the naming convention 
		"help1" "help2" "help3" etc 
	according to how many help tips appear on the page
*/

function showHelpWin(divNo)
{
	if (isNav4) {return;}
    setIdProperty(("help" + divNo), "display", "block" );
}
function hideHelpWin(divNo)
{
	if (isNav4) {return;}
    setIdProperty(("help" + divNo), "display", "none" );
}

//  =====================================================

// requires helplink and helpcontent classes
// function showHelp(divNum) generated in template for now...

//  =====================================================

// requires faqlink and faqcontent classes
function showFAQ( divNum )
{
    if (getIdProperty( "s" + divNum, "display") != "block" )
    {
        setIdProperty("s" + divNum, "display", "block");
    }
    else
    {
        setIdProperty("s" + divNum, "display", "none");
    }
}

//  =====================================================

// requires classes
function showLearnmoreDiv(divName)
{
	// Get all divs in the page
	var divs = document.body.getElementsByTagName("DIV");
	
	// Hide all characteristic divs
	for (var i=0; i < divs.length; i++)
	{
		if (divs[i].id.substring(0, 2) == "c_")
		{
			setIdProperty(divs[i].id, "display", "none");
		}
	}
	
	// Display the selected div
	setIdProperty(divName, "display", "block");
}
//  =====================================================

function formFocus()
{
	if (document.forms[2])
	{
		document.forms[2].elements[0].focus()
	}
}


//  =====================================================
function openwin(url,width,height,bar){


		windowname="popup";
		//window.open(url,windowname,"'scrollbars="+bar+",status="+bar+",width="+width+",height="+height+"'");
		window.open(url,windowname,"'resizable=yes,scrollbars=yes,location="+bar+",menubar="+bar+",status="+bar+",width="+width+",height="+height+"'");





	}
	function openhomepop(url,height){
		
	width="400";	
	bar="no";		
	windowname="popup";
	window.open(url,windowname,"'scrollbars=yes,menubar="+bar+",location="+bar+",status="+bar+",width="+width+",height="+height+"'");
}
