var exit=true; function xitpop() { if (exit) open('/dontgo.asp','','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,height=500,width=450'); } //a public function that the container uses to pass in values for the labels function Labels(label1, label2, label3){ t1.innerText = label1; t2.innerText = label2; t3.innerText = label3; } //a public function that the container uses to pass in values for the card containers function Contents(contents1, contents2, contents3){ t1Contents.innerHTML = contents1; t2Contents.innerHTML = contents2; t3Contents.innerHTML = contents3; init(); } //sets the default display to tab 1 function init(){ tabContents.innerHTML = t1Contents.innerHTML; } //this is the tab switching function var currentTab; var tabBase; var firstFlag = true function changeTabs(){ if(firstFlag == true){ currentTab = t1; tabBase = t1base; firstFlag = false; } if(window.event.srcElement.className == "tab"){ currentTab.className = "tab"; tabBase.style.backgroundColor = "white"; currentTab = window.event.srcElement; tabBaseID = currentTab.id + "base"; tabContentID = currentTab.id + "Contents"; tabBase = document.all(tabBaseID); tabContent = document.all(tabContentID); currentTab.className = "selTab"; tabBase.style.backgroundColor = ""; tabContents.innerHTML = tabContent.innerHTML; } } function ManageTabPanelDisplay() { var idlist = new Array('tab1focus','tab2focus','tab3focus','tab1ready','tab2ready','tab3ready','content1','content2','content3'); // No other customizations are necessary. if(arguments.length < 1) { return; } for(var i = 0; i < idlist.length; i++) { var block = false; for(var ii = 0; ii < arguments.length; ii++) { if(idlist[i] == arguments[ii]) { block = true; break; } } if(block) { document.getElementById(idlist[i]).style.display = "block"; } else { document.getElementById(idlist[i]).style.display = "none"; } } } function copy_accounting_contact() { document.all.RS1_copy_invoices_first_name.value = document.all.RS1_first_name.value; document.all.RS1_copy_invoices_last_name.value = document.all.RS1_last_name.value; document.all.RS1_copy_invoices_email.value = document.all.RS1_email.value; document.all.RS1_copy_invoices_phone.value = document.all.RS1_phone.value; document.all.RS1_copy_invoices_fax.value = document.all.RS1_fax.value; } function copy_accounting_contact2() { document.all.RS1_copy_invoices_first_name.value = document.all.RS1_accounting_contact_first_name.value; document.all.RS1_copy_invoices_last_name.value = document.all.RS1_accounting_contact_last_name.value; document.all.RS1_copy_invoices_email.value = document.all.RS1_accounting_contact_email.value; document.all.RS1_copy_invoices_phone.value = document.all.RS1_accounting_contact_phone.value; document.all.RS1_copy_invoices_fax.value = document.all.RS1_accounting_contact_fax.value; } function copy_invoice_contact() { document.all.RS1_accounting_contact_first_name.value = document.all.RS1_first_name.value; document.all.RS1_accounting_contact_last_name.value = document.all.RS1_last_name.value; document.all.RS1_accounting_contact_email.value = document.all.RS1_email.value; document.all.RS1_accounting_contact_phone.value = document.all.RS1_phone.value; document.all.RS1_accounting_contact_fax.value = document.all.RS1_fax.value; } function need_Development(itm) { if (itm.checked) { if (confirm("All design development is processed through the Art Department. Please click 'OK' to proceed to Art Project Submission Page.")) { self.location.href="ArtProject_Submit.asp"; } else { itm.checked = false; } } } function ConvertFraction(val) { if (!isNaN(parseFloat(val))) { var newVal = new String(val); var rtnValue = 0 newVal = newVal.replace("\"", ""); newVal = newVal.replace("\'", ""); newVal = newVal.replace(" ", " "); newVal = newVal.replace(" ", "+"); return eval(newVal); } else return 0; } function formatMoney(value) { result = "$"+Math.floor(value)+"."; var cents = 100*(value-Math.floor(value))+0.5; result += Math.floor(cents/10); result += Math.floor(cents%10); return result; } function AddOther(SelectBox) { var OtherText; OtherText = prompt("Describe the OTHER option.","") if ((OtherText != "") && (OtherText != null)) { SelectBox.options[SelectBox.options.length]=new Option(OtherText, "0"); SelectBox.selectedIndex = SelectBox.options.length-1; } return true; } function newScrollPrintWindow(URL, width, height) { window.open(URL, "FETSub", "scrollbars=yes,width=" + width + ",height=" + height + ",menubar=yes,toolbar=no,titlebar=no,status=no"); } function newScrollWindow(URL, width, height) { window.open(URL, "FETSub", "scrollbars=yes,width=" + width + ",height=" + height + ",menubar=no,toolbar=no,titlebar=no,status=no"); } function newWindow(URL, width, height) { window.open(URL, "FETSub", "scrollbars=no,width=" + width + ",height=" + height + ",menubar=no,toolbar=no,titlebar=no,status=no"); } function newAdWindow(URL) { window.open(URL, "Advertisement", "scrollbars=yes,width=640,height=480,menubar=yes,toolbar=yes,titlebar=yes,status=yes,resizable=yes"); } function ValidateOrderUpdate() { //Validate Artwork File var Artwork; Artwork = document.all.artwork.value; if (!(Artwork.length>0)) { alert("You must provide a valid \"Artwork File\" format (.jpg, .gif, .tif, .psd, .cdr, .eps, .ai) before continuing."); document.all.artwork.focus(); return false; } newWindow("/members/Uploading.asp",300,240); document.all.frmMain.submit(); } function China_ValidateOrderProcess() { //Completed Flag var Completed; Completed = document.all.Completed.checked; var Uploading; Uploading = false; //Validate DTS File var DTS; DTS = document.all.DTSFile.value; if ((DTS.length == 0) && (Completed) && (document.all.dtsfilecomplete.value != "true")) { alert("To complete the order you must provide a valid \"DTS File\"."); document.all.DTSFile.focus(); return false; } if (DTS.length !=0) Uploading=true; //Validate Screen Shot var ScreenshotExt; ScreenshotExt = document.all.Screenshot.value.substr(document.all.Screenshot.value.indexOf(".")).toLowerCase(); if ((ScreenshotExt != ".jpg") && (ScreenshotExt != ".gif") && (ScreenshotExt != ".tif") && (Completed) && (document.all.screenshotfilecomplete.value != "true")) { alert("You must provide a valid \"Screenshot File\" format (.jpg, .gif, .tif) before continuing."); document.all.Screenshot.focus(); return false; } if (ScreenshotExt.length !=0) Uploading=true; //Validate Stitch Count if (!(parseFloat(document.all.StitchCount.value) > 0 && parseFloat(document.all.StitchCount.value) < 999999)) { alert("You must provide a valid \"stitch count\" before continuing."); document.all.StitchCount.focus(); return false; } if (Uploading) newWindow("/members/Uploading.asp",300,240); document.all.frmMain.submit(); } function Artist_ValidateOrderProcess() { //Completed Flag var Completed; Completed = document.all.Completed.checked; var Uploading; Uploading = false; //Validate Screen Shot var artworkExt; artworkExt = document.all.artwork.value.substr(document.all.artwork.value.indexOf(".")).toLowerCase(); if ((artworkExt != ".jpg") && (artworkExt != ".gif") && (artworkExt != ".tif") && (Completed) && (document.all.artworkfilecomplete.value != "true")) { alert("You must provide a valid \"artwork File\" format (.jpg, .gif, .tif) before continuing."); document.all.artwork.focus(); return false; } if (artworkExt.length !=0) Uploading=true; if (Uploading) newWindow("/members/Uploading.asp",300,240); document.all.frmMain.submit(); } function FrontPage_Form1_Validator1(theForm) { if (theForm.account.value == "") { alert("Please enter a value for the \"Account Number\" field."); theForm.account.focus(); return (false); } if (theForm.account.value.length < 1) { alert("Please enter at least 1 characters in the \"Account Number\" field."); theForm.account.focus(); return (false); } if (theForm.password.value == "") { alert("Please enter a value for the \"Password\" field."); theForm.password.focus(); return (false); } if (theForm.password.value.length < 4) { alert("Please enter at least 4 characters in the \"Password\" field."); theForm.password.focus(); return (false); } if (theForm.password.value.length > 8) { alert("Please enter at most 8 characters in the \"Password\" field."); theForm.password.focus(); return (false); } return (true); } function Load_Header_Images() { if (document.images) { home_top_l_r2_c1_f2 = new Image(93 ,44); home_top_l_r2_c1_f2.src = "/media/home_top_l_r2_c1_f2.gif"; home_top_l_r2_c1_f1 = new Image(93 ,44); home_top_l_r2_c1_f1.src = "/media/home_top_l_r2_c1.gif"; home_top_l_r2_c2_f2 = new Image(86 ,44); home_top_l_r2_c2_f2.src = "/media/home_top_l_r2_c2_f2.gif"; home_top_l_r2_c2_f1 = new Image(86 ,44); home_top_l_r2_c2_f1.src = "/media/home_top_l_r2_c2.gif"; home_top_l_r2_c3_f2 = new Image(58 ,44); home_top_l_r2_c3_f2.src = "/media/home_top_l_r2_c3_f2.gif"; home_top_l_r2_c3_f1 = new Image(58 ,44); home_top_l_r2_c3_f1.src = "/media/home_top_l_r2_c3.gif"; home_top_l_r2_c4_f2 = new Image(79 ,44); home_top_l_r2_c4_f2.src = "/media/home_top_l_r2_c4_f2.gif"; home_top_l_r2_c4_f1 = new Image(79 ,44); home_top_l_r2_c4_f1.src = "/media/home_top_l_r2_c4.gif"; home_top_l_r2_c5_f2 = new Image(94 ,44); home_top_l_r2_c5_f2.src = "/media/home_top_l_r2_c5_f2.gif"; home_top_l_r2_c5_f1 = new Image(94 ,44); home_top_l_r2_c5_f1.src = "/media/home_top_l_r2_c5.gif"; home_top_r_r2_c3_f2 = new Image(43 ,25); home_top_r_r2_c3_f2.src = "/media/home_top_r_r2_c3_f2.gif"; home_top_r_r2_c3_f1 = new Image(43 ,25); home_top_r_r2_c3_f1.src = "/media/home_top_r_r2_c3.gif"; bottom_links_r2_c2_f2 = new Image(104 ,35); bottom_links_r2_c2_f2.src = "/media/bottom_links_r2_c2_f2.gif"; bottom_links_r2_c2_f1 = new Image(104 ,35); bottom_links_r2_c2_f1.src = "/media/bottom_links_r2_c2.gif"; bottom_links_r2_c3_f2 = new Image(155 ,35); bottom_links_r2_c3_f2.src = "/media/bottom_links_r2_c3_f2.gif"; bottom_links_r2_c3_f1 = new Image(155 ,35); bottom_links_r2_c3_f1.src = "/media/bottom_links_r2_c3.gif"; bottom_links_r2_c4_f2 = new Image(136 ,35); bottom_links_r2_c4_f2.src = "/media/bottom_links_r2_c4_f2.gif"; bottom_links_r2_c4_f1 = new Image(136 ,35); bottom_links_r2_c4_f1.src = "/media/bottom_links_r2_c4.gif"; bottom_links_r2_c5_f2 = new Image(147 ,35); bottom_links_r2_c5_f2.src = "/media/bottom_links_r2_c5_f2.gif"; bottom_links_r2_c5_f1 = new Image(147 ,35); bottom_links_r2_c5_f1.src = "/media/bottom_links_r2_c5.gif"; bottom_links_r2_c6_f2 = new Image(137 ,35); bottom_links_r2_c6_f2.src = "/media/bottom_links_r2_c6_f2.gif"; bottom_links_r2_c6_f1 = new Image(137 ,35); bottom_links_r2_c6_f1.src = "/media/bottom_links_r2_c6.gif"; logged_top_headerasp_r4_c1_f2 = new Image(93 ,44); logged_top_headerasp_r4_c1_f2.src = "/includefiles/images/logged_top_header.asp_r4_c1_f2.gif"; logged_top_headerasp_r4_c1_f1 = new Image(93 ,44); logged_top_headerasp_r4_c1_f1.src = "/includefiles/images/logged_top_header.asp_r4_c1.gif"; logged_top_headerasp_r4_c3_f2 = new Image(86 ,44); logged_top_headerasp_r4_c3_f2.src = "/includefiles/images/logged_top_header.asp_r4_c3_f2.gif"; logged_top_headerasp_r4_c3_f1 = new Image(86 ,44); logged_top_headerasp_r4_c3_f1.src = "/includefiles/images/logged_top_header.asp_r4_c3.gif"; logged_top_headerasp_r4_c5_f2 = new Image(58 ,44); logged_top_headerasp_r4_c5_f2.src = "/includefiles/images/logged_top_header.asp_r4_c5_f2.gif"; logged_top_headerasp_r4_c5_f1 = new Image(58 ,44); logged_top_headerasp_r4_c5_f1.src = "/includefiles/images/logged_top_header.asp_r4_c5.gif"; logged_top_headerasp_r4_c7_f2 = new Image(79 ,44); logged_top_headerasp_r4_c7_f2.src = "/includefiles/images/logged_top_header.asp_r4_c7_f2.gif"; logged_top_headerasp_r4_c7_f1 = new Image(79 ,44); logged_top_headerasp_r4_c7_f1.src = "/includefiles/images/logged_top_header.asp_r4_c7.gif"; logged_top_headerasp_r4_c8_f2 = new Image(94 ,44); logged_top_headerasp_r4_c8_f2.src = "/includefiles/images/logged_top_header.asp_r4_c8_f2.gif"; logged_top_headerasp_r4_c8_f1 = new Image(94 ,44); logged_top_headerasp_r4_c8_f1.src = "/includefiles/images/logged_top_header.asp_r4_c8.gif"; logged_top_headerasp_r4_c10_f2 = new Image(105 ,44); logged_top_headerasp_r4_c10_f2.src = "/includefiles/images/logged_top_header.asp_r4_c10_f2.gif"; logged_top_headerasp_r4_c10_f1 = new Image(105 ,44); logged_top_headerasp_r4_c10_f1.src = "/includefiles/images/logged_top_header.asp_r4_c10.gif"; logged_bottom_headerasp_r1_c13_f2 = new Image(98 ,38); logged_bottom_headerasp_r1_c13_f2.src = "/includefiles/images/logged_bottom_header.asp_r1_c13_f2.gif"; logged_bottom_headerasp_r1_c13_f1 = new Image(98 ,38); logged_bottom_headerasp_r1_c13_f1.src = "/includefiles/images/logged_bottom_header.asp_r1_c13.gif"; logged_bottom_headerasp_r1_c16_f2 = new Image(148 ,38); logged_bottom_headerasp_r1_c16_f2.src = "/includefiles/images/logged_bottom_header.asp_r1_c16_f2.gif"; logged_bottom_headerasp_r1_c16_f1 = new Image(148 ,38); logged_bottom_headerasp_r1_c16_f1.src = "/includefiles/images/logged_bottom_header.asp_r1_c16.gif"; logged_bottom_headerasp_r2_c1_f2 = new Image(114 ,29); logged_bottom_headerasp_r2_c1_f2.src = "/includefiles/images/logged_bottom_header.asp_r2_c1_f2.gif"; logged_bottom_headerasp_r2_c1_f1 = new Image(114 ,29); logged_bottom_headerasp_r2_c1_f1.src = "/includefiles/images/logged_bottom_header.asp_r2_c1.gif"; logged_bottom_headerasp_r2_c4_f2 = new Image(114 ,29); logged_bottom_headerasp_r2_c4_f2.src = "/includefiles/images/logged_bottom_header.asp_r2_c4_f2.gif"; logged_bottom_headerasp_r2_c4_f1 = new Image(114 ,29); logged_bottom_headerasp_r2_c4_f1.src = "/includefiles/images/logged_bottom_header.asp_r2_c4.gif"; logged_bottom_headerasp_r2_c6_f2 = new Image(122 ,29); logged_bottom_headerasp_r2_c6_f2.src = "/includefiles/images/logged_bottom_header.asp_r2_c6_f2.gif"; logged_bottom_headerasp_r2_c6_f1 = new Image(122 ,29); logged_bottom_headerasp_r2_c6_f1.src = "/includefiles/images/logged_bottom_header.asp_r2_c6.gif"; logged_bottom_headerasp_r2_c9_f2 = new Image(109 ,29); logged_bottom_headerasp_r2_c9_f2.src = "/includefiles/images/logged_bottom_header.asp_r2_c9_f2.gif"; logged_bottom_headerasp_r2_c9_f1 = new Image(109 ,29); logged_bottom_headerasp_r2_c9_f1.src = "/includefiles/images/logged_bottom_header.asp_r2_c9.gif"; logged_bottom_headerasp_r3_c12_f2 = new Image(138 ,41); logged_bottom_headerasp_r3_c12_f2.src = "/includefiles/images/logged_bottom_header.asp_r3_c12_f2.gif"; logged_bottom_headerasp_r3_c12_f1 = new Image(138 ,41); logged_bottom_headerasp_r3_c12_f1.src = "/includefiles/images/logged_bottom_header.asp_r3_c12.gif"; logged_bottom_headerasp_r3_c16_f2 = new Image(148 ,41); logged_bottom_headerasp_r3_c16_f2.src = "/includefiles/images/logged_bottom_header.asp_r3_c16_f2.gif"; logged_bottom_headerasp_r3_c16_f1 = new Image(148 ,41); logged_bottom_headerasp_r3_c16_f1.src = "/includefiles/images/logged_bottom_header.asp_r3_c16.gif"; } return true; } function MM_findObj(n, d) { //v3.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i