//This code is optimized by the w3compiler from Port80 Software:  BUY w3compiler to remove this comment from your optimized files at www.w3compiler.com!
function selectYear(){$j('#issue-volume').hide();}function selectSearchType(value){if(value=='comjagat'){$j("#google_search").hide();$j("#comjagat_search").show();}else{$j("#google_search").show();$j("#comjagat_search").hide();}}function setLanguage(language){$j.ajax({type:"POST",url:rootPath1+"/home/comjagat/setLanguage",data:"language="+language,success:function(serverResponse){location.href=serverResponse}});}function sendMemberRequest(userID){$j.ajax({type:"POST",url:rootPath1+"/general/profile/sendMemberRequest",data:"userID="+userID,success:function(serverResponse){$j("#send-status").html(serverResponse);}});}function selectIssueVolume(){var publishedYear=$j('#publishedYear').val();var publishedMonth=$j('#publishedMonth').val();$j.ajax({type:"POST",url:rootPath1+"/home/articles/getIssueVolume",data:"publishedYear="+publishedYear+"&publishedMonth="+publishedMonth,success:function(serverResponse){$j('#issue-volume').html(serverResponse);$j('#issue-volume').show();}});}function selectIssueYearMonth(){var issueID=$j('#issueID').val();$j.ajax({type:"POST",url:rootPath1+"/home/articles/getIssueYearMonth",data:"issueID="+issueID,success:function(serverResponse){$j('#year-month').html(serverResponse);$j('#year-month').show();}});}function showInternationalNews(newsLocality){if(newsLocality=='International'){$j('.international-news').show();$j('.local-news').hide();$j('.comjagat-news').hide();$j(".International").attr({style:"background-color:#6495ED;float:right;"});$j(".Local").attr({style:"border:1px solid #CCCCCC;float:right;"});$j(".Comjagat").attr({style:"border:1px solid #CCCCCC;float:right;"});}else if(newsLocality=='Local'){$j('.local-news').show();$j('.international-news').hide();$j('.comjagat-news').hide();$j(".Local").attr({style:"background-color:#6495ED;float:right;"});$j(".International").attr({style:"border:1px solid #CCCCCC;float:right;"});$j(".Comjagat").attr({style:"border:1px solid #CCCCCC;float:right;"});}else{$j('.comjagat-news').show();$j('.local-news').hide();$j('.international-news').hide();$j(".Comjagat").attr({style:"background-color:#6495ED;float:right;"});$j(".Local").attr({style:"border:1px solid #CCCCCC;float:right;"});$j(".International").attr({style:"border:1px solid #CCCCCC;float:right;"});}}function showAdvertisementPage(link,id){$j.ajax({type:"POST",url:rootPath1+"admin/advertisement/countTotalClick",data:"link="+link+"&id="+id,success:function(serverResponse){if(serverResponse=='Yes'){open('http://'+link);}}});}function addRating(value,id,fieldName,dbTable,showField){$j.ajax({type:"POST",url:rootPath1+"/admin/admin/addRating",data:"value="+value+"&id="+id+"&fieldName="+fieldName+"&dbTable="+dbTable,success:function(serverResponse){$j("#"+showField+"").html(serverResponse);$j(".comment-extra").hide();}});}function selectLike(value,id,fieldName,dbTable){$j.ajax({type:"POST",url:rootPath1+"/admin/admin/addLikeStatus",data:"value="+value+"&id="+id+"&fieldName="+fieldName+"&dbTable="+dbTable,success:function(serverResponse){$j("#like_this").html(serverResponse);$j("#like-dislike").hide();}});}function selectDislike(value,id,fieldName,dbTable){$j.ajax({type:"POST",url:rootPath1+"/admin/admin/addDislikeStatus",data:"value="+value+"&id="+id+"&fieldName="+fieldName+"&dbTable="+dbTable,success:function(serverResponse){$j("#dislike_this").html(serverResponse);$j("#like-dislike").hide();}});}function showSerialPost(){$j("#serial-post").show();$j("#collected-post").hide();}function showCollectedPost(){$j("#collected-post").show();$j("#serial-post").hide();}function showSmsSystem(){var imgUrl=basePath+'public/images/web_icon.png';var newImage="<a href='javascript:void(0)' onclick='showWebSystem();'><img src='"+imgUrl+"'></a>";$j("#quiz-style").html(newImage);$j("#sms-system").show();$j("#web-system").hide();}function showWebSystem(){var imgUrl=basePath+'public/images/sms5.jpg';var newImage="<a href='javascript:void(0)' onclick='showSmsSystem();'><img src='"+imgUrl+"'></a>";$j("#quiz-style").html(newImage);$j("#web-system").show();$j("#sms-system").hide();}
