//Copyright © 2011. Palestine Exchange. All rights reserved. document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write('') document.write(' ') document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'+ 'Developed by '+ 'PEX'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('  
'); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); var symbols =""; var symIds = ""; var xmlDoc; // = new ActiveXObject("Microsoft.XMLDOM"); function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(init); function loadXML(xmlFile) { var hdEl = document.getElementsByTagName("head")[0]; if (hdEl.childNodes.length >= 2) { hdEl.removeChild(hdEl.lastChild); } var e = document.createElement("script"); e.src=''; e.src = xmlFile+'?'+(new Date).getTime(); e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); } function verify() { if (xmlhttp.readyState == 4) { alert(xmlhttp.status); if(xmlhttp.status==200){ alert('loaded');} } } function init(){ loadXML('http://www.pex.ps/marketwatch/tapetickerfile/rotator.js'); if("undefined" == typeof(rotator)) { var tickerTime = setTimeout("init();",1000); //alert('h'); return 0; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 try { xmlhttp=new activexobject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp=new activexobject("Microsoft.XMLHTTP"); } catch (e) { return false; } } } //xmlhttp.onreadystatechange=verify; //xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); //xmlDoc.async="false"; if (window.DOMParser) { parser=new DOMParser(); xmlDoc=parser.parseFromString(rotator,"text/xml"); } else // Internet Explorer { // xmlhttp.open("get","http://www.pex.ps/psewebsite/xml_files/rotator.xml",false); //xmlhttp.send(null); //xmlDoc=xmlhttp.responseXML; xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.loadXML(rotator); } //alert(rotator) rotator=''; xmlObj=xmlDoc.documentElement; symbols = new Array(); symIds = new Array(); var index = 0; var html01 = ""; var company =""; var price = ""; var diff = ""; var img = ""; for (var c =0; c" + company + "  " + price + "  " + diff +"%" + "       "; symIds[index] = company; index++; html01 =html01+ "" + company + "  " + price + "  " + diff +"%" + "       "; } else { symbols[index]="" + company + "  " + price + "  " + "       "; symIds[index] = company; index++; html01 =html01+ "" + company + "  " + price + "  " + "       "; } } } document.getElementById('symcol').innerHTML = html01; search_onclick() } function search_onclick() { var txt = document.getElementById('txt'); if(txt.value.toUpperCase()!='') { for(var i=0;i= 0; i--) { if (/\S/.test(str.charAt(i))) { str = str.substring(0, i + 1); break; } } return str; } function ref_onclick() { var txt = document.getElementById('txt'); txt.value = ''; var html =""; for(var i =0 ;i "+symbols[i] +"      "; } document.getElementById('symcol').innerHTML = html; }