function show(q){ identity=document.getElementById('cmdsubscribe'); identity.className=q; } function validateEmail(email, msg, optional) { if (!email.value && optional) { return true; } var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/; if (!re_mail.test(email.value)) { alert(msg); email.focus(); email.select(); return false; } return true; } function swapImage(sid,dest){ document.getElementById(sid).setAttribute('src',dest) } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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