function openFullscreen(page,w,h) { var yes = 1; var no = 0; var menubar = no; // The File, Edit, View Menus var scrollbars = no; // Horizontal and vertical scrollbars var locationbar = no; // The location box with the site URL var directories = no; // the "What's New", "What Cool" links var resizable = no; // Can the window be resized? var statusbar = no; // Status bar (with "Document: Done") var toolbar = no; // Back, Forward, Home, Stop toolbar windowprops = "width=" + w + ",height=" + h + ",top=0,left=0"; windowprops += (menubar ? ",menubars" : "") + (scrollbars ? ",scrollbars" : "yes") + (locationbar ? ",location" : "") + (directories ? ",directories" : "") + (resizable ? ",resizable" : "") + (statusbar ? ",status" : "") + (toolbar ? ",toolbar" : ""); window.open(page, 'fullPopup', windowprops); } function toggle_state(obj,tbl){ if(obj.checked == true){ tbl.style.display = "block"; } else{ tbl.style.display = "none"; } } function gift_enable() { document.all.giftcard.style.display = "block"; } function gift_disable() { document.all.giftcard.style.display = "none"; } function changeBox(cbox) { box = eval(cbox); box.checked = !box.checked; } function checkFields() { error = false; cur = document.orderform; curid = document.all; if ((cur.payment_name.value == "") || (cur.payment_name.value.length < 5)) { cur.payment_name.id = 'formerr'; curid["nameok"].className = "required-error"; error = true; } else { cur.payment_name.id = 'form'; curid["nameok"].className = "required"; } if ((cur.payment_personal_id1.value == "") || (cur.payment_personal_id1.value.length != 6)) { cur.payment_personal_id1.id = 'formerr'; curid["idok"].className = "required-error"; error = true; } else { cur.payment_personal_id1.id = 'form'; curid["idok"].className = "required"; } if ((cur.payment_personal_id2.value == "") || (cur.payment_personal_id2.value.length != 5)) { cur.payment_personal_id2.id = 'formerr'; curid["idok"].className = "required-error"; error = true; } else { cur.payment_personal_id2.id = 'form'; curid["idok"].className = "required"; } if ((cur.payment_rec_name.value == "") || (cur.payment_rec_name.value.length < 5)) { cur.payment_rec_name.id = 'formerr'; curid["rnameok"].className = "required-error"; error = true; } else { cur.payment_rec_name.id = 'form'; curid["rnameok"].className = "required"; } if ((cur.payment_adress.value == "") || (cur.payment_adress.value.length < 10)) { cur.payment_adress.id = 'formerr'; curid["addrok"].className = "required-error"; error = true; } else { cur.payment_adress.id = 'form'; curid["addrok"].className = "required"; } if ((cur.payment_phone.value == "") || (cur.payment_phone.value.length < 7)) { cur.payment_phone.id = 'formerr'; curid["phoneok"].className = "required-error"; error = true; } else { cur.payment_phone.id = 'form'; curid["phoneok"].className = "required"; } if ((cur.payment_rec_phone.value == "") || (cur.payment_rec_phone.value.length < 7)) { cur.payment_rec_phone.id = 'formerr'; curid["rphoneok"].className = "required-error"; error = true; } else { cur.payment_rec_phone.id = 'form'; curid["rphoneok"].className = "required"; } if ((cur.payment_date.value == "") || (cur.payment_date.value.length < 7)) { cur.payment_date.id = 'formerr'; curid["dateok"].className = "required-error"; error = true; } else { cur.payment_date.id = 'form'; curid["dateok"].className = "required"; } if ((cur.payment_email.value == "") || (cur.payment_email.value.indexOf('@') == -1) || (cur.payment_email.value.indexOf('.') == -1)) { cur.payment_email.id = 'formerr'; curid["emailok"].className = "required-error"; error = true; } else { cur.payment_email.id = 'form'; curid["emailok"].className = "required"; } if (curid.giftcard.style.display != "none") { if ((cur.payment_rec_gift_card.value == "") || (cur.payment_rec_gift_card.value.length != 14)) { cur.payment_rec_gift_card.id = 'formerr'; curid["rgiftok"].className = "required-error"; error = true; } else { cur.payment_rec_gift_card.id = 'form'; curid["rgiftok"].className = "required"; } } if (cur.payment_isorg.checked == true) { if ((cur.payment_orgname.value == "") || (cur.payment_orgname.value.length < 3)) { cur.payment_orgname.id = 'formerr'; curid["orgnameok"].className = "required-error"; error = true; } else { cur.payment_orgname.id = 'form'; curid["orgnameok"].className = "required"; } if ((cur.payment_orgpvn.value == "") || (cur.payment_orgpvn.value.length < 8)) { cur.payment_orgpvn.id = 'formerr'; curid["orgpvnok"].className = "required-error"; error = true; } else { cur.payment_orgpvn.id = 'form'; curid["orgpvnok"].className = "required"; } if ((cur.payment_orgadress.value == "") || (cur.payment_orgadress.value.length < 8)) { cur.payment_orgadress.id = 'formerr'; curid["orgaddrok"].className = "required-error"; error = true; } else { cur.payment_orgadress.id = 'form'; curid["orgaddrok"].className = "required"; } if ((cur.payment_orgpost.value == "") || (cur.payment_orgpost.value.length < 4)) { cur.payment_orgpost.id = 'formerr'; curid["orgpostok"].className = "required-error"; error = true; } else { cur.payment_orgpost.id = 'form'; curid["orgpostok"].className = "required"; } } if (error == true) { alert(altext); return false; } else { document.orderform.submit(); } }