function redirect_url(action) { var target = "http://app.quotemedia.com/quotetools/clientForward?targetURL=http://www.qmdemo.com/NEWDEMO/index.php?l=inpamc"; window.location=target+'&'+action; } var javatimeout; var menuwin; var javatimer = 1200; function NewWindow(mypage, myname, w, h) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function ViewSource() { window.location = "view-source:" + window.location.href } function scrolling_news(url) { var screen_height = screen.height; if(document.body.clientHeight) screen_height = document.body.clientHeight; else if(document.body.offsetHeight) screen_height = document.body.offsetHeight; else screen_height = screen.height; screen_height = screen_height - 280; document.write(''); } function highlight(elemnt) { document.getElementById(elemnt).select(); document.getElementById(elemnt).focus(); if (document.all) { textRange = document.getElementById(elemnt).createTextRange(); textRange.execCommand("RemoveFormat"); textRange.execCommand("Copy"); alert("This code has been copied to your clipboard.\nYou may open any editor and paste it therein.\n"); } } function initiate_list(){ var q = 1, temp = document.getElementById('sectorTopicList').getElementsByTagName("LI"); for(var i = 0; i < temp.length; i++){ if(!temp[i].getElementsByTagName("LI")[0]){ if(q%2 == 0){ temp[i].style.backgroundColor="#eee"; } q++; } } temp = document.getElementById('sectorTopicList').getElementsByTagName("A"); for(var i = 0; i < temp.length; i++){ temp[i].onclick = function(){ window.qm_news.location="http://www.quotemedia.com/demoarea/subpages/newswin.php?topic="+this.innerHTML; } } temp = document.getElementById('sectorTopicList').getElementsByTagName("DIV"); for(var i = 0; i < temp.length; i++){ temp[i].onclick = function(){ if(this.parentNode.className!="active") this.parentNode.className="active"; else this.parentNode.className=""; } } } function all_list(c){ var temp = document.getElementById('sectorTopicList').getElementsByTagName("DIV"); for(var i = 0; i < temp.length; i++){ temp[i].parentNode.className=c; } } /*onkeypress="javascript: show_key(event.which);"*/