function openplayer(url, wstyle, linkname)
{
var player_number = Math.floor(Math.random()*10000000)
var player_name = "player" + player_number
if (wstyle==0)
{
window.open(url, player_name, "fullscreen=no,scrollbars=yes,toolbar=no,location=no,menubar=0,directories=no,resizable=yes,status=0")
}
if (wstyle==1)
{
window.open(url, player_name, "fullscreen=yes,scrollbars=yes,toolbar=yes,location=yes,menubar=yes,directories=yes,resizable=yes,status=yes")
}
clicked(linkname)
}

function pop_normal_page(url)
{
window.open(url, 'user_page', "fullscreen=yes,scrollbars=yes,toolbar=yes,location=yes,menubar=yes,directories=yes,resizable=yes,status=yes")
}

function clicked(linkname)
{
document.getElementById(linkname).style.color = "#FF0000"
}

function onbutton(linkname, pic)
{
document.getElementById(linkname).src = (pic)
}

function popuphelp(url)
{
window.open(url, "popuphelp", "width=600,height=600,scrollbars=yes,resizable=yes,")
}

function report_not_working(userornabo, linkID, movieID)
{
var url='report_not_working.php?userornabo=' + userornabo + '&linkID=' + linkID + '&movieID=' + movieID
window.open(url, "report_not_working", "width=600,height=600,scrollbars=yes,resizable=yes,")
}

function open_url_decoder()
{
url="url_decoder.php"
window.open(url, "url_decoder", "width=600,height=200,scrollbars=yes,toolbar=no,location=no,menubar=0,directories=no,resizable=yes,status=0")
}


function postulate_for_admin(movieID)
{
var url='postulate_for_admin.php?movie=' + movieID
window.open(url, "postulate_for_admin", "width=600,height=600,scrollbars=yes,resizable=yes,")
}

