
var email_Format=/^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i;var isPlayerLoaded=0;function trim(stringToTrim){return stringToTrim.replace(/^\s+|\s+$/g,"");}
function ltrim(stringToTrim){return stringToTrim.replace(/^\s+/,"");}
function rtrim(stringToTrim){return stringToTrim.replace(/\s+$/,"");}
function checkplace2()
{}
function calltoshowvideocom()
{if(document.getElementById('commentid'))
{var comid=document.getElementById('commentid').value;var commentvideo=document.getElementById('commentvideo').value;var commenttable=document.getElementById('commenttable').value;var lang=document.getElementById('sel_lan').value;var type='video';commentvideo=commentvideo.split(".flv");commentvideo=commentvideo[0];var so=new SWFObject(WEBTV_AJAXPATH+'commentRecorder.swf?ver='+swf_version,'mpl','500','250','8');so.addParam('allowscriptaccess','always');so.addParam('allowfullscreen','true');so.addParam('wmode','transparent');so.addParam('FlashVars','commentID='+comid+'&filename='+commentvideo+'&table='+commenttable+'&lang='+lang+'&type='+type+'');so.write('commentRecorder');}else
{window.setTimeout('calltoshowvideocom()',1500);}}
function clickvideo_textcomment()
{if(document.getElementById('mediaplayer'))
if(document.getElementById('media_videocomment'))
document.getElementById('media_videocomment').style.display='none';if(document.getElementById('closesec1').style.display=='block')
document.getElementById('closesec1').innerHTML='<?php echo webtvorvideoclose;?>';if(document.getElementById('media_comments'))
document.getElementById('media_comments').style.display='block';if(document.getElementById('media_textcomment'))
document.getElementById('media_textcomment').style.display='block';}
function videocomment_click()
{if(document.getElementById('media_textcomment'))
document.getElementById('media_textcomment').style.display='none';if(document.getElementById('mediaplayer'))
mediaplayer.sendEvent('PLAY','false');if(document.getElementById('webtv_media_textcomment'))
document.getElementById('webtv_media_textcomment').style.display='none';if(document.getElementById('commenttype'))
document.getElementById('commenttype').style.display='block';if(document.getElementById('closesec1').style.display=='block')
document.getElementById('closesec1').innerHTML='<?php echo webtvorvideoclose;?>';}
function sitemaphideshow(div_frsitemap_img,sitemap_div)
{if(document.getElementById(sitemap_div).style.display=='block')
{document.getElementById(sitemap_div).style.display='none';document.getElementById(div_frsitemap_img).src='../signin/images/plus.gif';}
else
{document.getElementById(sitemap_div).style.display='block';document.getElementById(div_frsitemap_img).src='../signin/images/minus.gif';}}
function show_langugeselector_initial()
{if(document.getElementById('lan_selector_initial')){document.getElementById('lan_selector_initial').style.display='block';}
var viewportwidth='';var viewportwidth1='';var viewportheight='';var viewportheight1='';if(typeof window.innerWidth!='undefined')
{viewportwidth=window.innerWidth,viewportwidth1=viewportwidth;viewportheight=window.innerHeight
viewportheight1=viewportheight;}
else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0)
{viewportwidth=document.documentElement.clientWidth,viewportwidth1=viewportwidth;viewportheight=document.documentElement.clientHeight
viewportheight1=viewportheight;}
else
{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportwidth1=viewportwidth;viewportheight=document.getElementsByTagName('body')[0].clientHeight
viewportheight1=viewportheight;}
if(document.getElementById('lan_selector_initial')){document.getElementById('lan_selector_initial').style.width=viewportwidth+'px';document.getElementById('lan_selector_initial').style.height=viewportheight+'px';if(document.getElementById('lan_selector_initial').style.display=='block')
{window.setTimeout("show_langugeselector_initial()",2000);}}
var l_viewportwidth=parseInt(viewportwidth)-3;document.getElementById('l_sec4').style.width='2px';document.getElementById('l_sec5').style.width='2px';l_viewportwidth=parseInt(viewportwidth)-301;document.getElementById('l_sec2').style.width='304px';l_viewportwidth=parseInt(viewportwidth)/2;document.getElementById('l_sec1').style.width=l_viewportwidth+'px';document.getElementById('l_sec3').style.width=l_viewportwidth+'px';}
function showlogin()
{document.getElementById('loader_login').style.display='none';show_black_box('#login_div');if(document.getElementById('re_username'))
{document.getElementById('re_username').value=''
document.getElementById('re_username').style.border='1px solid #DCD3CE';}
if(document.getElementById('re_password'))
{document.getElementById('re_password').value='';document.getElementById('re_password').style.border='1px solid #DCD3CE';}
if(document.getElementById('re_username1'))
{document.getElementById('re_username1').value='';document.getElementById('re_username1').style.border='1px solid #DCD3CE';}
document.getElementById('login').style.display='block';document.getElementById('logindiv').style.display='block';document.getElementById('pwddiv').style.display='none';document.getElementById('re_username').focus();}
function login_enter(e)
{if(window.event)
key=window.event.keyCode;else
key=e.which;if(key==13)
{checkrelogin();}}
function checkrelogin()
{var done=1;var reusername=document.getElementById("re_username").value;var repassword=document.getElementById("re_password").value;var email_Format=/^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i;if((reusername.search(email_Format)==-1||reusername=='')&&repassword=='')
{document.getElementById('re_username').style.border='1px solid red';document.getElementById('re_password').style.border='1px solid red';done=0;}
if(reusername.search(email_Format)==-1||reusername=='')
{document.getElementById('re_username').style.border='1px solid red';done=0;}
else
{document.getElementById('re_username').style.border='1px solid #DCD3CE';}
if(repassword=='')
{document.getElementById('re_password').style.border='1px solid red';done=0;}
else
{document.getElementById('re_password').style.border='1px solid #DCD3CE';}
if(done==1)
{checklogin('popup');}}
function checklogin(logins)
{if(logins=='popup')
{var username=document.getElementById('re_username').value;var password=document.getElementById('re_password').value;}
else
{var username=document.getElementById('username').value;var password=document.getElementById('password').value;}
password=password.replace(/&/g,'#*amp;*#');var params="username="+username+"&password="+password+"&redirect=1";if(logins=='downlogin')
{if(document.getElementById('rem_me').checked==true){var remember_me=document.getElementById('rem_me').value;}
else{var remember_me="0";}
params=params+"&rem_me="+remember_me+"&downlogin=1";}
var url=WEBTV_ROOTPATH+'includes/login_check.php';if(window.XMLHttpRequest)
{req=new XMLHttpRequest();}
else if(window.ActiveXObject)
{req=new ActiveXObject("Microsoft.XMLHTTP");}
req.open("POST",url,true);req.setRequestHeader("Content-type","application/x-www-form-urlencoded;");req.setRequestHeader("Content-length",params.length);req.setRequestHeader("Connection","close");req.onreadystatechange=callback;req.send(params);}
function callback()
{if(req.readyState==4)
{if(req.status==200)
{response=req.responseText;if(response=='success')
{if(document.getElementById('login').style.display=='block')
document.getElementById('login').style.display='none';hide_overlay();header_refresh();window.setTimeout('checkloginsuccess()',500);document.getElementById('fb_headerlogindiv').style.display='none';if(document.getElementById('fb_customheaderlogindiv'))
document.getElementById('fb_customheaderlogindiv').style.display='none';}
else if(response=='superadmin')
{window.location=WEBTV_ROOTPATH+'superadmin';}
else if(response=='previewadmin')
{window.location=WEBTV_ROOTPATH+'previewadmin';}
else if(response=='useradmin')
{window.location=WEBTV_ROOTPATH+'admin/index.php?fuseaction=dsp_web_statistics&action=webstats&language=en';}
else if(response=='directoryadmin')
{window.location=WEBTV_ROOTPATH+'directoryadmin/index.php?page=view&val=a';}
else if(response=='editor')
{window.location=WEBTV_ROOTPATH+'editor';}
if(response=='failure')
{document.getElementById('loginerror').style.display='block';window.setTimeout('closeloginerror()',1900);}}
else
{alert("There was a problem retrieving the data:\n"+req.statusText);}}}
function reloginusernamecheck()
{var reusername=document.getElementById("re_username").value;var email_Format=/^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i;if(reusername.search(email_Format)==-1||reusername=='')
{document.getElementById('re_username').style.border='1px solid red';}
else
{document.getElementById('re_username').style.border='1px solid #DCD3CE';}}
function reloginpasswordcheck()
{var repassword=document.getElementById("re_password").value;if(repassword=='')
{document.getElementById('re_password').style.border='1px solid red';}
else
{document.getElementById('re_password').style.border='1px solid #DCD3CE';}}
function closeloginerror()
{document.getElementById('loginerror').style.display='none';}
function checkloginsuccess()
{window.setTimeout("refreshPartnerVideo()",2000);window.setTimeout("refreshVideoComment()",3200);}
function refreshVideoComment()
{if(document.getElementById('mainvideo').value!='')
xmlhttpvdid(WEBTV_AJAXPATH+'videocomment.php','refreshtheVideoComment');}
function facebook_onlogin_ready(){var params="redirect=1&fb_login=1";var url=WEBTV_ROOTPATH+'includes/login_check.php';if(window.XMLHttpRequest)
{contactreq=new XMLHttpRequest();}
else if(window.ActiveXObject)
{contactreq=new ActiveXObject("Microsoft.XMLHTTP");}
contactreq.open("POST",url,true);contactreq.setRequestHeader("Content-type","application/x-www-form-urlencoded;");contactreq.setRequestHeader("Content-length",params.length);contactreq.setRequestHeader("Connection","close");contactreq.onreadystatechange=fbcheck_callback;contactreq.send(params);}
function fbcheck_callback()
{if(contactreq.readyState==4)
{if(contactreq.status==200)
{response=contactreq.responseText;if(response=='failure')
{document.getElementById("fb_container").innerHTML="&nbsp;";if(document.getElementById("user_revalidate_dialog")){document.getElementById("user_revalidate_dialog").style.display='block';}
document.getElementById('divLogin').style.height='190px';document.getElementById('fb_msg_id').style.display='block';}else if(response=='superadmin'){window.location=WEBTV_ROOTPATH+'superadmin';}
else if(response=='previewadmin')
{window.location=WEBTV_ROOTPATH+'previewadmin';}
else if(response=='useradmin')
{window.location=WEBTV_ROOTPATH+'admin/index.php?fuseaction=dsp_web_statistics&action=webstats&language=en';}
else if(response=='directoryadmin')
{window.location=WEBTV_ROOTPATH+'directoryadmin/index.php?page=view&val=a';}
else if(response=='editor')
{window.location=WEBTV_ROOTPATH+'editor';}else if(response=='success'){if(document.getElementById('fb_headerlogindiv'))
document.getElementById('fb_headerlogindiv').style.display='none';if(document.getElementById('fb_customheaderlogindiv'))
document.getElementById('fb_customheaderlogindiv').style.display='none';if(document.getElementById('login').style.display=='block')
document.getElementById('login').style.display='none';header_refresh();hide_overlay();window.setTimeout('checkloginsuccess()',500);}else if(response=='FIRST FB USER'){if(document.getElementById('login').style.display=='block')
document.getElementById('login').style.display='none';open_fb_login_container();}}
else
{alert("There was a problem retrieving the data:\n"+contactreq.statusText);}}}
function recheckforgetpassword()
{var done=1;var reusername1=document.getElementById("re_username1").value;var email_Format=/^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i;if(reusername1.search(email_Format)==-1||reusername1=='')
{document.getElementById("re_username1").style.border='1px solid red';done=0;}
else
{document.getElementById("re_username1").style.border='1px solid #DCD3CE';}}
function checkforgetpassword()
{var done=1;var reusername1=document.getElementById("re_username1").value;var email_Format=/^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i;if(reusername1.search(email_Format)==-1||reusername1=='')
{document.getElementById("re_username1").style.border='1px solid red';done=0;}
else
{document.getElementById("re_username1").style.border='1px solid #DCD3CE';}
if(done==1)
{javascript:xmlhttpvdidlogin(WEBTV_AJAXPATH+'login.php','sendpassword')}}
function xmlhttpvdidlogin(strURL,a){document.getElementById('loader_login').style.display='block';var xmlHttpReqLogin=false;var self=this;if(window.XMLHttpRequest){self.xmlHttpReqLogin=new XMLHttpRequest();}
else if(window.ActiveXObject){self.xmlHttpReqLogin=new ActiveXObject("Microsoft.XMLHTTP");}
self.xmlHttpReqLogin.open('POST',strURL,true);self.xmlHttpReqLogin.setRequestHeader('Content-Type','application/x-www-form-urlencoded');self.xmlHttpReqLogin.onreadystatechange=function(){if(self.xmlHttpReqLogin.readyState==4){updatenextvdidlogin(self.xmlHttpReqLogin.responseText,a);document.getElementById('loader_login').style.display='none';}}
self.xmlHttpReqLogin.send(getquerynextvdidlogin(a));}
function getquerynextvdidlogin(a)
{if(a=='sendlogins')
{var sendlogins=document.getElementById('re_username').value;var repassword=document.getElementById('re_password').value;qstr='redirect='+escape(sendlogins)+"|"+escape(repassword);}
if(a=='sendpassword')
{var sendlogins=document.getElementById('re_username1').value;qstr='sendpassword='+escape(sendlogins);}
return qstr;}
function updatenextvdidlogin(str6,a){document.getElementById("login").innerHTML=str6;if(a!='sendpassword')
window.setTimeout('checkloginsuccess()',500);}
function showstyles(divid)
{if(divid==undefined){divid='';}
if(document.getElementById('showstyle'+divid).value==1)
{document.getElementById("styleSection"+divid).style.display='block'}
else
{document.getElementById("styleSection"+divid).style.display='none'}}
function closeallpopup(e){var target=(e&&e.target)||(event&&event.srcElement);if("button"==target.type||"A"==target.tagName||"TEXTAREA"==target.tagName||"IMG"==target.tagName){}else{if(document.getElementById('termandcondition')){var obj8=document.getElementById("termandcondition");checkParent(target)?obj8.style.display='none':null;}
if(document.getElementById('display_xml')){var obj9=document.getElementById("display_xml");checkParent(target)?obj9.style.display='none':null;}
if(document.getElementById('search_close_link')){var obj9=document.getElementById("search_close_link");checkParent(target)?obj9.style.display='none':null;}
if(document.getElementById('closesearch')){var obj10=document.getElementById("closesearch");}
if(document.getElementById('search_text')){var obj11=document.getElementById("search_text");}}}
function checkParent(t){while(t.parentNode){if(t==document.getElementById('contactus')||t==document.getElementById('login')||t==document.getElementById('notdev')||t==document.getElementById('coming_soon')||t==document.getElementById('termandcondition')||t==document.getElementById('display_xml')||t==document.getElementById('closesearch')||t==document.getElementById('search_close_link')){return false}
t=t.parentNode}
return true}
function xmlhttptextcompagination(strURL,a,b){document.getElementById('loader_comment').style.display='block';var xmlHttpReq3=false;var self=this;if(window.XMLHttpRequest){self.xmlHttpReq3=new XMLHttpRequest();}
else if(window.ActiveXObject){self.xmlHttpReq3=new ActiveXObject("Microsoft.XMLHTTP");}
self.xmlHttpReq3.open('POST',strURL,true);self.xmlHttpReq3.setRequestHeader('Content-Type','application/x-www-form-urlencoded');self.xmlHttpReq3.onreadystatechange=function(){if(self.xmlHttpReq3.readyState==4){updatenextextcompagination(self.xmlHttpReq3.responseText);document.getElementById('loader_comment').style.display='none';}}
self.xmlHttpReq3.send(getquerynextextcompagination(a,b));}
function getquerynextextcompagination(a,b)
{if(a=='pagination')
{var mid=document.getElementById('mainvideo').value;var ctype=document.getElementById('ctype').value;qstr='pagination='+escape(mid)+"|"+escape(b)+"|"+escape(ctype);}
if(a=='removecomment')
{var mid=document.getElementById('mainvideo').value;var ctype=document.getElementById('ctype').value;qstr='removecomment='+escape(mid)+"|"+escape(b)+"|"+escape(ctype);}
if(a=='removecomment_sub')
{var mid=document.getElementById('mainvideo').value;var ctype=document.getElementById('ctype').value;qstr='removecomment_sub='+escape(mid)+"|"+escape(b)+"|"+escape(ctype);}
return qstr;}
function updatenextextcompagination(str1){document.getElementById("comments").innerHTML=str1;}
function showHideDivision(imgObj,divId){if(document.getElementById(divId).style.display=='block'){document.getElementById(divId).style.display='none';imgObj.src=MP_ROOTPATH+'signin/images/plus.gif';}else{document.getElementById(divId).style.display='block';imgObj.src=MP_ROOTPATH+'signin/images/minus.gif';}}
function callToMetriwebTag(type)
{var mode=document.getElementById('webmode').value;if(mode=='live')
{var language=document.getElementById('sel_lan').value;if(type==1)
{var parameter1='webtv';}
if(type==2)
{var videoid=document.getElementById('mainvideo').value;if(document.getElementById('ispartnervideo').value==0)
var parameter1='webtv/'+videoid;if(document.getElementById('ispartnervideo').value==1)
parameter1='webtv/partner/'+videoid;}
if(type==3)
{var sel_menu_id=document.getElementById('sel_menu_id').value;var parameter1='webtv/'+sel_menu_id;}
metriwebTag("moodio",parameter1,language);}}
function aftervideorecordersave(parameter)
{if(parameter=='video')
{document.getElementById('ctype').value='1';javascript:xmlhttptextcom(WEBTV_AJAXPATH+'videocomment.php','commenttype');}
if(parameter=='webtv')
{document.getElementById('ctype1').value='2';javascript:xmlhttpvdpwc(WEBTV_AJAXPATH+'webtv_comment_original.php','commenttype','','','');}}
function getVideoList(boxType){var videoList='';var vid='.latestVideos';if(boxType=='rPlaylist'){return $('#playlistids').val();}
var videos=new Array();var count=0;$('.latestVideos').each(function(){videos[count]=$(this).attr('media');count++;});if(videos.length>0){videoList=videos.join('*');}
return videoList;}
function webtvSelector(link,selected){switch(link){case'latestVideoSelector':$('.moodioSeriesSelector').hide();$('.musicStyleSelector').hide();$('#moodioSeriesSelector').css('backgroundColor','#000000');$('#musicStyleSelector').css('backgroundColor','#000000');$('#newsSelector').css('backgroundColor','#000000');$('#latestVideoSelector').css('backgroundColor','#15A1C6');$('#newsSelector').removeClass('webTvtopbigtabAnchorSelected');$('#newsSelector').addClass('webTvtopbigtabAnchor');xmlhttpvd_latestvideos(WEBTV_AJAXPATH+'latestvideos.php','sortingtype','m.publish_time','thumb','','latestVideos','','','','','','0','1','');swapNews('other');break;case'moodioSeriesSelector':$('.moodioSeriesSelector').show();$('.musicStyleSelector').hide();$('#latestVideoSelector').css('backgroundColor','#000000');$('#musicStyleSelector').css('backgroundColor','#000000');$('#newsSelector').css('backgroundColor','#000000');$('#moodioSeriesSelector').css('backgroundColor','#15A1C6');$('#newsSelector').removeClass('webTvtopbigtabAnchorSelected');$('#newsSelector').addClass('webTvtopbigtabAnchor');moodioSeries($('#moodioSeriesNow').val());swapNews('other');break;case'musicStyleSelector':$('.moodioSeriesSelector').hide();$('.musicStyleSelector').show();$('#latestVideoSelector').css('backgroundColor','#000000');$('#moodioSeriesSelector').css('backgroundColor','#000000');$('#newsSelector').css('backgroundColor','#000000');$('#musicStyleSelector').css('backgroundColor','#15A1C6');$('#newsSelector').removeClass('webTvtopbigtabAnchorSelected');$('#newsSelector').addClass('webTvtopbigtabAnchor');musicStyle($('#musicStyleNow').val());swapNews('other');break;case'newsSelector':$('.moodioSeriesSelector').hide();$('.musicStyleSelector').hide();$('#latestVideoSelector').css('backgroundColor','#000000');$('#moodioSeriesSelector').css('backgroundColor','#000000');$('#musicStyleSelector').css('backgroundColor','#000000');$('#newsSelector').css('backgroundColor','#15A1C6');$('#newsSelector').removeClass('webTvtopbigtabAnchor');$('#newsSelector').addClass('webTvtopbigtabAnchorSelected');swapNews('news');break;}}
function swapNews(type){var swapStatus=$('#swapStatus').val();if(swapStatus==0&&type=='news'){$('#swapStatus').attr('value',1);var swapBox1HTML=$("#swapBox1").html();$('#swapBox2').css('marginTop',0);$("#swapBox1").html('');$("#swapBox3").html(swapBox1HTML);}
if(swapStatus==1&&type=='other'){$('#swapStatus').attr('value',0);$('#newsSelector').css('backgroundColor','#000000');$('#latestVideoSelector').css('backgroundColor','#15A1C6');$('#newsSelector').removeClass('webTvtopbigtabAnchorSelected');$('#newsSelector').addClass('webTvtopbigtabAnchor');var swapBox3HTML=$("#swapBox3").html();$('#swapBox2').css('marginTop','15px');$("#swapBox3").html('');$("#swapBox1").html(swapBox3HTML);}}
function moodioSeries(category){$('.smallTabsSelected').removeClass('smallTabsSelected').addClass('smallTabsAnchor');$('#moodioSeries'+category).addClass('smallTabsSelected');$('#moodioSeriesNow').val(category);xmlhttpvd_latestvideos(WEBTV_AJAXPATH+'latestvideos.php','firstview','medias.publish_time','thumb',category,'moodioSeries','','','','','','0','','latestvideos_search_results');}
function musicStyle(style){$('.smallTabsSelected').removeClass('smallTabsSelected').addClass('smallTabsAnchor');$('#musicStyleNow').val(style);$('#musicStyle'+style).addClass('smallTabsSelected');xmlhttpvd_latestvideos(WEBTV_AJAXPATH+'latestvideos.php','firstview','medias.publish_time','thumb',style,'musicStyle','','','','','','0','','latestvideos_search_results');}
function closeallnewsitems(thisid)
{var news_counter_n=document.getElementById('news_counter_n').value;var done=0;for(var i=1;i<=news_counter_n;i++)
{if(i!=thisid)
{if(document.getElementById('expandview_news1_'+i).style.display=='none')
{document.getElementById('expandview_news1_'+i).style.display='block';done=1;}
if(document.getElementById('expandview_news_'+i).style.display=='block')
{document.getElementById('expandview_news_'+i).style.display='none';}}
else
{}}}
function hideheight()
{var height=document.getElementById('container1_news').offsetHeight;if(parseInt(height)>384)
var newheight=parseInt(height)-188;document.getElementById('container1_news').style.height=newheight+"px";}
function increaseheight()
{var height=document.getElementById('container1_news').offsetHeight;var newheight=parseInt(height);document.getElementById('container1_news').style.height=newheight+"px";}
function showalltext1x(xx,xxxx,xxx)
{var backup=document.getElementById(xx).innerHTML;document.getElementById(xx).innerHTML=document.getElementById(xxxx).innerHTML;if(document.getElementById(xxxx))
document.getElementById(xxxx).innerHTML=backup;if(document.getElementById(xxx).style.display=='block')
document.getElementById(xxx).style.display='none';else
document.getElementById(xxx).style.display='block';}
function checkheight(tableid)
{if(document.getElementById('xx'+tableid))
var newheight=parseInt(document.getElementById('xx'+tableid).offsetHeight);newheight=newheight-148;var con_height=document.getElementById('container1_news').style.height;con_height=con_height.split("px");con_height=con_height[0];con_height=parseInt(con_height)+newheight;document.getElementById('container1_news').style.height=con_height+"px";}
function checkheight1(tableid)
{if(document.getElementById('xx'+tableid))
var newheight=parseInt(document.getElementById('xx'+tableid).offsetHeight);newheight=newheight-148;var con_height=document.getElementById('container1_news').style.height;con_height=con_height.split("px");con_height=con_height[0];con_height=parseInt(con_height)-newheight;document.getElementById('container1_news').style.height=con_height+"px";}
function videoname_click(name)
{if(stripslashes(name)!='')
document.getElementById('videoname_click').innerHTML=stripslashes(name);}
function checkvideolistcollaps_news()
{var done=0;if(document.getElementById('BoxContent_news').style.display=='block')
{done=1;document.getElementById('BoxContent_news').style.display='none';document.getElementById('BoxContent_news_img').src=WEBTV_ROOTPATH+'signin/images/plus.gif';}
if(document.getElementById('BoxContent_news').style.display=='none'&&done==0)
{document.getElementById('BoxContent_news').style.display='block';document.getElementById('BoxContent_news_img').src=WEBTV_ROOTPATH+'signin/images/minus.gif';}}
function refreshPartnerVideo()
{xmlhttpPartnerVideo(WEBTV_AJAXPATH+'partnerzone_area.php');}
function xmlhttpPartnerVideo(strURL){document.getElementById('loader_comment').style.display='block';var xmlHttpReqPBox=false;var self=this;if(window.XMLHttpRequest){self.xmlHttpReqPBox=new XMLHttpRequest();}
else if(window.ActiveXObject){self.xmlHttpReqPBox=new ActiveXObject("Microsoft.XMLHTTP");}
self.xmlHttpReqPBox.open('POST',strURL,true);self.xmlHttpReqPBox.setRequestHeader('Content-Type','application/x-www-form-urlencoded');self.xmlHttpReqPBox.onreadystatechange=function(){if(self.xmlHttpReqPBox.readyState==4){updatePartnerVideo(self.xmlHttpReqPBox.responseText);}}
self.xmlHttpReqPBox.send("refresh=1");}
function updatePartnerVideo(str_partnerZone){header_setAjaxContent("partnerZone",str_partnerZone);document.getElementById("partnerZone").style.display='block';}
function checktextarea(textvalue)
{if(textvalue==document.getElementById('partner_msg').value)
{document.getElementById('partner_msg').value='';}}
function checktextarea1(textvalue)
{if(document.getElementById('partner_msg').value=='')
{document.getElementById('partner_msg').value=textvalue;}}
function checktoplay_partnerVideo()
{if(document.getElementById("RedirectFromSiteMapVideo").value==0){if(document.getElementById("isloginpartner").value==1&&document.getElementById('PV_partnervideo'))
{document.getElementById('ispartnervideo').value='1';var partnervideo=document.getElementById('PV_playedvid').value;playpartnervideo(partnervideo);var PV_videoname_click=document.getElementById('PV_videoname_click').value;if(document.getElementById('latestvideos_search_results')){document.getElementById('latestvideos_search_results').style.display='none';}}}}
function playpartnervideo(vid)
{var url=document.getElementById('PV_partnervideo').value;var image=document.getElementById('PV_videoImage').value;var videoTitle=document.getElementById('PV_videoname_click').value;streamLoad(url,image,videoTitle,vid,'moodio','0','1','moodio',1);}
function checkis_partner_msg(des)
{if(document.getElementById('partner_msg').value==''||document.getElementById('partner_msg').value==des)
{var mmsg=document.getElementById('des_partner_no_des').value;document.getElementById('partner_msg').style.border="2px solid red";document.getElementById('partner_msg').focus();}
else
{document.getElementById('partner_msg').style.border="0px solid white";xmlhttpvdpartner(WEBTV_AJAXPATH+'partnerzone_area.php','entertxt','c')
document.getElementById('partner_msg').value="";}}