function loadingRequestUsername(loader){var el=document.getElementById(loader);el.innerHTML='<span class="smallText textLeft"><img style="position:relative;top:3px;" src="/images/ajaxLoadingSP.gif"> Checking username...</span>';}
function completedRequestUsername(loader){new Effect.Appear($(loader));}
function checkUsername(){if($F('username').length>=3){var url='/ajax_check_username';var ajax=new Ajax.Updater({success:'loadingAjaxDiv'},url,{method:'post',parameters:{text:$F('username')},onCreate:function(){loadingRequestUsername('loadingAjaxDiv');},onComplete:function(){completedRequestUsername('loadingAjaxDiv');}});}}
function loadingRequestFade(loader){Element.hide($(loader));new Effect.Appear($(loader));}
function completedRequestAppear(loader){Element.hide($(loader));new Effect.Appear($(loader));}
function loadingImgS(loader){var el=document.getElementById(loader);el.innerHTML='<span><img style="position:relative;top:3px;" src="/images/ajaxLoading.gif"> Please wait...</span>';}
function loadingImgF(loader){new Effect.Appear($(loader));}
function friends(type,id){var url='/ajax_friends';var opt={method:'post',parameters:{userid:id,type:type},onSuccess:function(t){Effect.Fade('p_friends',{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('p_friends',{duration:0.5});document.getElementById('p_friends').innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('p_friends').innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function addAnotherLine(){var ni=document.getElementById('quoteContainer');var numi=document.getElementById('theValue');var num=(document.getElementById('theValue').value-1)+2;numi.value=num;var tabindex1=num;var tabindex2=num+1;var newdiv=document.createElement('div');var divIdName='quoteLine'+num;newdiv.setAttribute('id',divIdName);newdiv.style.cssText='margin-bottom: 7px;';newdiv.innerHTML='<div class="quoteItemBorder">'+'<div class="addQuoteName">'+'<b>Character Name</b><br />'+'<input type="hidden" name="charListCont[]" id="charList'+divIdName+'" value="" />'+'<select class="formItemsDD" tabindex="'+tabindex1+'" multiple="multiple" name="qCharacter[]" id="ddChar'+divIdName+'" size="3" style="width: 190px;">'+'<option disabled="disabled"></option>'+'</select>'+'<a class="quoteLineButton" onclick="removeOption(\'ddChar'+divIdName+'\', \'charList'+divIdName+'\');">Remove Character</a>'+'<a class="quoteLineButton" onclick="showCharSetupDiv(\'quoteCharacterDiv'+divIdName+'\', \''+divIdName+'\');">Select Character</a>'+'</div>'+'<div class="addQuoteText">'+'<div id="quoteCharacterDiv'+divIdName+'" class="quoteCharacterDiv" style="display: none;">'+'<div class="charWindowContainer" id="charWindow'+divIdName+'"></div>'+'</div>'+'<b>Quote</b><br />'+'<textarea class="formItems" style="width: 98%; height: 60px;" cols="0" rows="3" tabindex="'+tabindex2+'" name="qQuoteText[]"></textarea>'+'<div class="removeQuoteBox"><a href="#" class="quoteLineButton" onclick="removeDivElement(\''+divIdName+'\')">Remove Line &raquo;</a></div>'+'</div>'+'</div>';newdiv.style.display='none';ni.appendChild(newdiv);Effect.BlindDown(newdiv,{duration:0.5});}
function addActionLine(){var ni=document.getElementById('quoteContainer');var numi=document.getElementById('theValue');var num=(document.getElementById('theValue').value-1)+2;numi.value=num;var newdiv=document.createElement('div');var divIdName='quoteLine'+num;newdiv.setAttribute('id',divIdName);newdiv.innerHTML='<div class="quoteItemBorderAction"><div class="addQuoteAction">'+'<b>Action</b><br /><input type="text" name="charListCont[]" value="++tmqaction++" style="display: none;" /><input class="formItems" type="text" style="width: 99%;" name="qQuoteText[]" /><br /><a class="quoteLineButton" onclick="removeDivElement(\''+divIdName+'\');">Remove Action</a>'+'</div></div>';newdiv.style.display='none';ni.appendChild(newdiv);Effect.BlindDown(newdiv,{duration:0.5});}
function removeElement(divNum){var d=document.getElementById('quoteContainer');var olddiv=document.getElementById(divNum);Effect.BlindUp(d.removeChild(olddiv),{duration:0.5});}
function removeDivElement(divNum){Effect.BlindUp(divNum,{duration:0.5});window.setTimeout('removeElement(\''+divNum+'\')',500);}
function showHideCustomInfo(divID){if(document.getElementById(divID).style.display=='none'){Effect.BlindDown(divID,{afterFinish:function appearGenreList(obj){Effect.Appear('selGenres');Effect.Appear('availGenres');}});}
else{Effect.BlindUp(divID,{beforeStart:function fadeGenreList(obj){Effect.Fade('selGenres',{duration:0.1});Effect.Fade('availGenres',{duration:0.1});}});}}
function showMovieList(text,resultDiv){if(document.getElementById('lSearchTitle').value.length>1){new Ajax.Updater(resultDiv,'/ajax_search_movie_titles',{parameters:{searchText:text}});}}
function showMovieListEpi(text,resultDiv){if(document.getElementById('lSearchTitle').value.length>1){new Ajax.Updater(resultDiv,'/ajax_search_movie_titles_series',{parameters:{searchText:text}});}}
function disableAutoComplete(div){document.getElementById(div).setAttribute('autocomplete','off');}
var charWindowID;function showCharSetupDiv(charDiv,selDiv){var boz=document.getElementById("blackOutZoneFalse");var dlg=document.getElementById(charDiv);charWindowID=selDiv;boz.id='blackOutZone';var boHeight=document.getElementById("blackOutZoneContainer").offsetHeight;var boWidth=document.getElementById("blackOutZoneContainer").offsetWidth;boz.style.height=boHeight;boz.style.width=boWidth;Effect.Grow(boz,{duration:0.5,afterFinish:function appearCharacterDiv(obj){Effect.Appear(dlg,{duration:0.3,afterFinish:showCharWindowDiv});}});}
function showCharWindowDiv(obj){var movieID=document.getElementById('movieID').value;var quoteID=document.getElementById('quoteID');var HTMLStr='';if(isInteger(movieID)){HTMLStr='<div class="charWindowAvailable">'+'<b>Select Character</b><br />'+'<span class="tableOptionalText">Hold CTRL to select more then one!</span><br />'+'<div id="charDDSpace'+charWindowID+'"><div id="loadingContentAjaxDiv"><span class="smallText textLeft"><img style="position:relative;top:3px;" src="/images/ajaxLoadingSP.gif"> Please wait...</span></div></div>'+'<a class="quoteLineButton" onclick="copyOptions(\'charList'+charWindowID+'\', \'qSelChars'+charWindowID+'\', \'ddChar'+charWindowID+'\'); hideCharSetupDiv(\'quoteCharacterDiv'+charWindowID+'\');">&laquo; Insert Character</a>'+'</div>';if(quoteID==null){HTMLStr+='<div class="textLeft charWindowAddNew">'+'<b>Add New Character</b><br />'+'<div id="statusAddChar"><div id="addingNewCharAjaxDiv"></div></div>'+'<div class="textLeft"><input type="text" name="newCharacter'+charWindowID+'" id="newCharacter'+charWindowID+'" style="width: 180px;" value="" class="formItems" />'+'<a class="quoteLineButton" onclick="addNewCharacter('+movieID+'); document.getElementById(\'newCharacter'+charWindowID+'\').value = \'\'; document.getElementById(\'statusAddChar\').innerHTML = \'Please wait...\';">Add Character</a><br /></div>'+'<div style="text-align: right;"><a style="cursor: pointer;" onclick="hideCharSetupDiv(\'quoteCharacterDiv'+charWindowID+'\');"><b>[Close]</b></a></div>'+'</div>';}
else{HTMLStr+='<div class="textLeft charWindowAddNew">'+'<div style="text-align: left;"><a style="cursor: pointer;" onclick="hideCharSetupDiv(\'quoteCharacterDiv'+charWindowID+'\');"><b>[Close]</b></a></div>'+'</div>';}
document.getElementById('charWindow'+charWindowID).innerHTML=HTMLStr;updateCharList(movieID);}}
function copyOptions(hiddenID,source,destination){var hiddenIDField=document.getElementById(hiddenID);var from=document.getElementById(source);var to=document.getElementById(destination);var hiddenStrTmp='';var itemExist=false;if(from.options.length>0){for(var i=0;i<from.options.length;i++){itemExist=false;if(from.options[i].selected==true){for(var l=0;l<to.options.length;l++){if(to.options[l].value==""){to.remove(l);}
if(to.options.length>0){if(from.options[i].value==to.options[l].value){itemExist=true;break;}}}
if(itemExist==false){to.options.add(new Option(from.options[i].text,from.options[i].value));if(hiddenIDField.value.length==0){hiddenIDField.value=from.options[i].value;}
else{hiddenStrTmp='';hiddenStrTmp=hiddenIDField.value;hiddenIDField.value=hiddenStrTmp+','+from.options[i].value;}}}}}}
function removeOption(selectedItem,hiddenID){var i;var hiddenIDField=document.getElementById(hiddenID);var countInc=0;var hiddenStrTmp='';for(i=document.getElementById(selectedItem).options.length-1;i>=0;i--){if(document.getElementById(selectedItem).options[i].selected){document.getElementById(selectedItem).remove(i);}
else if(countInc==0){hiddenStrTmp+=document.getElementById(selectedItem).options[i].value;countInc=countInc+1;}
else{hiddenStrTmp+=','+document.getElementById(selectedItem).options[i].value;}}
hiddenIDField.value=hiddenStrTmp;}
function updateCharList(movieID){var opt={method:'post',parameters:{id:movieID,charDiv:charWindowID},onSuccess:function(t){document.getElementById('charDDSpace'+charWindowID).innerHTML=t.responseText;},onFailure:function(t){document.getElementById('charDDSpace'+charWindowID).innerHTML='<span class="tblOptText"><select style="display: none;" name="qSelChars'+charWindowID+'[]" id="qSelChars'+charWindowID+'"></select><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contact us with the error line!</span>';}}
new Ajax.Request('/ajax_load_characters',opt);}
function addNewCharacter(movieID){var charName=document.getElementById('newCharacter'+charWindowID).value;var url='/ajax_add_new_character';var opt={method:'post',parameters:{id:movieID,name:charName},onSuccess:function(t){document.getElementById('statusAddChar').innerHTML='<span class="tblOptText"><b>'+t.responseText+'</b></span>';updateCharList(movieID);},onFailure:function(t){document.getElementById('statusAddChar').innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function hideCharSetupDiv(el){var boz=document.getElementById('blackOutZone');var dlg=document.getElementById(el);Effect.Fade(dlg,{duration:0.3,afterFinish:function hideBlackoutZoneC(obj){Effect.Shrink(boz,{duration:0.5,afterFinish:function hideBlackoutZoneC(obj){boz.id='blackOutZoneFalse';}})}});}
function pointUp(qID){var url='/ajax_point_up';var opt={method:'post',parameters:{id:qID},onSuccess:function(t){Effect.Fade('qVoteB'+qID,{duration:0.2,afterFinish:function showVBAT(obj){Effect.Appear('qVoteB'+qID,{duration:0.2});document.getElementById('qVoteB'+qID).innerHTML='<img src="/images/pointUpD.png" alt="Already Voted!" title="Already Voted!" /><img src="/images/pointDownD.png" alt="Already Voted!" title="Already Voted!" />';}});Effect.Fade('qVoteText'+qID,{duration:0.2,afterFinish:function showVBAT(obj){Effect.Appear('qVoteText'+qID,{duration:0.2});document.getElementById('qVoteText'+qID).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('qVoteB'+qID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function pointDown(qID){var url='/ajax_point_down';var opt={method:'post',parameters:{id:qID},onSuccess:function(t){Effect.Fade('qVoteB'+qID,{duration:0.2,afterFinish:function showVBAT(obj){Effect.Appear('qVoteB'+qID,{duration:0.2});document.getElementById('qVoteB'+qID).innerHTML='<img src="/images/pointUpD.png" alt="Already Voted!" title="Already Voted!" /><img src="/images/pointDownD.png" alt="Already Voted!" title="Already Voted!" />';}});Effect.Fade('qVoteText'+qID,{duration:0.2,afterFinish:function showVBAT(obj){Effect.Appear('qVoteText'+qID,{duration:0.2});document.getElementById('qVoteText'+qID).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('qVoteB'+qID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
var qjDivID=0;function quoteJoin(){if(qjDivID==0){window.location.hash='#joinMark';Effect.BlindDown('pJoinDiv');}
qjDivID=1;}
function quoteJoinClose(){Effect.BlindUp('pJoinDiv');qjDivID=0;}
function addQuoteToFav(qID){var url='/ajax_favorites_add';var opt={method:'post',parameters:{id:qID},onSuccess:function(t){Effect.Fade('qFav'+qID,{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('qFav'+qID,{duration:0.5});document.getElementById('qFav'+qID).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('qFav'+qID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function removeQuoteFromFav(qID){var url='/ajax_favorites_remove';var opt={method:'post',parameters:{id:qID},onSuccess:function(t){Effect.Fade('qFav'+qID,{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('qFav'+qID,{duration:0.5});document.getElementById('qFav'+qID).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('qFav'+qID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function expandQuote(qID){Effect.BlindDown('qExp'+qID,{duration:0.3,afterFinish:function showConLink(obj){document.getElementById('qExpLink'+qID).innerHTML='<div class="expandQuoteC"><a onclick="contractQuote(\''+qID+'\');" class="qContract">Contract Quote</a></div>';}});}
function contractQuote(qID){Effect.BlindUp('qExp'+qID,{duration:0.3,afterFinish:function showConLink(obj){document.getElementById('qExpLink'+qID).innerHTML='<div class="expandQuoteE"><a onclick="expandQuote(\''+qID+'\');" class="qExpand">Expand Quote</a></div>';}});}
function removeQuoteFromFavP(qID){var url='/ajax_favorites_remove';var opt={method:'post',parameters:{id:qID},onSuccess:function(t){Effect.BlindUp('qCont'+qID,{duration:0.5});},onFailure:function(t){document.getElementById('qFav'+qID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function addMovieToFav(mID,sc){var url='/ajax_fav_movie_add';var opt={method:'post',parameters:{id:mID,sc:sc},onSuccess:function(t){Effect.Fade('mFav'+mID,{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('mFav'+mID,{duration:0.5});document.getElementById('mFav'+mID).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('mID'+qID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function removeMovieFromFav(mID,sc){var url='/ajax_fav_movie_remove';var opt={method:'post',parameters:{id:mID,sc:sc},onSuccess:function(t){Effect.Fade('mFav'+mID,{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('mFav'+mID,{duration:0.5});document.getElementById('mFav'+mID).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('mFav'+mID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function removeTitleFromFavP(mID,sc){var url='/ajax_fav_movie_remove';var opt={method:'post',parameters:{id:mID,sc:sc},onSuccess:function(t){Effect.BlindUp('pTitleCont'+mID,{duration:0.5});},onFailure:function(t){document.getElementById('mFav'+mID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function rateTitle(score,mid){var url='/ajax_rate_title';var opt={method:'post',parameters:{score:score,mID:mid},onSuccess:function(t){Effect.Fade('voteUpdate',{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('voteUpdate',{duration:0.5});document.getElementById('voteUpdate').innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('voteUpdate').innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function commentRate(type,id){var url='';if(type=='down'){url='/ajax_rate_comment_down';}
else{url='/ajax_rate_comment_up';}
var opt={method:'post',parameters:{cid:id},onSuccess:function(t){Effect.Fade('csUpdate'+id,{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('csUpdate'+id,{duration:0.5});document.getElementById('csUpdate'+id).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('csUpdate'+id).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function postTextShoutbox(id){var url='/ajax_post_shoutbox';var text=document.getElementById('sbInputF').value;var opt={method:'post',parameters:{uid:id,msg:text},onCreate:function(){loadingImgS('p_shoutBoxText');},onComplete:function(){loadingImgF('p_shoutBoxText');},onSuccess:function(t){Effect.Fade('p_shoutBoxText',{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('p_shoutBoxText',{duration:0.5});document.getElementById('p_shoutBoxText').innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('p_shoutBoxText').innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
document.getElementById('sbInputF').value='';new Ajax.Request(url,opt);clearTimeout(sbRef);sbRef=setTimeout("refreshShoutbox("+id+")",30000);}
function refreshShoutbox(id){var url='/ajax_refresh_shoutbox';var opt={method:'post',parameters:{uid:id},onCreate:function(){loadingImgS('p_shoutBoxText');},onComplete:function(){loadingImgF('p_shoutBoxText');},onSuccess:function(t){Effect.Fade('p_shoutBoxText',{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('p_shoutBoxText',{duration:0.5});document.getElementById('p_shoutBoxText').innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('p_shoutBoxText').innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);clearTimeout(sbRef);sbRef=setTimeout("refreshShoutbox("+id+")",30000);}
function removeCommentShoutBox(pid,uid){if(pid==0)
var agree=confirm("Are you sure that you want to clear your shoutbox?\n\nWarning: This action cannot be undone!");else
var agree=confirm("Are you sure that you want to delete selected shout?\n\nWarning: This action cannot be undone!");if(agree){var url='/ajax_clear_shoutbox';var opt={method:'post',parameters:{pid:pid,uid:uid},onCreate:function(){loadingImgS('p_shoutBoxText');},onComplete:function(){loadingImgF('p_shoutBoxText');},onSuccess:function(t){Effect.Fade('p_shoutBoxText',{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('p_shoutBoxText',{duration:0.5});document.getElementById('p_shoutBoxText').innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('p_shoutBoxText').innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);clearTimeout(sbRef);sbRef=setTimeout("refreshShoutbox("+uid+")",30000);}
else
return false;}
function changeRSTab(lid){var url='';if(lid=='titles'){document.getElementById('rsATitles').className='rsTabLA';document.getElementById('rsSTitles').className='rsTabSA';document.getElementById('rsAQuote').className='mainItemLink';document.getElementById('rsSQuote').className='';document.getElementById('rsATopics').className='mainItemLink';document.getElementById('rsSTopics').className='';url='/ajax_rsb_titles';}
if(lid=='quote'){document.getElementById('rsATitles').className='mainItemLink';document.getElementById('rsSTitles').className='';document.getElementById('rsAQuote').className='rsTabLA';document.getElementById('rsSQuote').className='rsTabSA';document.getElementById('rsATopics').className='mainItemLink';document.getElementById('rsSTopics').className='';url='/ajax_rsb_quote';}
if(lid=='topics'){document.getElementById('rsATitles').className='mainItemLink';document.getElementById('rsSTitles').className='';document.getElementById('rsAQuote').className='mainItemLink';document.getElementById('rsSQuote').className='';document.getElementById('rsATopics').className='rsTabLA';document.getElementById('rsSTopics').className='rsTabSA';url='/ajax_rsb_topics';}
if(lid=='titles'||lid=='quote'||lid=='topics'){var opt={method:'post',parameters:{id:'test'},onCreate:function(){loadingImgS('ldbcTabChange');},onComplete:function(){loadingImgF('ldbcTabChange');},onSuccess:function(t){Effect.Fade('ldbcTabChange',{duration:1,afterFinish:function sflrsb(obj){Effect.Appear('ldbcTabChange',{duration:1});document.getElementById('ldbcTabChange').innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('ldbcTabChange').innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}}
function reportCSPAM(cid){var url='/ajax_report_comment_spam';var opt={method:'post',parameters:{cid:cid},onSuccess:function(t){Effect.Fade('csSpam'+cid,{duration:0.1,afterFinish:function sfl(obj){Effect.Appear('csSpam'+cid,{duration:0.5});document.getElementById('csSpam'+cid).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('csSpam'+cid).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function removeDeniedItemsP(id){var url='/ajax_denied_submission';var opt={method:'post',parameters:{id:id},onSuccess:function(t){Effect.BlindUp('pDI'+id,{duration:0.5});},onFailure:function(t){document.getElementById('pDI'+id).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
function loadMoreQuoteInfo(divID){var changeIconDiv=document.getElementById('loadMoreQuoteInfo'+divID);var showInfoDiv=document.getElementById('showExtraQIDiv'+divID);var url='/ajax_show_extra_quote_info';if(showInfoDiv.style.display=='none'){changeIconDiv.innerHTML='<span class="bMoreInfoIO"><a onclick="loadMoreQuoteInfo(\''+divID+'\');" class="bExInfoL">Hide Info</a></span>';var opt={method:'post',parameters:{id:divID},onSuccess:function(t){Effect.BlindDown('showExtraQIDiv'+divID,{duration:0.3,afterFinish:function qsei(obj){document.getElementById('showExtraQIDiv'+divID).innerHTML=t.responseText;}});},onFailure:function(t){document.getElementById('showExtraQIDiv'+divID).innerHTML='<span class="tblOptText"><b>Error '+t.status+' -- '+t.statusText+'!</b><br />Please try again or contant us with the above error line!</span>';}}
new Ajax.Request(url,opt);}
else{changeIconDiv.innerHTML='<span class="bMoreInfoIC"><a onclick="loadMoreQuoteInfo(\''+divID+'\');" class="bExInfoL">More Info</a></span>';Effect.BlindUp('showExtraQIDiv'+divID,{duration:0.3});}}