function isSecure() { return window.location.protocol == 'https:'; } function ReadHTTPParamURL() { httpParameterURL = ""; // Create variable is_input to see if there is a ? in the url var is_input = document.URL.indexOf('?'); // Check the position of the ? in the url if (is_input != -1) { // Create variable from ? in the url to the end of the string httpParameterURL = document.URL.substring(is_input+1, document.URL.length); } return httpParameterURL; } var thisPage; if (document.URL.indexOf('?') != -1) thisPage = document.URL.substring(0, document.URL.indexOf('?')); else thisPage = document.URL; var httpParams = ReadHTTPParamURL(); if (httpParams != "") httpParams = httpParams + "&"; var zmailScriptsDomain = 'https://www.tcgms.net'; try{ if(typeof zdScriptsDomain != 'undefined') { zmailScriptsDomain = zdScriptsDomain; } } catch(e){} var zmailDomain = 'https://www.tcgms.net'; try{ if(typeof zdAppDomain != 'undefined') { zmailDomain = zdAppDomain; } } catch(e){} zmailURL = zmailDomain+"/app/new/"+zmailApp+"?remote=on&"+httpParams+"thisPage="+thisPage; try { if (lang != undefined && lang != null && lang != "") zmailURL = zmailURL + "&lang=" + lang; } catch (exc) {} try { if (pl != undefined && pl != null && pl != "") zmailURL = zmailURL + "&pl=" + pl; } catch (exc) {} try { if (guestEmail != undefined && guestEmail != null && guestEmail != "") zmailURL = zmailURL + "&guestEmail=" + guestEmail; } catch (exc) {} try { if (guestId != undefined && guestId != null && guestId != "") zmailURL = zmailURL + "&guestId=" + guestId; } catch (exc) {} try { if (!jQuery) document.write (''); } catch (exc) { document.write (''); } try { if (!jQuery.ui) { document.write(""); document.write(''); } } catch (exc) { document.write(""); document.write(''); } try { document.write(""); } catch(e) {} document.write ("");