var SERVER_PATH,IMG_PATH;var js_country_for_city="";var mouse_on_expint=false;var arr_exp_int=new Array();var ppg_loading=0;var frmob;var prepage_inner_html="";var transition_delay=500;var firstdiv_ht=0;var firstdiv_wd=0;var seconddiv_ht=0;if(!Array.indexOf){Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1}}function submit_cannedsearch_mul(F,C){var A="";for(var E=0;E<document.expressval.personilze.length;E++){if(document.expressval.personilze[E].checked){A=document.expressval.personilze[E].value}}if(A==""){if(document.getElementById("personalisedmessage1")){A=document.getElementById("personalisedmessage1").value}}else{if(A=="none"){A=""}}var B="";var G=document.expressval.send_password;if(G&&G.checked==true){B="&send_password="+escape(G.value)}var D=frmob.go.value+"&personalisedmessage="+escape(A)+B;submit_express_interest_multiple(C,frmob,D,F);$.tweenbox.tearDown()}function mediator_search_page_multiple(N,B,C,J){profile_position="";var K=document.frmExpressIntrest.chkexpressint.length;profileid="";var P=new Array();var F=0;var H=new Array();if(K){for(var G=0;G<K;G++){if(document.frmExpressIntrest.chkexpressint[G].checked){H.push(G+1);if(document.frmExpressIntrest.chkexpressint[G].disabled==false){P[F]=document.frmExpressIntrest.chkexpressint[G].value;F++}}}var I=implode(",",P);profileid=I;profile_position=implode(",",H)}if(K==null){if(document.frmExpressIntrest.chkexpressint.checked){if(document.frmExpressIntrest.chkexpressint.disabled==false){profileid=document.frmExpressIntrest.chkexpressint.value}}}B.go.value=C;if(B.per_msg.value==1){from_personalise_link="true"}else{from_personalise_link="false"}var O="";var E=B.getElementsByTagName("input");for(inum=0;inum<E.length-1;inum++){if(E[inum].name=="show_send_password"){O+="&show_send_password="+E[inum].value.toString()}}frmob=B;var Q=this.title||this.name||this.href||null;$("body").css("overflow","hidden");var M=function(){$.tweenbox.position($("#tweenContent")[0])};try{var D=false;var A="express.php?msg="+from_personalise_link.toString()+"&canned=true&searchpage=yes&multiple=yes&flag_from="+J+"&div_id_mul="+N+O+"&profileids="+profileid+"&profile_pos="+profile_position}catch(L){}try{$("body").tweenbox("express.php?msg="+from_personalise_link.toString()+"&canned=true&searchpage=yes&multiple=yes&flag_from="+J+"&div_id_mul="+N+O+"&profileids="+profileid+"&profile_pos="+profile_position)}catch(L){}return false}function mediator_search_page(Q,A,G,F,I,J,E,B,M,K){frmob=Q;var R="";var N=Q.getElementsByTagName("input");for(inum=0;inum<N.length-1;inum++){if(N[inum].name=="show_send_password"){R+="&show_send_password="+N[inum].value.toString()}}if(A=="/ssi/p-action/acceptdecline.php"){var P=frmob.check.value;if(G=="Declined_Member"){accept_decline="false"}else{if(G=="Accepted_Member"){accept_decline="true"}else{if(frmob.acceptdecline[0].checked){accept_decline="true"}else{accept_decline="false"}}}var H=this.title||this.name||this.href||null;$("body").css("overflow","hidden");var D=function(){$.tweenbox.position($("#tweenContent")[0])};try{var L=false;var C="interest-accept.php?msg="+J.toString()+"&canned=true&profileid="+F+"&searchpage=yes&filter="+G.toString()+"&img_http_url="+I.toString()+"&current_link_desc="+E.toString()+"&check="+P.toString()+"&accept_decline="+accept_decline.toString()+R}catch(O){}try{$("body").tweenbox("interest-accept.php?msg="+J.toString()+"&canned=true&profileid="+F+"&searchpage=yes&filter="+G.toString()+"&img_http_url="+I.toString()+"&current_link_desc="+E.toString()+"&check="+P.toString()+"&accept_decline="+accept_decline.toString()+R)}catch(O){}return false}else{var H=this.title||this.name||this.href||null;$("body").css("overflow","hidden");var D=function(){$.tweenbox.position($("#tweenContent")[0])};try{var L=false;var C="express.php?msg="+J.toString()+"&canned=true&profileid="+F+"&searchpage=yes&filter="+G.toString()+"&img_http_url="+I.toString()+"&current_link_desc="+E.toString()+R}catch(O){}try{$("body").tweenbox("express.php?msg="+J.toString()+"&canned=true&profileid="+F+"&searchpage=yes&filter="+G.toString()+"&img_http_url="+I.toString()+"&current_link_desc="+E.toString()+R)}catch(O){}return false}}function submit_canned_search_accept_decline(A,C,B,F,H){var M="";for(var G=0;G<document.acceptdeclineval.personilze.length;G++){if(document.acceptdeclineval.personilze[G].checked){var D=document.acceptdeclineval.personilze[G].value}}if(H=="Accepted"&&D=="I like your profile however please provide the following details"){var K="";if(typeof document.acceptdeclineval.checkselected.length!="undefined"){for(var E=0;E<document.acceptdeclineval.checkselected.length;E++){if(document.acceptdeclineval.checkselected[E].checked){K+=document.acceptdeclineval.checkselected[E].value+"|"}}}else{if(document.acceptdeclineval.checkselected.checked){K+=document.acceptdeclineval.checkselected.value+"|"}}if(K==""){document.getElementById("accept_error").style.display="block";document.getElementById("radio_bg2").style.border="solid 2px #CC0000";return false}K=K.slice(0,-1);M=D+": "+K}else{M=D}if(M==""){if(document.getElementById("personalisedmessage1")){M=document.getElementById("personalisedmessage1").value}}else{if(M=="none"){M=""}}if(H=="Accepted-from-layer"){M="Accepted-from-layer";H="Accepted"}try{frmob.acceptdecline.value=H}catch(J){}var L="";var I=document.acceptdeclineval.send_password;if(I&&I.checked==true){L="&send_password="+escape(I.value)}submit_express_interest(frmob,"/ssi/p-action/acceptdecline.php?personalisedmessage="+escape(M)+L,A,C,B,"yes",F,"personalisedmessage",M,1000);$.tweenbox.tearDown();return false}function submit_cannedsearch(E,G,D,H){var A="";for(var C=0;C<document.expressval.personilze.length;C++){if(document.expressval.personilze[C].checked){A=document.expressval.personilze[C].value}}if(A==""){if(document.getElementById("personalisedmessage1")){A=document.getElementById("personalisedmessage1").value}}else{if(A=="none"){A=""}}var B="";var F=document.expressval.send_password;if(F&&F.checked==true){B="&send_password="+escape(F.value)}submit_express_interest(frmob,"/ssi/p-action/contact.php?personalisedmessage="+escape(A)+B,E,G,D,"yes",H,"personalisedmessage",A,1000);$.tweenbox.tearDown()}function check_if_all_values_selected(B,C){var A=true;for(i=0;i<B.length;i++){if(!B[i].value){continue}if(!B[i].checked){A=false;break}}if(A==true){for(counter=0;counter<B.length;counter++){B[counter].checked=!B[counter].value}if(C){C.value=""}}return true}function show_hide_sort_drop_down(A){try{if(fn_js_featuredmatch_yn=="Y"){return true}}catch(B){}if(document.getElementById("sort_drop_drown")){document.getElementById("sort_drop_drown").style.display=A}}function check_uncheck_obj(B,A,C){if(B.checked){if(!C){for(counter=0;counter<A.length;counter++){if(A[counter].value){A[counter].checked=false}}}else{A[0].checked=false}}}function data_updated(frm,current_field){var all_objs=new Array();eval("all_objs = frm."+current_field.name);if(!all_objs){return false}check_uncheck_obj(current_field,all_objs,current_field.value);return true}function maximize_minimize(E,C){var A=document.getElementById("show_refine_sub_div");var D=document.getElementById(C+"_1");var B=document.getElementById(C+"_2");if(E.id=="minimize"){A.style.display="none";D.style.display="none";B.style.display="none";E.id="maximize";E.src=IMG_PATH+"/imgs/bullet/plus-symbol.jpg";document.cookie="max_min=minimize;";if(document.getElementById("religion1")){hide_div("religion1")}if(document.getElementById("mothertongue_div")){hide_div("mothertongue_div")}}else{D.style.display="block";B.style.display="block";E.id="minimize";E.src=IMG_PATH+"/imgs/bullet/minus-symbol.jpg";document.cookie="max_min=maximize;"}}function check_keyword_refine(C){var B=4;myString=new String(C.value);var A=myString.trim();if(A&&A.length<B){alert("Please enter atleast "+B+" characters.");return false}return true}function restrict_selection(B){var A=B.countryarray.length;var C=0;for(counter=0;counter<B.countryarray.length;counter++){if(B.countryarray[counter].checked){C+=1}if(C>10){alert("You can select Max 10 values.");return false}}}function show_div(showControls,b){if(showControls){var temp_b=b;var link_substr=b.id.substr(0,8);var curleft=curtop=0;var flag=false;if(b.offsetParent){do{curleft+=b.offsetLeft;curtop+=b.offsetTop;if(b.id==temp_b.id.substr(9)+"first_div"&&in_array(temp_b.id.substr(9)+"first_div",arr_exp_int)){flag=true}}while(b=b.offsetParent)}if(showControls.getAttribute("id")!="show-add-to-fav-msg"){showControls.style.top=curtop-125;showControls.style.left=curleft-165}else{showControls.style.top=curtop+15;showControls.style.left=curleft;var IE=document.all?true:false;if(IE&&(flag==true)&&link_substr=="fav_link"){showControls.style.top=curtop+80;showControls.style.left=curleft+95}else{if(!temp_b.offsetParent&&link_substr=="fav_link"){obj=document.getElementById(temp_b.id.substr(9));if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop}while(obj=obj.offsetParent)}showControls.style.top=curtop+145;showControls.style.left=curleft+2}}div_disp=false;setTimeout(function(){div_disp=true},100)}if(link_substr=="featured"){c=document.getElementById("featured_members_div");cur_left=c.offsetLeft;if(c.offsetParent){do{cur_left+=c.offsetLeft}while(c=c.offsetParent)}total_width=cur_left+556;if(eval(curleft)+256>total_width){curleft=curleft-(118)}curtop+=13;showControls.style.left=curleft;showControls.style.top=curtop}else{if(link_substr=="refinely"){showControls.style.top=curtop+26;showControls.style.left=curleft}}showControls.style.visibility="visible";showControls.style.display="block"}}function show_hidden_person_div(A){var B=document.getElementById(A);if(B){B.style.visibility="visible";B.style.display="block"}}function hide_div(B){var A=document.getElementById(B);if(A){show_hide_sort_drop_down("block");A.style.visibility="hidden";A.style.display="none"}}var confirm_msg=false;function submit_express_interest_multiple(F,C,E,G){if(G=="1"){profileid_nt_filt_canl=C.profileid_nt_filt_canl.value;if(profileid_nt_filt_canl!=""){profileid_nt_filt_canl=profileid_nt_filt_canl.split(",");arr_profileid_nt_filt_canl=explodeArray(profileid_nt_filt_canl,",");for(i=0;i<arr_profileid_nt_filt_canl.length;i++){ar=arr_profileid_nt_filt_canl[i];lnk="link_change_id_"+ar;document.getElementById(lnk).innerHTML="";lnk_expand="link_change_id1_"+ar;var B=document.getElementById(lnk_expand);if(B){B.innerHTML="<span style='font:normal 11px verdana;'><b>You have already expressed interest in this member</b></span>"}chkexpressint_id=ar+"chkexpressint";document.getElementById(chkexpressint_id).disabled=true;document.getElementById(chkexpressint_id).checked=false;div_top_bar=ar+"main_expdiv";validate_multiple(div_top_bar,chkexpressint_id)}}}else{if(G=="2"){if(C.chk_filtered.checked){profileid_filtered=C.profileid_filtered.value;if(profileid_filtered!=""){profileid_filtered=profileid_filtered.split(",");arr_profileid_filtered=explodeArray(profileid_filtered,",");for(i=0;i<arr_profileid_filtered.length;i++){lnk="link_change_id_"+arr_profileid_filtered[i];ar=arr_profileid_filtered[i];document.getElementById(lnk).innerHTML="<span class='smallbluelink'><img src='"+IMG_PATH+"/imgs/icons/icon-express-interest-default-panel.gif' align='absmiddle' hspace='5' border='0' vspace='1'>Filtered Member&nbsp;<img src='"+IMG_PATH+"/imgs/bullet/blue-arrow.gif' border='0' style='margin-bottom:-2px;'></span>";chkexpressint_id=ar+"chkexpressint";lnk_expand="link_change_id1_"+arr_profileid_filtered[i];var B=document.getElementById(lnk_expand);if(B){document.getElementById(lnk_expand).innerHTML='<span style="color: #FF0000;"><b>You have been filtered by this member.</b></span>'}document.getElementById(chkexpressint_id).disabled=true;document.getElementById(chkexpressint_id).checked=false;div_top_bar=ar+"main_expdiv";validate_multiple(div_top_bar,chkexpressint_id)}}}}else{if(G=="3"){if(C.chk_filtered.checked){profileid_filtered=C.profileid_filtered.value;if(profileid_filtered!=""){profileid_filtered=profileid_filtered.split(",");arr_profileid_filtered=explodeArray(profileid_filtered,",");for(i=0;i<arr_profileid_filtered.length;i++){ar=arr_profileid_filtered[i];lnk="link_change_id_"+arr_profileid_filtered[i];document.getElementById(lnk).innerHTML="";lnk_expand="link_change_id1_"+arr_profileid_filtered[i];var B=document.getElementById(lnk_expand);if(B){document.getElementById(lnk_expand).innerHTML="<span><b>You have already expressed interest in this member</b></span>"}chkexpressint_id=ar+"chkexpressint";document.getElementById(chkexpressint_id).disabled=true;document.getElementById(chkexpressint_id).checked=false;div_top_bar=ar+"main_expdiv";validate_multiple(div_top_bar,chkexpressint_id)}}}if(C.chk_cancelled.checked){profileid_cancelled=C.profileid_cancelled.value;if(profileid_cancelled!=""){profileid_cancelled=profileid_cancelled.split(",");arr_profileid_cancelled=explodeArray(profileid_cancelled,",");for(i=0;i<arr_profileid_cancelled.length;i++){ar=arr_profileid_cancelled[i];lnk="link_change_id_"+arr_profileid_cancelled[i];document.getElementById(lnk).innerHTML="";lnk_expand="link_change_id1_"+arr_profileid_cancelled[i];var B=document.getElementById(lnk_expand);if(B){document.getElementById(lnk_expand).innerHTML="<span ><b>You have already expressed interest in this member</b></span>"}chkexpressint_id1=ar+"chkexpressint";document.getElementById(chkexpressint_id).checked=false;document.getElementById(chkexpressint_id).disabled=true;div_top_bar1=ar+"main_expdiv";document.getElementById(div_top_bar1).style.backgroundImage="url("+IMG_PATH+"/imgs/background/search-header-bg-1.gif)"}}}}else{if(G=="4"){if(C.chk_cancelled.checked){profileid_cancelled=C.profileid_cancelled.value;if(profileid_cancelled!=""){profileid_cancelled=profileid_cancelled.split(",");arr_profileid_cancelled=explodeArray(profileid_cancelled,",");for(i=0;i<arr_profileid_cancelled.length;i++){ar=arr_profileid_cancelled[i];lnk="link_change_id_"+arr_profileid_cancelled[i];document.getElementById(lnk).innerHTML="";lnk_expand="link_change_id1_"+arr_profileid_cancelled[i];var B=document.getElementById(lnk_expand);if(B){document.getElementById(lnk_expand).innerHTML="<span style='font:normal 11px verdana; color:#0066CC;'><b>You have already expressed interest in this member</b></span>"}chkexpressint_id=ar+"chkexpressint";document.getElementById(chkexpressint_id).disabled=true;document.getElementById(chkexpressint_id).checked=false;div_top_bar=ar+"main_expdiv";document.getElementById(div_top_bar).style.backgroundImage="url("+IMG_PATH+"/imgs/background/search-header-bg-1.gif)"}}}}}}}var D='<table border="0" cellpadding="0" width="100%" cellspacing="0" align="left" style="height:120px;" valign="top"><tr><td class="top_left_png" align="left"></td><td class="top_middle_png"></td><td class="top_right_png"></td></tr><tr><td class="left_border_png" align="left" align="top"></td><td bgcolor="#ffffff" style=" font: normal 11px verdana;" valign="middle" align="center"><img src="'+IMG_PATH+'/imgs/profiles/loading-ajax.gif"></td><td class="right_border_png"></td></tr><tr><td class="bottom_left_png"></td><td class="bottom_middle_png"></td><td class="bottom_right_png"></td></tr></table>';C.action=E;var A=AjaxRequest.submit(C,{onLoading:function(I){document.getElementById(F).innerHTML=D;if(document.all){var J=document.createElement("iframe");var H=document.getElementById(F);if(J!=null&&H!=null){J.style.setAttribute("position","absolute");J.frameBorder=0;J.scrolling="no";J.style.top="8px";J.style.left="5px";J.style.width=get_element_width(H)-13+"px";J.style.height=get_element_height(H)-22+"px";J.style.zIndex=-1;J.style.display="block";H.appendChild(J)}}},onSuccess:function(I){document.getElementById(F).innerHTML=I.responseText;if(document.all){var J=document.createElement("iframe");var H=document.getElementById(F);if(J!=null&&H!=null){J.style.setAttribute("position","absolute");J.frameBorder=0;J.scrolling="no";J.style.top="8px";J.style.left="5px";J.style.width=get_element_width(H)-13+"px";J.style.height=get_element_height(H)-22+"px";J.style.zIndex=-1;J.style.display="block";H.appendChild(J)}}},timeout:30000,onTimeout:function(H){alert("A problem occurred while communicating with the server.\nPlease make sure you are connected to the Internet and try again in sometime.");return false},onError:function(H){alert("Error!\nStatusText="+H.statusText+"\nContents="+H.responseText)}})}function submit_express_interest(C,F,D,E,B,M,I,L,K,A){var H='<span style="padding-left:75px;"><img src="'+B+'/imgs/profiles/loading-ajax.gif"></span>';var J=false;I=typeof(I)!="undefined"?I:"null";if(I=="member_express_interest"){if(C.acceptdecline[0].checked==true){J=true;D="Accepted Member"}if(C.acceptdecline[1].checked==true){J=true;D="Declined Member"}if(C.acceptdecline[0].checked==false&&C.acceptdecline[1].checked==false){J=true;D="Accepted Member"}if(K=="Accepted-from-layer"){J=true;D="Accepted Member"}}overwrite_sourceid="show_inside_content_div_"+E;td_id="link_change_id_"+E;td_id_expand="link_change_id1_"+E;show_main_div_id="show_main_div_"+E;if(confirm_msg==true){var N=false;N=confirm("Are you sure you want to decline interest in this member?");if(N==false){confirm_msg=false;return false}}C.action=F;var G=AjaxRequest.submit(C,{onLoading:function(P){document.getElementById("close_id").style.display="none";document.getElementById(overwrite_sourceid).innerHTML=H;if(window.ActiveXObject){var O=document.getElementById("show_main_div").offsetHeight-30;if(document.getElementById("frame_id")){document.getElementById("frame_id").style.height=O+"px"}}},onSuccess:function(P){chkexpressint_id=E+"chkexpressint";if(document.getElementById(chkexpressint_id)){document.getElementById(chkexpressint_id).checked=false;document.getElementById(chkexpressint_id).disabled=true;div_top_bar1=E+"main_expdiv";document.getElementById(div_top_bar1).style.backgroundImage="url("+B+"/imgs/background/search-header-bg-1.gif)"}document.getElementById("close_id").style.display="block";if(D==""){link_name_display="Send Reminder"}else{link_name_display=D}div_id_to_change=document.getElementById(td_id);if(div_id_to_change!=null){if(link_name_display!="Send Reminder"){document.getElementById(td_id).innerHTML="<span class='smallbluelink'><img src='"+B+"/imgs/icons/icon-express-interest-default-panel.gif' align='absmiddle' hspace='5' border='0' vspace='1'  >"+link_name_display+"&nbsp;<img src='"+B+"/imgs/bullet/blue-arrow.gif' border='0' style='margin-bottom:-2px;'></span>"}else{document.getElementById(td_id).innerHTML=""}td_expand_express=document.getElementById(td_id_expand);if(td_expand_express){td_expand_express.innerHTML="<span><b>You have already expressed interest in this member</b></span>"}}div_id_to_change=document.getElementById("pos_featured_"+td_id);if(div_id_to_change!=null){div_id_to_change.innerHTML="<span style='font:normal 11px verdana; color:#0066CC;'>"+link_name_display+"&nbsp;</span>"}if(D=="Send Reminder"){if(I=="you_cancel_interest"){if(document.getElementById("cancel_#"+E)!=null){if(document.getElementById("cancel_#"+E).src){document.getElementById("cancel_#"+E).src=B+"/imgs/icons/icon_open.gif";document.getElementById("cancel_#"+E).height="14";document.getElementById("cancel_#"+E).vspace="0";document.getElementById("cancel_#"+E).setAttribute("title","Awaiting Response")}}}else{if(document.getElementById("trans-smile-"+E)!=null){document.getElementById("trans-smile-"+E).src=B+"/imgs/icons/icon_open.gif";document.getElementById("trans-smile-"+E).setAttribute("title","Awaiting Response")}}}if(D=="Accepted Member"&&J==true){if(document.getElementById("contact_#"+E)!=null){document.getElementById("contact_#"+E).src=B+"/imgs/icons/icon_accept.gif";document.getElementById("contact_#"+E).setAttribute("title","Accepted")}}else{if(D=="Declined Member"&&J==true){if(document.getElementById("contact_#"+E)!=null){document.getElementById("contact_#"+E).src=B+"/imgs/icons/icon_decline.gif";document.getElementById("contact_#"+E).setAttribute("title","Declined")}}else{if(D=="Declined Member"){if(document.getElementById("accept_#"+E)!=null){document.getElementById("accept_#"+E).src=B+"/imgs/icons/icon_decline.gif";document.getElementById("accept_#"+E).setAttribute("title","Declined")}}else{if(D=="Accepted Member"){if(document.getElementById("decline_#"+E)!=null){document.getElementById("decline_#"+E).src=B+"/imgs/icons/icon_accept.gif";document.getElementById("decline_#"+E).setAttribute("title","Accepted")}}else{if(D=="Cancel Interest"){if(document.getElementById("accept_#"+E)!=null){document.getElementById("accept_#"+E).src=B+"/imgs/icons/icon-heart-cancel.gif";document.getElementById("accept_#"+E).setAttribute("title","Cancelled")}}}}}}document.getElementById(overwrite_sourceid).innerHTML=P.responseText;if(window.ActiveXObject){var O=document.getElementById("show_main_div").offsetHeight-30;if(document.getElementById("frame_id")){document.getElementById("frame_id").style.height=O+"px"}}},timeout:30000,onTimeout:function(O){alert("A problem occurred while communicating with the server.\nPlease make sure you are connected to the Internet and try again in sometime.");return false},onError:function(O){alert("Error!\nStatusText="+O.statusText+"\nContents="+O.responseText)}});return G}function send_password(B,C){var A=AjaxRequest.get({url:B,onSuccess:function(D){show_hidden_person_div(C)},onError:function(D){alert("Error!\nStatusText="+D.statusText+"\nContents="+D.responseText)}})}function implode(B,A){return((A instanceof Array)?A.join(B):A)}function show_div_dropdown(B,C,A){if(!mouse_on_expint){document.getElementById(B).style.display="block";document.getElementById(C).style.display="none";document.getElementById(A).style.display="block"}}function hide_div_dropdown(B,C,A){document.getElementById(B).style.display="none";document.getElementById(C).style.display="block";document.getElementById(A).style.display="none"}function show_content_layer(A,B,C,F,H,I){hide_top_bottom_div();var E='<table border="0" cellpadding="0" cellspacing="0" align="left" style="height:120px;" valign="top"><tr><td class="top_left_png" align="left"></td><td class="top_middle_png"></td><td class="top_right_png"></td></tr><tr><td class="left_border_png" align="left" align="top"></td><td bgcolor="#ffffff" style=" font: normal 11px verdana;" valign="middle" align="center"><img src="'+IMG_PATH+'/imgs/profiles/loading-ajax.gif"></td><td class="right_border_png"></td></tr><tr><td class="bottom_left_png"></td><td class="bottom_middle_png"></td><td class="bottom_right_png"></td></tr></table>';var J='<span style="padding-left:175px;"><img src="'+IMG_PATH+'/imgs/profiles/loading-ajax-small.gif"></span>';var G;obj_div=document.getElementById(F);if(C!="already_in_fav"&&C!="add_to_fav"){if(I){show_link_td_id="link_change_id1_"+B}else{show_link_td_id="link_change_id_"+B}if(H=="Y"){show_link_td_id="featured_link_change_id_"+B}b=document.getElementById(show_link_td_id);G=obj_div}else{if(C=="already_in_fav"||C=="add_to_fav"){ob_inner_div=document.getElementById("display-message-add-to-fav");fav_link_change_id="fav_link_"+B;b=document.getElementById(fav_link_change_id);G=ob_inner_div}}G.innerHTML="";var D=AjaxRequest.get({url:A,onLoading:function(K){if(C!="already_in_fav"&&C!="add_to_fav"){G.innerHTML=E}else{G.innerHTML=J}show_div(obj_div,b)},onSuccess:function(P){var K=new Array();var K=P.responseText.split("||");if(C=="already_in_fav"){G.innerHTML=K[0];b.innerHTML="<img src='"+IMG_PATH+"/imgs/bullet/favorite.jpg' width='15' height='16' style='margin-bottom: 3px; margin-right: 5px;' border='0' vspace='0' align='absmiddle'><span style=\"font: normal normal 11px tahoma;\">Favorite&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";var O=document.getElementsByTagName("span");for(var N=0;N<O.length;N++){if(O[N].id==fav_link_change_id){O[N].innerHTML="<img src='"+IMG_PATH+"/imgs/bullet/favorite.jpg' width='15' height='16' style='margin-bottom: 3px; margin-right: 7px;' border='0' vspace='0' align='absmiddle'><span style=\"font: normal normal 11px tahoma;\" class=\"smallbluelink\">Favorite&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"}}}else{if(C=="add_to_fav"){G.innerHTML=K[0];b.innerHTML="<img src='"+IMG_PATH+"/imgs/bullet/add-to-fav.gif' width='18' height='14' border='0' vspace='0' align='absmiddle' valign='bottom' style='margin-right: 3px;' hspace='3'>Add To Favorites";var O=document.getElementsByTagName("span");for(var N=0;N<O.length;N++){if(O[N].id==fav_link_change_id){O[N].innerHTML="<img src='"+IMG_PATH+"/imgs/bullet/add-to-fav.gif' width='18' height='14' border='0' vspace='0' align='absmiddle' valign='bottom' style='margin-right: 3px;' hspace='3'><span style=\"font: normal normal 11px tahoma;\">Add To Favorites</span>&nbsp;"}}}else{G.innerHTML=K[0];if(window.ActiveXObject){var M=document.getElementById("show_main_div").offsetHeight-30;if(document.getElementById("frame_id")){document.getElementById("frame_id").style.height=M+"px"}var Q=document.createElement("iframe");var L=document.getElementById("show_main_div");if(Q!=null&&L!=null){Q.style.setAttribute("position","absolute");Q.frameBorder=0;Q.scrolling="no";Q.style.top="8px";Q.style.left="5px";Q.style.width=get_element_width(L)-12+"px";Q.style.height=get_element_height(L)-42+"px";Q.style.zIndex=-1;Q.style.display="block";L.appendChild(Q)}}}}},timeout:30000,onTimeout:function(K){alert("A problem occurred while communicating with the server.\nPlease make sure you are connected to the Internet and try again in sometime.");return false},onError:function(K){alert("Error!\nStatusText="+K.statusText+"\nContents="+K.responseText)}});return D}function show_content_layer_multiple(J,A,H){hide_top_bottom_div();profile_position="";var I=document.frmExpressIntrest.chkexpressint.length;profileid="";var L=new Array();var C=0;var E=new Array();if(I){for(var F=0;F<I;F++){if(document.frmExpressIntrest.chkexpressint[F].checked){E.push(F+1);if(document.frmExpressIntrest.chkexpressint[F].disabled==false){L[C]=document.frmExpressIntrest.chkexpressint[F].value;C++}}}var G=implode(",",L);profileid=G;profile_position=implode(",",E)}if(I==null){if(document.frmExpressIntrest.chkexpressint.checked){if(document.frmExpressIntrest.chkexpressint.disabled==false){profileid=document.frmExpressIntrest.chkexpressint.value}}}A=A+"&profileid="+profileid+"&profile_pos="+profile_position;var D='<table border="0" cellpadding="0" width="100%" cellspacing="0" align="left" style="height:120px; " valign="top"><tr><td class="top_left_png" align="left"></td><td class="top_middle_png"></td><td class="top_right_png"></td></tr><tr><td class="left_border_png" align="left" align="top"></td><td bgcolor="#ffffff" style=" font: normal 11px verdana;" valign="middle" align="center"><img src="'+IMG_PATH+'/imgs/profiles/loading-ajax.gif"></td><td class="right_border_png"></td></tr><tr><td class="bottom_left_png"></td><td class="bottom_middle_png"></td><td class="bottom_right_png"></td></tr></table>';var K='<span style="padding-left:175px;"><img src="'+IMG_PATH+'/imgs/profiles/loading-ajax-small.gif"></span>';document.getElementById(J).innerHTML="";document.getElementById(J).style.display="";var B=AjaxRequest.get({url:A,onLoading:function(N){document.getElementById(J).innerHTML=D;if(document.all){var O=document.createElement("iframe");var M=document.getElementById(J);if(O!=null&&M!=null){O.style.setAttribute("position","absolute");O.frameBorder=0;O.scrolling="no";O.style.top="8px";O.style.left="5px";O.style.width=get_element_width(M)-13+"px";O.style.height=get_element_height(M)-22+"px";O.style.zIndex=-1;O.style.display="block";M.appendChild(O)}}},onSuccess:function(O){var M=new Array();var M=O.responseText.split("||");document.getElementById(J).innerHTML=M[0];if(document.all){var P=document.createElement("iframe");var N=document.getElementById(J);if(P!=null&&N!=null){P.style.setAttribute("position","absolute");P.frameBorder=0;P.scrolling="no";P.style.top="8px";P.style.left="5px";P.style.width=get_element_width(N)-13+"px";P.style.height=get_element_height(N)-22+"px";P.style.zIndex=-1;P.style.display="block";N.appendChild(P)}}},timeout:30000,onTimeout:function(M){alert("A problem occurred while communicating with the server.\nPlease make sure you are connected to the Internet and try again in sometime.");return false},onError:function(M){alert("Error!\nStatusText="+M.statusText+"\nContents="+M.responseText)}});return B}function show_already_in_fav(B,A){hide_top_bottom_div();fav_link_change_id="fav_link_"+B;b=document.getElementById(fav_link_change_id);var C='To view all members in your favorites list, <a href="'+SERVER_PATH+'/partner_search/matrimonial_search/favourites.php" class="smallbluelink">click here</a><br><br>To remove '+B+" from your favorites list, <a href='#' onclick=\"javascript:show_content_layer('/ssi/p-action/addremovefav-ajax.php?profileid="+B+"&memberlogin="+A+"&removefromfav=Y','"+B+"','add_to_fav', 'show-add-to-fav-msg'); return false;\" class=\"smallbluelink\">click here</a>";obj_div=document.getElementById("show-add-to-fav-msg");show_div(obj_div,b);document.getElementById("display-message-add-to-fav").innerHTML=C}function show_visitor_layer(D,B,E,C){hide_top_bottom_div();var A;show_link_td_id="link_change_id_"+B;if(C=="Y"){show_link_td_id="featured_link_change_id_"+B}b=document.getElementById(show_link_td_id);showControls_visitor=document.getElementById(D);show_div(showControls_visitor,b);document.getElementById("visitor_id").innerHTML=B;featured_link="";if(C=="Y"){featured_link="&featured=Y"}A=escape("/partner_search/matrimonial_search/showprofile.php?profileid="+B+featured_link+"&set="+E+"&set_profiles=&set_profiles_back=#action&vcase=express_interest");document.getElementById("show_visitor_link").innerHTML="<a  class='smallbluelink' href='/registration/user/login.php?go="+A+'\' onclick="return mediator_login_page(this);">Login now</a>'}function show_astro_search_help(A,B){b=document.getElementById("astrology_score_"+B);var C=curtop=0;showControlhelp=document.getElementById(A);C+=b.offsetLeft;curtop+=b.offsetTop;showControlhelp.style.top=curtop+22;showControlhelp.style.left=C-200;showControlhelp.style.display="block"}function show_same_gender_layer(A,B,C){hide_top_bottom_div();show_link_td_id="link_change_id_"+B;if(C=="Y"){show_link_td_id="featured_link_change_id_"+B}b=document.getElementById(show_link_td_id);showControls_same_gender=document.getElementById(A);show_div(showControls_same_gender,b);document.getElementById("same_gender_id").innerHTML=B}function trim(B,A){return ltrim(rtrim(B,A),A)}function ltrim(B,A){A=A||"\\s";return B.replace(new RegExp("^["+A+"]+","g"),"")}function rtrim(B,A){A=A||"\\s";return B.replace(new RegExp("["+A+"]+$","g"),"")}function show_refine_sub_layer_new(E,G,D,F){var J=new String();var C='<br><br><center><img src="'+IMG_PATH+'/imgs/profiles/loading-ajax.gif" align="center"></center><br><br>';if(E==""){return false}var H="";var I="";if(G=="mothertongue"){H="Mother Tongue:"}else{if(G=="caste"){H="Caste:"}}if(E=="mothertongue"){J=fn_js_mothertongue_selected;I=fn_js_cast_selected}else{if(E=="caste"){J=fn_js_cast_selected;I=fn_js_mothertongue_selected}else{if(E=="show_state"){J=document.getElementById("country-state-city").value;if(J==""){alert("Please select country.");return false}I=js_stateofresidence;H="State:"}else{if(E=="show_city"){var B=document.getElementById("country-state-city").value;if(B==""){alert("Please select country.");return false}if(B.indexOf("|India|")>=0||B.indexOf("| India|")>=0||B.indexOf("| USA|")>=0||B.indexOf("|USA|")>=0){J=js_stateofresidence+"@"+B;if(js_stateofresidence==""){alert("Please select state.");return false}}else{if(js_stateofresidence==""){J="| @"+B}else{J=js_stateofresidence+"@"+B}}I=js_nearestcity;H="City:"}}}}if(G=="country"){J=document.getElementById("country").value;H="Country:"}else{if(G=="country-state-city"){J=document.getElementById("country-state-city").value;H="Country:"}else{if(G=="marital"){J=document.getElementById("marital").value;H="Marital Status:"}else{if(G=="profession"){J=js_occupation;H="Profession:"}else{if(G=="specialcase"){J=document.getElementById("specialcase").value;H="Special Cases:"}}}}}if(E=="mothertongue"||E=="caste"){religion=document.getElementById("religion").value;mothertongue=document.getElementById("mothertongue").value;F=document.getElementById("gender").value;selected_caste=document.getElementById("caste").value;if(!religion){alert("Please select Religion");return false}my_url="/ssi/ajax-com-mt-caste.php?community="+escape(religion)+"&mothertongue="+escape(mothertongue)+"&gender="+escape(F)+"&return_type=html&selected_caste="+escape(selected_caste)}else{my_url="/ssi/p-action/modify-checkbox-html.php?type="+escape(E)+"&label="+escape(G)+"&selected_values="+escape(J)+"&gender="+escape(F)+"&pre_selection="+escape(I)}dest_id=document.getElementById("show_refine_sub_div");dest_inner_id=document.getElementById("show_refine_sub_div1");if(document.getElementById("religion1")){hide_div("religion1")}if(document.getElementById("mothertongue_div")){hide_div("mothertongue_div")}var A=AjaxRequest.get({url:my_url,onLoading:function(K){document.getElementById("layer_top_txt").innerHTML="";show_hide_sort_drop_down("none");dest_inner_id.innerHTML="";show_div(dest_id,D);dest_inner_id.innerHTML=C},onSuccess:function(K){document.getElementById("layer_top_txt").innerHTML=H;dest_inner_id.innerHTML=K.responseText;if(dest_id.offsetHeight>"200"){document.getElementById("frame_div_id").style.height="160px"}},timeout:30000,onTimeout:function(K){alert("A problem occurred while communicating with the server.\nPlease make sure you are connected to the Internet and try again in sometime.");return false},onError:function(K){alert("Error!\nStatusText="+K.statusText+"\nContents="+K.responseText)}})}function set_hidden_value(G,J,C){if(G=="mothertongue"){chk_name=new Array();chk_name=J.mothertonguearray}else{if(G=="religion"){chk_name=new Array();chk_name=J.religionarray}else{if(G=="caste"){chk_name=new Array();chk_name=J.castearray}else{if(G=="marital"){chk_name=new Array();chk_name=J.maritalarray}else{if(G=="country"||G=="country-state-city"){chk_name=new Array();chk_name=J.countryarray}else{if(G=="state"){chk_name=new Array();chk_name=J.statearray}else{if(G=="city"){chk_name=new Array();chk_name=J.cityarray}else{if(G=="profession"){chk_name=new Array();chk_name=J.professionarray}else{if(G=="specialcase"){chk_name=new Array();chk_name=J.specialcasearray}}}}}}}}}var H="|";var S="";var P=false;var B="";var M="";for(counter=0;counter<chk_name.length;counter++){if(chk_name[counter].checked){if(chk_name[counter].value!=""){P=true;H=H+chk_name[counter].value+"|";B=chk_name[counter].value.split(":");M=B[1];if(!M){M=B[0]}S=S+", "+M}}}if(!chk_name.length){P=true;H=H+chk_name.value+"|"}H+=" ";if(P==false){H=""}if(P==true&&G=="religion"){chk_name[0].checked=false}document.getElementById(G).value=H;if(G=="mothertongue"){fn_js_mothertongue_selected=H;check_if_all_values_selected(chk_name,document.getElementById("mothertongue"),fn_js_mothertongue_selected);document.getElementById("mothertongue_selcted").innerHTML=short_string(H);if(C){document.getElementById("caste_selected").innerHTML="&nbsp;Doesn't Matter";document.getElementById("caste").value="";fn_js_cast_selected="";if(!H){for(counter=0;counter<chk_name.length;counter++){if(!chk_name[counter].value){chk_name[counter].checked=true;break}}}}if(document.getElementById("mothertongue_div")){hide_div("mothertongue_div")}}else{if(G=="caste"){fn_js_cast_selected=H;if(!S){S=H}S=S.trim();if(S){S=S.replace(/,/g,"|");document.getElementById("caste_selected").innerHTML=short_string(S+"  ")}else{document.getElementById("caste_selected").innerHTML="&nbsp;Doesn't Matter";for(counter=0;counter<chk_name.length;counter++){if(!chk_name[counter].value){chk_name[counter].checked=true;break}}}}else{if(G=="marital"){document.getElementById("marital_selected").innerHTML=short_string(H)}else{if(G=="country"){document.getElementById("country_selected").innerHTML=short_string(H);check_if_all_values_selected(chk_name,"")}else{if(G=="country-state-city"){document.getElementById("country_selected").innerHTML=short_string(H);document.getElementById("state_selected").innerHTML="&nbsp;Doesn't Matter";document.getElementById("city_selected").innerHTML="&nbsp;Doesn't Matter";js_stateofresidence="";js_nearestcity="";document.getElementById("state").value="";document.getElementById("city").value=""}else{if(G=="state"){js_stateofresidence=H;document.getElementById("state_selected").innerHTML=short_string(H);document.getElementById("city_selected").innerHTML="&nbsp;Doesn't Matter";js_nearestcity="";document.getElementById("city").value=""}else{if(G=="city"){js_nearestcity=H;document.getElementById("city_selected").innerHTML=short_string(H)}else{if(G=="profession"){js_occupation=H;document.getElementById("profession_selected").innerHTML=short_string(H)}else{if(G=="specialcase"){document.getElementById("specialcase").value=H;document.getElementById("specialcase_selected").innerHTML=short_string(H)}}}}}}}}}if(G=="religion"){document.getElementById("religion").value=H;document.getElementById("religion_selected_value").innerHTML=short_string(H);if(C){var A=document.getElementById("religion").value;var F=document.getElementById("caste").value;var Q=document.getElementById("caste_selected").value;var L=A.split("|");var N=F.split("|");var O="";var E="";var I="";var R="";var K="";var D=N.length;check_if_all_values_selected(chk_name,document.getElementById("religion"),"");for(i=0;i<D;i++){I=N[i].trim();if(!I){continue}E=I.split(":");R=E[1];if(!R){R=E[0]}E=E[0];if(A.search(E)>0){O+="| "+I;K+="| "+R}}if(O){O+="| "}if(K){K+="| "}document.getElementById("caste").value=O;document.getElementById("caste_selected").innerHTML=short_string(K);if(!A){for(counter=0;counter<chk_name.length;counter++){if(!chk_name[counter].value){chk_name[counter].checked=true;break}}}fn_js_cast_selected=O}if(document.getElementById("religion1")){hide_div("religion1")}}hide_div("show_refine_sub_div");return false}function short_string(D){if(D==""){return C="Doesn't Matter"}var B=new String();var C=new String();var A=new Array();string_temp=D.substring(1,D.length-2);A=string_temp.split("|");C=A[0];if(A[0].length>13||A.length>1){B=A[0].substring(0,13);C=B+"..."}C='<a name="#" class="tip" alt=\''+A+"' title='"+A+"'>&nbsp;"+C+"</a>";return C}function refine_validation(srch_name){var alert_str="";var motherounge_selected_flag=0;var cast_selected_flag=0;var country_selected_flag=0;var ageto=document.getElementById("ageto").options[document.getElementById("ageto").selectedIndex].text;var agefrom=document.getElementById("agefrom").options[document.getElementById("agefrom").selectedIndex].text;if(fn_js_cast_selected){motherounge_selected_flag=1}if(fn_js_mothertongue_selected){cast_selected_flag=1}if(srch_name=="city_search"&&document.getElementById("country-state-city").value!=""){country_selected_flag=1}else{if(srch_name!="city_search"&&document.getElementById("country").value!=""){country_selected_flag=1}}if(ageto<agefrom){alert_str=alert_str+"Invalid Age selected\n"}if(eval(ageto-agefrom)>10){alert_str=alert_str+"Age ranges exceeds 10 years.\nChange age ranges or use Smart Search\n"}if((motherounge_selected_flag!=1&&cast_selected_flag!=1&&country_selected_flag!=1&&!document.getElementById("religion").value)||(!document.getElementById("religion").value&&!document.getElementById("mothertongue").value&&!document.getElementById("caste").value&&!document.getElementById("country").value)){alert_str=alert_str+"Please select atleast Mother Tongue or Religion/Caste or Country.\n"}if(srch_name=="keyword_search"){if(document.getElementById("keyword_txt")!=null){if(document.getElementById("keyword_txt").value!="min. 4 characters"){return check_keyword_refine(document.getElementById("keyword_txt"))}}}if(alert_str!=""){alert(alert_str);return false}}function keyword_label_to_textbox(A){document.getElementById("keyword_id").innerHTML="<input type='text' name='keyword_txt' id='keyword_txt' value='"+A+"'>"}function hide_div_multi(A){document.getElementById(A).innerHTML=""}function hide_top_bottom_div(){document.getElementById("show_main_div").style.display="none";var A=document.getElementById("multi_exp_div1");if(A){document.getElementById("multi_exp_div1").innerHTML=""}var A=document.getElementById("multi_exp_div2");if(A){document.getElementById("multi_exp_div2").innerHTML=""}}function validate_multiple(A,B){if(document.getElementById(B).checked==true){document.getElementById(A).style.backgroundImage="url("+IMG_PATH+"/imgs/background/blue-bar.gif)"}else{document.getElementById(A).style.backgroundImage="url("+IMG_PATH+"/imgs/background/search-header-bg-1.gif)"}}function explodeArray(D,B){tempArray=new Array(1);var A=0;var C=new String(D);while(C.indexOf(B)>0){tempArray[A]=C.substr(0,C.indexOf(B));C=C.substr(C.indexOf(B)+1,C.length-C.indexOf(B)+1);A=A+1}tempArray[A]=C;return tempArray}function toggle_checkbox(A){if(document.getElementById(A).disabled==false){if(document.getElementById(A).checked){document.getElementById(A).checked=false}else{document.getElementById(A).checked=true}}}function get_element_left(C){var A=0;var B;if(typeof(C)=="object"){B=C}else{B=document.getElementById(C)}while(B!=null){A+=B.offsetLeft;B=B.offsetParent}return parseInt(A)}function get_element_top(B){var C=0;var A;if(typeof(B)=="object"){A=B}else{A=document.getElementById(B)}while(A!=null){C+=A.offsetTop;A=A.offsetParent}return parseInt(C)}function get_element_width(B){var A;if(typeof(B)=="object"){A=B}else{A=document.getElementById(B)}return parseInt(A.offsetWidth)}function get_element_height(B){var A;if(typeof(B)=="object"){A=B}else{A=document.getElementById(B)}return parseInt(A.offsetHeight)}function expand_transition(B,G,C,A,H,D,F){if(in_array(G,arr_exp_int)){return false}else{arr_exp_int.push(G)}var E=document.getElementById(C);if(E.innerHTML==""||E.innerHTML=="Sorry we could not fetch the content this time"){p_id=G.substr(0,G.indexOf("first_div"));get_mini_profile_contents(p_id,"yes",F)}hide_top_bottom_div();$("#"+G).fadeOut(transition_delay);setTimeout("ppg_display('"+B+"','"+G+"')",transition_delay*1.2);if(ppg_loading==0||E.innerHTML!=""){expand_transition_part2(B,G,C,A,H,D)}return false}function expand_transition_part2(prepg,first,second,container,expand_div,restore_div){document.getElementById(second).style.display="block";var div_main_height=document.getElementById(second).offsetHeight;var div_content=second.replace(/second_div/gi,"about_me");var div_content_height=document.getElementById(div_content).offsetHeight;if(div_content_height>93){div_main_height=div_main_height-div_content_height+93;div_content_height=93}document.getElementById(div_content).style.height=div_content_height+"px";document.getElementById(second).style.display="none";setTimeout("revert_ppg_display('"+prepg+"','"+expand_div+"','"+restore_div+"','expand')",transition_delay*5);setTimeout(function(){$("#"+container).animate({height:eval(div_main_height+2)},transition_delay*2)},transition_delay*3);setTimeout(function(){$("#"+second).fadeIn(transition_delay*2.5)},transition_delay*5);setTimeout(function(){document.getElementById(container).style.borderWidth="3px"},transition_delay*5.1)}function restore_transition(prepg,first,second,container,expand_div,restore_div){if(!in_array(first,arr_exp_int)){return false}else{remove_frm_array(first,arr_exp_int)}hide_top_bottom_div();document.getElementById(first).style.display="block";var div_first_height=document.getElementById(first).offsetHeight;document.getElementById(first).style.display="none";$("#"+second).fadeOut(transition_delay*0.8);setTimeout(function(){document.getElementById(container).style.borderWidth="1px"},transition_delay*2);setTimeout(function(){$("#"+container).animate({height:eval(div_first_height)},transition_delay*2)},transition_delay*2);setTimeout("revert_ppg_display('"+prepg+"','"+expand_div+"','"+restore_div+"','restore')",transition_delay*4.5);setTimeout(function(){$("#"+first).fadeIn(transition_delay*3)},transition_delay*3);return false}function ppg_display(A,B){obj_ppg=document.getElementById(A);odj_first=document.getElementById(B);if(odj_first.style.display==""){setTimeout("ppg_display2('"+A+"')",transition_delay*1.4)}else{ppg_display2(A)}return true}function ppg_display2(A){obj_ppg=document.getElementById(A);if(obj_ppg!=null||typeof(obj_ppg)!="undefined"){obj_ppg.style.background="#FFFFFF";obj_ppg.style.display="block";obj_ppg.style.zIndex=1;prepage_inner_html=obj_ppg.innerHTML}return true}function revert_ppg_display(A,D,B,C){obj_ppg=document.getElementById(A);if(C=="expand"){obj_ppg.style.zIndex=-1;obj_ppg.style.display="none";document.getElementById(D).style.display="none";document.getElementById(B).style.display="block"}else{if(C=="restore"){document.getElementById(B).style.display="none";document.getElementById(D).style.display="block"}}return true}function skip_show(B,C){var A=AjaxRequest.get({url:B,onSuccess:function(E){show_hidden_person_div(C);div_id=document.getElementById(C);div_id.innerHTML=E.responseText;if(document.all){var F=document.createElement("iframe");var D=document.getElementById(C);if(F!=null&&D!=null){F.style.setAttribute("position","absolute");F.frameBorder=0;F.scrolling="no";F.style.top="8px";F.style.left="5px";F.style.width=get_element_width(D)-13+"px";F.style.height=get_element_height(D)-22+"px";F.style.zIndex=-1;F.style.display="block";D.appendChild(F)}}},timeout:30000,onTimeout:function(D){alert("A problem occurred while communicating with the server.\nPlease make sure you are connected to the Internet and try again in sometime.");return false},onError:function(D){alert("Error!\nStatusText="+D.statusText+"\nContents="+D.responseText)}})}function show_btn(B,A){var B=document.getElementById(B);var A=document.getElementById(A);A.style.display="block";B.style.display="none"}function show_btn_out(B,A){var B=document.getElementById(B);var A=document.getElementById(A);B.style.display="block";A.style.display="none"}function remove_frm_array(C,A){var B=A.indexOf(C);if(B!=-1){A.splice(B,1)}}function in_array(C,B){var D=B.length;for(var A=0;A<D;A++){if(B[A]==C){return true}}};