function forgotusername(){
$('#floatingBox').load('../forgotusername.php');
}
function forgotpassword(){
$('#floatingBox').load('../forgotpassword.php');
}
function openLogin(){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
var p = '';
$('#regpopcontent').load('../popups/loginpopup.php',{p:p},function(){});
var elem4 = document.getElementById('popupholder');
elem4.style.visibility='hidden';
var elem5 = document.getElementById('popupbox');
elem5.style.visibility='hidden';
var elem6 = document.getElementById('popupcontent');
elem6.style.visibility='hidden';
}
function logOut(){
$.post('../../scripts/pagelogout.php',{}).done(function(){
window.location.replace('https://www.ivlog.tv');
});
}
function closepopup(){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='hidden';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='hidden';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='hidden';
var elem4 = document.getElementById('popupholder');
elem4.style.visibility='visible';
var elem5 = document.getElementById('popupbox');
elem5.style.visibility='visible';
var elem6 = document.getElementById('popupcontent');
elem6.style.visibility='visible';
}
function regpopup(){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
$('#regpopcontent').load('../popups/registerpopup.php');
}
function regpopupclose(){
$('#regpopcontent').html('');
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='hidden';
var elem2 = document.getElementById('regpopbox');
elem2.style.width='450px';
elem2.style.visibility='hidden';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='hidden';
document.getElementById("regpopholder").style.top='50px';
}
function proonly(){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
$('#regpopcontent').load('../popups/proonly.php');
}
function facebookshare(){
u = "";
document.getElementById("facebook").style.display='none';
document.getElementById("facebooksent").style.display='inline';
window.open('https://www.facebook.com/sharer/sharer.php?u=https://www.ivlog.tv/user/'+encodeURIComponent(u),'sharer','toolbar=0,status=0,width=626,height=436');return false;
}
function facebooklinkshare(){
window.open('http://www.facebook.com/sharer.php?u=https://www.ivlog.tv','sharer','toolbar=0,status=0,width=626,height=436');return false;
}
function twittershare(){
u = "";
document.getElementById("twitter").style.display='none';
document.getElementById("twittersent").style.display='inline';
window.open('https://twitter.com/share?url=https://www.ivlog.TV/user/'+encodeURIComponent(u)+'&text=Come check out '+encodeURIComponent(u)+' on iVlog.TV!&&hashtags=iVlogTV','sharer','toolbar=0,status=0,width=626,height=436');return false;
}
function twitterlinkshare(){
window.open('https://twitter.com/share?url=https://www.ivlog.TV&text=Come and join in the fun over at iVlogTV! Lots of live, interactive, entertainment!&&hashtags=iVlogTV','sharer','toolbar=0,status=0,width=626,height=436');return false;
}
function feature(){
c = "";p = "0";u = "";$.post('../../scripts/featurethis.php',{c:c,u:u,p:p},function(){});
document.getElementById("featurethis").style.display='none';
document.getElementById("featurerequested").style.display='block';
}
function gopro(pg){
$('#regpopcontent').html('');
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
c = "";
if (pg==null){
pg = "0";
}
p = "0";
u = "";
n = "";
$('#regpopcontent').load('../popups/proaccount.php',{n:n,c:c,u:u,p:pg},function(){});
}
function featureon(){
document.getElementById("featurealert").style.display='none';
c = "";p = "0";u = "";$.post('../../scripts/featureon.php',{c:c,u:u,p:p},function(){});
document.getElementById("featureon").style.display='none';
document.getElementById("featureoff").style.display='block';
document.getElementById("settingsfeatureon").style.display='none';
document.getElementById("settingsfeatureoff").style.display='block';
}
function featureoff(){
document.getElementById("featurealert").style.display='block';
c = "";p = "0";u = "";$.post('../../scripts/featureoff.php',{c:c,u:u,p:p},function(){});
document.getElementById("featureon").style.display='block';
document.getElementById("featureoff").style.display='none';
document.getElementById("settingsfeatureon").style.display='block';
document.getElementById("settingsfeatureoff").style.display='none';
}
function friendrequest(){
c = "";p = "0";u = "";$.post('../../scripts/friendrequest.php',{c:c,u:u,p:p},function(){});
document.getElementById("friendreq").style.display='none';
document.getElementById("friendpending").style.display='block';
}
function unfriend(){
c = "";p = "0";u = "";$.post('../../scripts/unfriend.php',{c:c,u:u,p:p},function(){});
document.getElementById("unfriend").style.display='none';
document.getElementById("friendreq").style.display='block';
}
function subscribesend(){
c = "";p = "0";u = "";$.post('../../scripts/subscribe.php',{c:c,u:u,p:p},function(){});
document.getElementById("subscribe").style.display='none';
document.getElementById("unsubscribe").style.display='block';
}
function unsubscribesend(){
c = "";p = "0";u = "";$.post('../../scripts/unsubscribe.php',{c:c,u:u,p:p},function(){});
document.getElementById("subscribe").style.display='block';
document.getElementById("unsubscribe").style.display='none';
}
function opengift(giftid){
$('#regpopcontent').html('');
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
c = "";p = "0";u = "";$('#regpopcontent').load('../popups/opengift.php',{c:c,u:u,giftid:giftid},function(){});
}
function selectGift(giftid,pg){
$('#regpopcontent').html('');
c = "";
if (pg==null){
pg = "0";
}
u = "";
$('#regpopcontent').load('../popups/selectgift.php',{c:c,u:u,p:pg,giftid:giftid},function(){});
}
function buyGift(giftid,bank,pg){
$('#regpopcontent').html('');
c = "";
if (pg==null){
pg = "0";
}
u = "";
$('#regpopcontent').load('../popups/confirmgift.php',{c:c,u:u,p:pg,giftid:giftid,bank:bank},function(){});
}
function betano(){
$('#regpopcontent').html('');
c = "";u = "";$('#regpopcontent').load('../popups/betanotyet.php',{c:c,u:u},function(){});
}
function callmod(){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
$('#regpopcontent').load('../popups/callmod.php');
}
function flag(){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
$('#regpopcontent').load('../popups/flag.php');
}
function sendreport(){
document.getElementById("flagged").style.display='block';
document.getElementById("flag").style.display='none';
var TOS = $("input[type='radio'][name='TOS']:checked").val();
n = "";c = "";p = "0";u = "";$('#regpopcontent').load('../popups/sendreport.php',{n:n,c:c,u:u,p:p,TOS:TOS},function(){});
}
function openreport(){
$('#regpopcontent').load('../popups/flagreport.php');
}
function suggestionvote(id){
c = "";
u = "";
document.getElementById("vote"+id).style.display='none';
$.post('../scripts/suggestionvote.php',{c:c,u:u,id:id},function(){});
}
function suggestionsend(){
c = "";u = "";
var m = $("[name='suggestiontext']").val();
m=m.replace(/'/g,"'");
m=m.replace(/"/g,""");
m=m.replace(/\\/g,"\");
m=m.replace(//g,">");
m=m.replace(/\?/g,"?");
m=m.replace(/\,/g,",");
m=m.replace(/\./g,".");
m=m.replace(/!/g,"!");
m=m.replace(/\n/g," ");
var title = $("[name='suggestionsubject']").val();
title=title.replace(/'/g,"'");
title=title.replace(/"/g,""");
title=title.replace(/\\/g,"\");
title=title.replace(//g,">");
title=title.replace(/\?/g,"?");
title=title.replace(/\,/g,",");
title=title.replace(/\./g,".");
title=title.replace(/!/g,"!");
title=title.replace(/\n/g," ");
$.post('/scripts/suggestionsend.php',{c:c,u:u,m:m,title:title},function(){});
document.getElementById("suggestionbox").style.display='none';
}
function questionsend(){
c = "";u = "";
var m = $("[name='suggestiontext']").val();
m=m.replace(/'/g,"'");
m=m.replace(/"/g,""");
m=m.replace(/\\/g,"\");
m=m.replace(//g,">");
m=m.replace(/\?/g,"?");
m=m.replace(/\,/g,",");
m=m.replace(/\./g,".");
m=m.replace(/!/g,"!");
m=m.replace(/\n/g," ");
$.post('/scripts/questionsend.php',{c:c,u:u,m:m},function(){});
document.getElementById("suggestiontext").value = "";
document.getElementById("suggestionbox").style.display='none';
}
function questionvote(id){
c = "";
u = "";
document.getElementById("vote"+id).style.display='none';
$.post('../scripts/questionvote.php',{c:c,u:u,id:id},function(){});
}
function sugpagesug(){
c = "";
u = "";
document.getElementById("suggestionsbtn").style.display='none';
document.getElementById("inprogressbtn").style.display='block';
document.getElementById("completedbtn").style.display='block';
document.getElementById("suggestionsbtnoff").style.display='block';
document.getElementById("inprogressbtnoff").style.display='none';
document.getElementById("completedbtnoff").style.display='none';
$('#suggestiondata').load('../scripts/sugpagesug.php',{c:c,u:u},function(){});
}
function sugpageprog(){
c = "";
u = "";
document.getElementById("suggestionsbtn").style.display='block';
document.getElementById("inprogressbtn").style.display='none';
document.getElementById("completedbtn").style.display='block';
document.getElementById("suggestionsbtnoff").style.display='none';
document.getElementById("inprogressbtnoff").style.display='block';
document.getElementById("completedbtnoff").style.display='none';
$('#suggestiondata').load('../scripts/sugpageprog.php',{c:c,u:u},function(){});
}
function sugpagecomp(){
c = "";
u = "";
document.getElementById("suggestionsbtn").style.display='block';
document.getElementById("inprogressbtn").style.display='block';
document.getElementById("completedbtn").style.display='none';
document.getElementById("suggestionsbtnoff").style.display='none';
document.getElementById("inprogressbtnoff").style.display='none';
document.getElementById("completedbtnoff").style.display='block';
$('#suggestiondata').load('../scripts/sugpagecomp.php',{c:c,u:u},function(){});
}
function likestats(){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
elem2.style.width='600px';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
c = "";p = "0";u = "";$('#regpopcontent').load('../popups/likestats.php',{c:c,u:u,p:p},function(){});
}
function enterguest(url){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
$('#regpopcontent').load('../popups/enterguest.php',{url:url},function(){});
var elem4 = document.getElementById('popupholder');
elem4.style.visibility='hidden';
var elem5 = document.getElementById('popupbox');
elem5.style.visibility='hidden';
var elem6 = document.getElementById('popupcontent');
elem6.style.visibility='hidden';
}
function suggestLink(s){
var elem1 = document.getElementById('regpopholder');
elem1.style.visibility='visible';
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
c = "";u = "";
$('#regpopcontent').load('../popups/suggestlink.php',{c:c,u:u,s:s},function(){});
}
function giftBroadcaster(pg){
$('#regpopcontent').html('');
var elem2 = document.getElementById('regpopbox');
elem2.style.visibility='visible';
var elem3 = document.getElementById('regpopcontent');
elem3.style.visibility='visible';
c = "";
u = "";
if (pg==null){
pg = "0";
}
$('#regpopcontent').load('../popups/giftbroadcaster.php',{c:c,u:u,p:pg},function(){});
}