var polled=0;
function poll1()
{
if (polled==0)
{
var choice=null;
for (var i=0;i<document.forms['poll'].r1.length;i++)
{
if(document.forms['poll'].r1[i].checked)
{
choice=document.forms['poll'].r1[i].value;
break;
}
}
ques=document.forms['poll'].quesid.value;
window.open("poll.asp?polltype=santabanta&r1="+choice+"&quesid="+ques,'poll1',"height=370,width=370,top=100,left=150,status=YES,scrollbars=1,toolbar=no,menubar=no,location=no");
polled=1;
}
else alert("Cannot poll twice !!");
}
function pollresult()
{
window.open("poll.asp",'poll1',"height=370,width=370,top=100,left=150,status=YES,scrollbars=1,toolbar=no,menubar=no,location=no");
}

function guestbook()
{
window.open("guestbook.asp",'joke',"height=350,width=450,top=100,left=125,status=YES,scrollbars=1,toolbar=no,menubar=no,location=no");
}
function feedback()
{
window.open("feedback.asp",'joke',"height=220,width=310,top=100,left=150,status=YES,scrollbars=1,toolbar=no,menubar=no,location=no");
}
function iframe1()
{
var diff;
diff=max_wall - min_wall;
var catid;
catid=Math.floor(min_wall+(diff*Math.random()));
document.write ("<IFRAME name=imageframe SRC='wallpapers/get_js.asp?catid=" + catid +"'  MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0  SCROLLING=NO WIDTH=160 HEIGHT=120></iframe>");
}
function reload1()
{
var diff;
diff=max_wall - min_wall;
var catid;
catid=Math.floor(min_wall+(diff*Math.random()));
window.imageframe.location.href='wallpapers/get_js.asp?catid=' + catid;
}
