function em24_openPopup( url, name, widgets, openerUrl )
{
// Validate the 'Other' answer
var elements = document.getElementsByTagName("input");
for (var i = 0; i < elements.length; i++)
{
if (elements[i].type == "radio" && elements[i].checked)
{
var ftas = document.getElementById("em24_ftas" + elements[i].value);
var ftai = document.getElementById("em24_ftai" + elements[i].value);
if ((ftas != null && typeof(ftas) != 'undefined') || (ftai != null && typeof(ftai) != 'undefined'))
{
if ((ftas.selectedIndex == 0 || ftas.selectedIndex == 1) && ftai.value == "")
{
alert("Please select or enter your answer...");
return false;
}
}
}
}
var host = location.hostname;
window.top.name = "opener";
var popupWin = window.open( url, name, widgets );
if ( popupWin && popupWin.opener ) {
if ( openerUrl )
{
popupWin.opener.location = openerUrl;
}
}
if ( popupWin) {
popupWin.focus();
}
}
function em24_otherSelected( idSelect, idInput )
{
var objSelect = document.getElementById(idSelect);
var val = objSelect.options[objSelect.selectedIndex].value;
if (val == "+")
em24_otherDisplay ('i', idSelect, idInput);
}
function em24_otherDisplay ( type, idSelect, idInput )
{
if (type == 'i')
{
document.getElementById("em24_fts").style.display = 'none';
document.getElementById("em24_fti").style.display = 'block';
document.getElementById(idInput).focus();
}
else
{
document.getElementById("em24_fts").style.display = 'block';
document.getElementById("em24_fti").style.display = 'none';
document.getElementById(idSelect).selectedIndex = 0;
document.getElementById(idInput).value = "";
}
}
document.write('