More

Guam Trip Builder

You have the following items saved in your itinerary. View Trip
Go
Go
menu icon close menu icon

众购彩票入口导航

Contact Info

Please select if you would like to receive our e-newsletter.

Tell Us More About Yourself

* Indicates a required field.



Please enter the 4 character string shown in the box above.

'; html += '
'; html += ''; html += '
'; html += '<' + '/' + 'body' + '>' + '<' + '/' + 'html' + '>'; var iframeElm = document.getElementById('fileDeleterIframe_'+fldId); if(iframeElm){iframeElm.parentNode.removeChild(iframeElm);} var iframe = document.createElement('iframe'); iframe.id = 'fileDeleterIframe_'+fldId; iframe.style.display = 'none'; document.body.appendChild(iframe); iframe.contentWindow.document.open(); iframe.contentWindow.document.write(html); iframe.contentWindow.document.close(); }catch(e){ //nothing for now } document.getElementById(fldId+'_formbuilder_hidden').value = ''; var dispElm = document.getElementById(fldId+'_display'); dispElm.innerHTML = ''; dispElm.style.display = 'none'; //recreate the element window.svcrm.formBuilderScripts.recreateFileInputElm(fldId); }; //this function will handle the postMessage's it will make sure that it is coming from the valid crm domain, it will then call the addFile() function passing along the returned json object var _handlePostMessage = function(evt){ //check for correct postMessage source if(typeof evt.origin != 'undefined'){ //only run this if we are from the correct domain var _fixedOrigin = evt.origin + ( (evt.origin.substring(evt.origin.length-1,evt.origin.length) != '/') ? '/' : ''); var crmappurl = 'https://Guam.simpleviewcrm.com/'; if(_fixedOrigin.toLowerCase().indexOf(crmappurl.toLowerCase()) != -1){ var _postMsgRtn = JSON.parse(evt.data); //json parse the returned data window.svcrm.formBuilderScripts.addFile(_postMsgRtn); //we will let the addFile handle any errors the same way as call from within crm form } } }; if (window.addEventListener) { window.addEventListener('message', _handlePostMessage, false); } else if (window.attachEvent) { window.attachEvent('onmessage', _handlePostMessage); } })();