function newWindowSubmit(formName, winWidth, winHeight) { window.open("","myNewWin","width="+winWidth+",height="+winHeight+",toolbar=0"); var a = window.setTimeout("document."+formName+".submit();",500); } function mc_toggle(element) { var el; el = document.getElementById(element); if(el.style.display != 'block') { el.style.display = 'block'; } else { el.style.display = 'none'; } if(element == 'members_online_list'){ var ajaxSession = new XMLHttpRequest(); ajaxSession.open("GET", "http://www.mychances.net/includes/ajax/interact.php?action=showUsersOnline", true); ajaxSession.send(null); } } function nav_switcher(nav) { clear_all_nav(); mc_toggle(nav); } function mc_underline(nav) { document.getElementById(nav).className = 'hybridNavTopLinks navTopLinksAlwaysOn'; } function clear_all_nav() { var mcMain; var mcMyAccount; var mcColleges; var mcEssays; var mcForums; var mcHelp; mcMain = document.getElementById('mainRibbon'); mcMyAccount = document.getElementById('myAccountRibbon'); mcColleges = document.getElementById('collegesRibbon'); mcEssays = document.getElementById('essaysRibbon'); mcForums = document.getElementById('forumsRibbon'); mcHelp = document.getElementById('helpRibbon'); mcMain.style.display = 'none'; mcMyAccount.style.display = 'none'; mcColleges.style.display = 'none'; mcEssays.style.display = 'none'; mcForums.style.display = 'none'; mcHelp.style.display = 'none'; document.getElementById('mainRibbon').className = 'mcRibbon'; document.getElementById('myAccountRibbon').className = 'mcRibbon'; document.getElementById('collegesRibbon').className = 'mcRibbon'; document.getElementById('essaysRibbon').className = 'mcRibbon'; document.getElementById('forumsRibbon').className = 'mcRibbon'; document.getElementById('helpRibbon').className = 'mcRibbon'; document.getElementById('topLinksMain').className = 'hybridNavTopLinks'; document.getElementById('topLinksMyAccount').className = 'hybridNavTopLinks'; document.getElementById('topLinksCollege').className = 'hybridNavTopLinks'; document.getElementById('topLinksEssay').className = 'hybridNavTopLinks'; document.getElementById('topLinksForum').className = 'hybridNavTopLinks'; document.getElementById('topLinksHelp').className = 'hybridNavTopLinks'; } function matrixInputSubmit(target){ $j("body").append(""); $j("#form-to-submit").html($j(".matrixInput").clone()); $j("#form-to-submit").submit(); }