function isCCOM(){if(document.URL.substring(0,21)=="http://www.credit.com"||document.URL.substring(0,22)=="https://www.credit.com"||document.URL.substring(0,18)=="https://credit.com"||document.URL.substring(0,17)=="http://credit.com"||document.URL.substring(0,31)=="http://morpheus.credit.com:8084"||document.URL.substring(0,29)=="http://ripley.credit.com:8084"){return true}else{return false}}function isPageSecure(){if(document.URL.substring(0,5)=="https"){return true}else{return false}}function getCcomUrl(){if(document.URL.substring(0,31)=="http://morpheus.credit.com:8084"){return"http://morpheus.credit.com:8084"}else{if(document.URL.substring(0,32)=="http://localhost.credit.com:8084"){return"http://localhost.credit.com:8084"}else{if(document.URL.substring(0,27)=="http://yoda.credit.com:8084"){return"http://yoda.credit.com:8084"}else{if(document.URL.substring(0,29)=="http://ripley.credit.com:8084"){return"http://ripley.credit.com:8084"}else{if(document.URL.substring(0,20)=="http://qa.credit.com"){return"http://qa.credit.com"}else{if(document.URL.substring(0,21)=="https://qa.credit.com"){return"https://qa.credit.com"}else{if(isPageSecure()){return"https://www.credit.com"}else{return"http://www.credit.com"}}}}}}}}function inlineElement(id){document.getElementById(id).style.display="inline"}function inlineFalseElement(id){document.getElementById(id).style.display="none"}function toggleDetails(id){var el=document.getElementById(id);if(el!=null){if(el.style.display=="none"){el.style.display="inline"}else{el.style.display="none"}}}function addCardToParent(id){if(parent.window!=null){parent.window.addCard(id)}else{window.addCard(id)}}function showPrePaidInfo(tablename){var el1=document.getElementById(tablename);var el2=document.getElementById("prePaidDef");var el3=document.getElementById("prePaidDefIFrame");var pos=findPos(el1);el2.style.left=pos[0]+30+"px";el2.style.top=pos[1]-20+"px";el2.style.visibility="visible";el2.style.display="inline";el3.style.left=pos[0]+30+"px";el3.style.top=pos[1]-20+"px";el3.style.visibility="visible";el3.style.display="inline"}function hidePrePaidInfo(){var el2=document.getElementById("prePaidDef");var el3=document.getElementById("prePaidDefIFrame");el2.style.visibility="hidden";el2.style.display="none";el3.style.visibility="hidden";el3.style.display="none"}function showEycInfo(tablename,plusLeft,plusTop){var el1=document.getElementById(tablename);var el2=document.getElementById("eycDef");var el3=document.getElementById("eycDefIFrame");var pos=findPos(el1);el2.style.left=pos[0]+parseInt(plusLeft)+"px";el2.style.top=pos[1]+parseInt(plusTop)+"px";el2.style.visibility="visible";el2.style.display="inline";el3.style.left=pos[0]+parseInt(plusLeft)+"px";el3.style.top=pos[1]+parseInt(plusTop)+"px";el3.style.visibility="visible";el3.style.display="inline"}function hideEycInfo(){var el2=document.getElementById("eycDef");var el3=document.getElementById("eycDefIFrame");el2.style.visibility="hidden";el2.style.display="none";el3.style.visibility="hidden";el3.style.display="none"}function findPos(obj){var curleft=0;var curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent){curleft+=obj.offsetLeft;curtop+=obj.offsetTop}}return[curleft,curtop]};