if (document.images){status_open = new Image();status_close = new Image();status_open.src = "http://216.69.131.44/d_files/bul_open.gif";status_close.src = "http://216.69.131.44/d_files/bul_close.gif";}function gosb(url,t){if(t == "")t="_self";window.open(url,t);}function sbStatus(){var dpClosed = false;var item = new Array("qs","mc","ma","s","e","rp","b","cr"); //sidebar open/closefor(x=0;x<item.length;x++){if(getCookie('sidebar_' + item[x]) == "1"){if(document.images [item[x]+"_img"]) document.images [item[x]+"_img"].src = status_close.src;if(document.getElementById(item[x]+'_div')) document.getElementById(item[x]+'_div').style.display = "";if((item[x]=="ma")||(item[x]=="s")){dpClosed = true;}}}var item = new Array("customize","test");//landing page open/closefor(x=0;x<item.length;x++){if(getCookie('sidebar_' + item[x]) == "1"){if (document.images [item[x]+"_img"]){document.images [item[x]+"_img"].src = status_open.src;document.getElementById(item[x]+'_div').style.display = "none";}}}}function checkHome(item){//homepage sidebar hasn't been activated yet, reload//createCookie('home_sidebar',1,'');var url = "https://www.securepaynet.net/gdshop/default.asp?se=%2B&prog%5Fid=gowebsite&app%5Fhdr=&sb=1&item=sbitem";url = url.replace('sbitem', item);window.open(url,'_self');}function togSB(item){if(document.images [item+"_img"])	document.images [item+"_img"].src = (document.images [item+"_img"].src == status_open.src) ? status_close.src:status_open.src;document.getElementById(item+'_div').style.display = (document.getElementById(item+'_div').style.display=="none") ? "":"none";if(getCookie('sidebar_' + item) == "1"){eraseCookie('sidebar_' + item);if((document.getElementById('dp_divB'))&&(getCookie('sidebar_ma') != "1")&&(getCookie('sidebar_s') != "1")){document.getElementById('dp_divB').style.display = "";}}else{createCookie('sidebar_' + item,1,'');if((document.getElementById('dp_divB'))&&((getCookie('sidebar_ma') == "1")||(getCookie('sidebar_s') == "1"))){document.getElementById('dp_divB').style.display = "none";}}}function linkSB(url){location.href = url;}function createCookie(name,value,days){if (days){var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires = "; expires="+date.toGMTString();}else var expires = "";document.cookie = name+"="+value+expires+"; path=/";}function getCookie(name){var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++){var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}function eraseCookie(name){createCookie(name,"",-1);}function editSBselected(theForm, theVal, theDomain){if (theVal){theForm.searchSBselected.value = theForm.searchSBselected.value + '|' + theDomain + '|'}else{var theStr = theForm.searchSBselected.value;theStr = theStr.replace('|' + theDomain + '|', '');theForm.searchSBselected.value = theStr}}function checkSBDomain(searchForm){var canSubmit = false;var searchValue;if ('' == '' && searchForm.domainToCheck){searchValue = searchForm.domainToCheck.value;if (searchValue != ''){var regExInvalidChars = /[^a-zA-Z0-9-\s.]+/;if (regExInvalidChars.test(searchValue)){alert('Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.')}else{canSubmit = true;}}}if (canSubmit){return true;}else{return false;}}function enterkey(frm,e){var keycode;if (window.event) keycode = window.event.keyCode;else if (e) keycode = e.which;if (keycode == 13) frm.submit();}function popPage(pagename, cici, progid, apphdr){var pgurl = 'se=%2B&prog%5Fid=gowebsite&app%5Fhdr=0&ci=cici';pgurl = pgurl.replace('cici', cici);if (progid != ''){pgurl = pgurl.replace('gowebsite', progid);}if (apphdr != ''){pgurl = pgurl.replace('hdr=0', 'hdr=' + apphdr);}if (pagename.indexOf('?') <= 0){pgurl = '?' + pgurl}else{pgurl = '&' + pgurl}if ((pagename.indexOf('http://') < 0)&&(pagename.indexOf('https://') < 0)){pgurl = ('https://www.securepaynet.net/gdshop/' + pagename + pgurl);}else{pgurl = (pagename + pgurl);}var win=window.open(pgurl, 'spop', 'left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620');}function popAnchor(pagename, cici, anchor){var pgurl = 'se=%2B&prog%5Fid=gowebsite&app%5Fhdr=0&ci=cici';pgurl = pgurl.replace('cici', cici);if (pagename.indexOf('?') <= 0){pgurl = '?' + pgurl}else{pgurl = '&' + pgurl}if ((pagename.indexOf('http://') < 0)&&(pagename.indexOf('https://') < 0)){pgurl = ('https://www.securepaynet.net/gdshop/' + pagename + pgurl);}else{pgurl = (pagename + pgurl);}if (anchor != ''){pgurl = pgurl + '#' + anchor}var win=window.open(pgurl, 'spop', 'left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620');}function popFaq(article_id){var faqurl = 'http://help.securepaynet.net/article.php?se=%2B&prog%5Fid=gowebsite&app%5Fhdr=0&article%5Fid=fff';faqurl = faqurl.replace('fff', article_id);var win=window.open(faqurl, 'spop', 'left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620');}function popFaqTopic(topic_id){var faqurl = 'http://help.securepaynet.net/article_list.php?se=%2B&prog%5Fid=gowebsite&app%5Fhdr=0&topic%5Fid=fff';faqurl = faqurl.replace('fff', topic_id);var win=window.open(faqurl, 'spop');}//for abandon popupvar internal_clicked = false;function processLinks(){//set internal_clicked on all linksvar links = document.getElementsByTagName("A");for (var i=0; i < links.length; i++){if(!links[i].onclick) links[i].onclick = function(){internal_clicked = true;}}//set internal_clicked on all form submitsvar forms = document.getElementsByTagName("FORM");for (var i=0; i < forms.length; i++){if(!links[i].onsubmit) forms[i].onsubmit = function(){internal_clicked = true;}}}function abandonWin(){if (!internal_clicked) //show abandon popup{var target = "_abandon";var url = "https://www.securepaynet.net/gdshop/jump_pages/abandon.asp?se=%2B&prog%5Fid=gowebsite&app%5Fhdr=99&location=locationurl";var loc = document.location.href;loc += (loc.indexOf('?') > 0) ? "&":"?";if (loc.indexOf('domainToCheck') < 1) loc += "domainToCheck=&tld=&checkAvail=&currStep="loc = passedURLEncode(loc);url = url.replace('locationurl', loc);var winWidth = 500;var winHeight = 420;var options = "resizable=0,scrollbars=0,status=0,location=0,menubar=0,toolbar=0,";options += "width=" + winHeight + ",";options += "height=" + winHeight + ",";options += "screenY=" + ((screen.availHeight - winHeight) /2) + ",";options += "top=" + ((screen.availHeight - winHeight) /2) + ",";options += "screenX=" + ((screen.availWidth - winWidth) /2) + ",";options += "left=" + ((screen.availWidth - winWidth) /2) + ",";var win = window.open(url,target,options); win.focus();}}function passedURLEncode(str){str = str.replace(/\?/g,"!");str = str.replace(/=/g,"^");str = str.replace(/&/g,"$");return str;}var agt=navigator.userAgent.toLowerCase();var is_opera = (agt.indexOf("opera") != -1);function ShowHelp(obj,field){//Get help objectvar helpObj;if (document.all){helpObj = document.all[field+"_help"];}else if (document.getElementById){helpObj = document.getElementById(field+"_help");}if (helpObj) {//if help object is shown, hide it ; if object hidden, show itif (helpObj.style.display == ""){helpObj.style.display = "none";}else{helpObj.style.display = "";}//Get location of mouseover object, move help object to the left if will display off-screenvar divWidth = 340;var offsetLeft = getOffsetLeft(obj);var screenWidth = (window.innerWidth) ? window.innerWidth - 25 : document.body.clientWidth;if ((offsetLeft + divWidth) > screenWidth) offsetLeft = screenWidth - divWidth;newX = offsetLeft;//Get location of mouseover object, move help object on top if will display off-screenvar divHeight = helpObj.offsetHeight;var offsetTop = getOffsetTop(obj) + obj.offsetHeight;var screenHeight = (window.innerHeight) ? window.innerHeight - 25 : document.body.clientHeight;if ((offsetTop + divHeight) > screenHeight + getScrollY()) offsetTop = getOffsetTop(obj) - divHeight;newY = offsetTop;helpObj.style.top = newY;helpObj.style.left = newX;if (helpObj.style.display == ""){qh_hideElement("select",helpObj);qh_hideElement("object",helpObj);qh_hideElement("embed",helpObj);  }else{qh_showElement("select");qh_showElement("object");qh_showElement("embed");}}}function getOffsetTop (elm) {var mOffsetTop = elm.offsetTop;var mOffsetParent = elm.offsetParent;while (mOffsetParent) {mOffsetTop += mOffsetParent.offsetTop;mOffsetParent = mOffsetParent.offsetParent;}return mOffsetTop;}function getOffsetLeft (elm) {var mOffsetLeft = elm.offsetLeft;var mOffsetParent = elm.offsetParent;while (mOffsetParent) {mOffsetLeft += mOffsetParent.offsetLeft;mOffsetParent = mOffsetParent.offsetParent;}return mOffsetLeft;}function getScrollY() {var scrOfY = 0;if( typeof( window.pageYOffset ) == 'number' ) {//NetscapescrOfY = window.pageYOffset;}else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {//DOMscrOfY = document.body.scrollTop;}else if( document.documentElement &&( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {//IE6scrOfY = document.documentElement.scrollTop;}return scrOfY;}function qh_hideElement( elmID, overDiv ) {if(document.all) {for(i = 0; i < document.all.tags( elmID ).length; i++) {obj = document.all.tags( elmID )[i];if(!obj || !obj.offsetParent) continue;// Find the element's offsetTop and offsetLeft relative to the BODY tag.objLeft   = obj.offsetLeft;objTop    = obj.offsetTop;objParent = obj.offsetParent;while(objParent.tagName.toUpperCase() != 'BODY') {objLeft  += objParent.offsetLeft;objTop   += objParent.offsetTop;objParent = objParent.offsetParent;}objHeight = obj.offsetHeight;objWidth  = obj.offsetWidth;if((overDiv.offsetLeft + overDiv.offsetWidth) <= objLeft);else if((overDiv.offsetTop + overDiv.offsetHeight) <= objTop);else if(overDiv.offsetTop >= (objTop + objHeight));else if(overDiv.offsetLeft >= (objLeft + objWidth));else {obj.style.visibility = 'hidden';}}}}function qh_showElement(elmID) {if(document.all) {for(i = 0; i < document.all.tags( elmID ).length; i++) {obj = document.all.tags(elmID)[i];if(!obj || !obj.offsetParent) continue;obj.style.visibility = '';}}}
