var responses = new Array()
responses[responses.length] = new c_response ([317268,1,-1,1,'Sep 2 2004 7:37PM','מוקי תוכי','מיגון',0,0])
if(typeof NadlanView=="undefined")
NadlanView = false
if(typeof StockView=="undefined")
StockView = false
function dw(s){document.write(s)}
function Disclaimer(){window.open("/serve/globes/Disclaimer.html","Disclaimer","width=400,height=250,left=100,top=100,scrollbars=yes,status=yes,resizable=yes")}
function newResponse(){window.open('/serve/article_response/response_window.asp?did=833375&NadlanView=' + NadlanView + '&StockView=' + StockView, 'popUp', 'toolbar=no, width=420, height=390, left=50, top=50, scrollbars=yes, status=yes,resizable=yes')}
function showResponse(p_resId, p_seq){window.open('/serve/article_response/show_response.asp?did=833375&res=' + p_resId + '&seq=' + p_seq + "&NadlanView=" + NadlanView+ '&StockView=' + StockView, 'popUp', 'toolbar=no, width=420, height=390, left=50, top=50, scrollbars=yes, status=yes, resizable=yes')}
function sort_responses() {
var t
for (var i=0; i < responses.length ;i++) {
if (responses[i].father_id <= 0) continue
for(var j=i-1; j >= 0 ;j--) {
if (responses[j].id == responses[i].id || responses[j].father_id == responses[i].father_id) {
t = responses[i]
j++
for (var k = i; k > j ;k--) {
responses[k] = responses[k-1]
}
responses[j] = t
break
}
}
}
}
function serialize_responses() {
var current = 1
for (var i in responses) {
responses[i].serial = Math.max(responses[i].serial,current)
current = responses[i].serial + 1
}
}
responses = responses.sort(function(x,y){return x.id - y.id})
sort_responses()
serialize_responses()
var bgColor = "#000000"
var titleColor = "#940818"
if(NadlanView) bgColor = "#CCCCCC"
else if(StockView) {
bgColor = "#FFFFFF"
titleColor = "#437C1E"
}
dw('
')
dw('')
dw( '')
dw( '')
dw( '')
if(NadlanView) {
dw( '')
dw( '')
dw( '')
dw( '  | ')
dw( '  | ')
dw( '  | ')
dw( ' ')
dw( '')
dw( '  | ')
dw( ' תגובות קוראים | ')
dw( '  | ')
dw( ' ')
dw( '')
dw( '  | ')
dw( ' ')
dw( ' ')
dw( ' | ')
}
else if(false)
{
dw( '')
dw( '')
dw( '')
dw( ' | ')
dw( '
| ')
dw( '
| ')
dw( ' ')
dw( '')
dw( '
| ')
dw( ' ')
dw( ' ')
dw( ' | ')
}
else if(StockView)
{
dw( '')
dw( '')
dw( '')
dw( ' שלח תגובה | ')
dw( ' | ')
dw( ' | ')
dw( ' | ')
dw( ' ' + ((responses.length > 1) ? responses.length + " " : "") + 'תגובות' + ((responses.length >= 1000) ? ' אחרונות' : '') + ' | ')
dw( ' ')
//dw( '')
//dw( '
| ')
//dw( ' ')
dw( ' ')
dw( ' | ')
}
else
{
dw( '')
dw( '')
dw( '')
dw( ' | ')
dw( ' ' + ((responses.length > 1) ? responses.length + " " : "") + 'תגובות' + ((responses.length >= 1000) ? ' אחרונות' : '') + ' | ')
dw( '
| ')
dw( '
| ')
dw( ' ')
dw( '')
dw( '
| ')
dw( ' ')
dw( ' ')
dw( ' | ')
}
dw( ' ')
if(StockView)
{
dw( ' | ')
dw( '')
dw( '| בהגיבי הנני מסכים לתוכן תנאי השימוש | ')
dw( ' ')
dw( ' | ')
}
else
{
dw( ' | ')
dw( '')
dw( '| בהגיבי הנני מסכים לתוכן תנאי השימוש | ')
dw( ' ')
dw( ' | ')
}
dw( '')
dw( '| תאריך ושעה | ')
if(StockView){
dw( 'דירוג | ')
dw( 'המלצה | ')
dw( 'כינוי | ')
dw( 'נושא תגובה | ')
}
else
{
dw( 'כינוי | ')
dw( 'נושא תגובה | ')
}
dw( '
| ')
dw( ' ')
if (responses.length == 0) {dw('| | ')}
function responses_loop(i,j) {
while(i < j) {
var t = responses[i].datetime
var m = (responses[i].father_id > 0) ? '/serve/images/forum6.gif' : '/serve/images/forum2.gif'
var p = (responses[i].father_id > 0) ? ' ' : ''
dw('')
dw( '| ' + c2d(t) + ' | ')
if(StockView){
dw( '' + responses[i].score + ' | ')
dw( '' + responses[i].sentiment + ' | ')
}
dw( '' + responses[i].name + ' | ')
dw( '' + p + responses[i].subject + ' | ')
dw( ' .' + responses[i].seq /* serial */ + ' | ')
dw(' ')
i++
}
}
var j = responses.length
var i = j-1
while (i > -1) {
if (i == 0 || responses[i].father_id < 1) {responses_loop(i,j); j = i}
i--
}
dw( ' ')
dw( ' | ')
dw('
')
dw('
')
function c_response(a) {
var i = 0
this.id = a[i++]
this.serial = parseInt(a[i++])
if (isNaN(this.serial)) this.serial = 0
this.father_id = a[i++]
this.seq = a[i++]
this.datetime = new Date(a[i++])
this.name = a[i++]
this.subject = a[i++]
var arrSentiment =
[
'',
'קניה חזקה',
'קניה',
'החזק',
'מכירה',
'מכירה חזקה',
];
this.sentiment = arrSentiment[a[i++]]
this.score = a[i++]
if(this.score == 0) this.score=''
}
function z(x){return (x.toString().length == 1) ? '0' + x : x}
function c2d(t){return z(t.getDate()) + '/' + z(t.getMonth() + 1) + '/' + z(t.getYear() % 100) + ' ' + z(t.getHours()) + ':' + z(t.getMinutes())}