
function belep() {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('chat.html', '" + id + "', 'toolbar=0,crollbars=0,location=0, statusbar=0,menubar=0, resizable=1,width=640,height=480');");
}

function winopen( html ) {
  window.open( html, 'sms', 'width=640,height=480,resizable=yes,scrollbars=no,toolbars=no,menubar=no');
}


var rector=3
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1 || a==5 || a==9){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2 || a==6 || a==10){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3 || a==7 || a==11){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<12){
a++
setTimeout("rattleimage()",50)
}
else{
a=1
setTimeout("rattleimage()",10000)
}
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
