//>> Global Variables var QOTW_XML = "http://learningextension.com/widgets/qotw.xml"; var QOTW_Dir = "http://learningextension.com/widgets/"; var QOTW_Share = "http://learningext.com/pages/e1405788a0"; var QOTW_Correct_Num = "1"; var QOTW_Question = "The nurse is assessing an infant with developmental dysplasia of the hip. Which finding should a nurse anticipate?"; var QOTW_Week_Of = "01.30.12"; var QOTW_Answer; var QOTW_Num_Answers = "4"; var QOTW_Req; var QOTW_HTML = '
'; QOTW_HTML += ''; QOTW_HTML += '
'; QOTW_HTML += ''; QOTW_HTML += '
'; QOTW_HTML += ''; QOTW_HTML += '
'; //>> Initial Call QOTW_Init(); function $(Element) { return document.getElementById(Element); } function QOTW_Init() { try { document.write(QOTW_HTML); var Str = "
"; Str += "
Question of the week for " + QOTW_Week_Of + "
"; Str += "
" + QOTW_Question + "
"; Str += "
";Str += "";Str += "
";Str += "
";Str += "";Str += "
";Str += "
";Str += "";Str += "
";Str += "
";Str += "";Str += "
"; Str += "
"; Str += "
"; Str += ""; $("QOTW_Body").innerHTML = Str; } catch(e){ $("QOTW_Body").innerHTML = e; } } function QOTW_Submit() { try { var Correct_Num = QOTW_Correct_Num - 1; var i = 0; var Selected = "Off"; while (i < QOTW_Num_Answers) { if ($("QOTW_Answer-" + i).checked == true) Selected = i; i++; } if (Selected != "Off") { if (Selected == Correct_Num) $("UI-QOTW-Status").innerHTML = "Correct!"; else $("UI-QOTW-Status").innerHTML = "Incorrect!"; $("UI-QOTW-Panel-1").style.display = "none"; $("UI-QOTW-Panel-2").style.display = "block"; } } catch(e){ $("QOTW_Body").innerHTML = "

" + e + "
" } } function QOTW_Back() { try { $("UI-QOTW-Panel-2").style.display = "none"; $("UI-QOTW-Panel-1").style.display = "block"; } catch(e){ $("QOTW_Body").innerHTML = "

" + e + "
" } } function QOTW_Share_Go() { try { var Str = "
Share This Widget!
"; Str += "
Copy and paste this code into your website or blog:
"; Str += ""; Str += "

Share on the web: "; Str += "Facebook - "; Str += "Twitter - "; Str += "MySpace - "; Str += "Friendster"; Str += "

"; $("QOTW_Share").innerHTML = Str; $("QOTW_Body").style.display = "none"; $("QOTW_Share").style.display = "block"; } catch(e){ $("QOTW_Body").innerHTML = "

" + e + "
" } } function QOTW_Share_Back() { try { $("QOTW_Body").style.display = "block"; $("QOTW_Share").style.display = "none"; } catch(e){ $("QOTW_Body").innerHTML = "

" + e + "
" } }