//===================================================== // VALIDATE FORM INFO //===================================================== function MM_findObj(n, d) { //v4.01 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 */ //===================================================== // GET FORM INFO //===================================================== //Initialize Varialbles var name = ""; var organization = ""; var address = ""; var address2 = ""; var city = ""; var state = ""; var other = ""; var zip = ""; var country = ""; var phone = ""; var email = ""; var promo =""; var qty = ""; var ccname = ""; var cctype = ""; var ccnum = ""; var ccmonth = ""; var ccyear = ""; // Example: function readCookie() { var cookieValue = ""; //Initialize the variable if (document.cookie) //Look for a cookie { //unescape the cookie data var cookieValue = unescape (document.cookie); var reg_info = cookieValue.split("="); //Check the name of the cookie if (reg_info[0] == "LPMAG_SUBSCRIBE") //If name matches, parse all data to the right of "=" { var data = reg_info[1].split(";"); //Looks for delimiter and passes values into an array //Populate Variables with Cookie Data var name = data[0]; var organization = data[1]; var address = data[2]; var address2 = data[3]; var city = data[4]; var state = data[5]; var other = data[6]; var zip = data[7]; var country = data[8]; var phone = data[9]; var email = data[10]; var guest = data[11]; var qty = data[12]; var ccname = data[13]; var cctype = data[14]; var ccnum = data[15]; var ccmonth = data[16]; var ccyear = data[17]; } } //WRITE THE RECEIPT var receipt = "

Thank you for subscribing to Law Practice Magazine. You should receive your first issue within 4-6 weeks. We hope that you enjoy your subscription!

Please print and keep this page for your records.

" + "

Law Practice Magazine Subscription Information

" + ""; document.write (receipt); //window.print(); }