hot0_img=1; hot1_img=2;
//---------- BLOCK DATA ----------------
it_str=" "; win=null;
sline="______________________________________";
mas0=["Family Name","First Name","Title","Position","Date  of Birth","","Department","Institution","P.O. Box/Street Address",
      "ZIP Code","City","Country","Phone","Mobile","Fax ","E-mail"
     ];
mas5=["Credit Card No.","Exp. date","Card Holder Name","Passport No.","Valid through",
      "Card type(CVV2 No.)","Card type(CVC2 No.)","Date"];
//------------------------------------------------------
function itog()
{
str="<center style='font-size:18px;font-weight:bold;'>CHECK YOUR REGISTRATION FORM AND PRESS THE &quot;SUBMIT&quot; BUTTON BELOW<br>";
str+="THE FORM IS NOT SENT UNLESS YOU PRESS &quot;SUBMIT&quot;.</center><br>";
str+="<table border=0 cellpadding=7 style='font-size:14px;font-family: courier new,arial;'>";
pt=document.forms[0];
// COMMON INFO
st="document.forms[0].f";
for(i=0;i<16;i++)
{
 str+="<tr>";
 ft=eval(st+i);
 if(i == 2 || i == 11 || i==5){
  if(i==5) 
  {
   if(pt.f5[0].checked) { str+="<td colspan=2><b>"+pt.f5[0].value+"</b></td>"; }
   if(pt.f5[1].checked) { str+="<td colspan=2><b>"+pt.s5_0[1].value+"</b></td>"; }
  }
  else str+="<td><b>"+mas0[i]+" :</b></td><td>"+ft.value+"</td>";
 }
 else {
  txt=ft.value;
  if(i != 6 && i != 14){if(txt.length<2 || txt=="  "){window.alert("Data in '"+mas0[i]+"' is missing");return;} }
  str+="<td><b>"+mas0[i]+" :</b></td><td>"+txt+"</td>";
 }
 str+="</tr>";
}
//-----
ns_stype=true; txt="";
for(i=0;i<12;i++) if(pt.xf[i].checked) {ns_stype=false; txt=pt.xf[i].value; break;}
if(ns_stype) {window.alert("Data in 'WIPO Section' is missing");return;}
str+="<tr><td><b>WIPO Section :</b></td><td>"+txt+"</td></tr>";
ns_stype=true; txt="";
for(i=0;i<4;i++) if(pt.yf[i].checked) {ns_stype=false; txt=pt.yf[i].value; break;}
if(ns_stype) {window.alert("Data in 'Membership Annual Dues' is missing");return;}
str+="<tr><td><b>Membership Annual Dues :</b></td><td>"+txt+"</td></tr>";
str+="<tr><td colspan=2>"+sline+"</td></tr></table><br>";
//-----
 //BAMK OR CARD
 yes_card=false;
 if(pt.s5_0[0].checked)
  { str+="<big><b>"+pt.s5_0[0].value+"</b></big><br>"; yes_card=true; }
 if(pt.s5_0[1].checked)
  { str+="<big><b>"+pt.s5_0[1].value+"</b></big><br>"; yes_card=true; }
 if(yes_card)
  {
  st="document.forms[0].card";
  for(i=0;i<8;i++){
   ft=eval(st+i); txt=ft.value;
   //if(i<4 && (txt.length<2 || txt=="  ")){window.alert("Data in '"+alr+"' is missing");return;}
   str+="<b>"+mas5[i]+" :</b >  "+txt+"<br>";
   }
  }
str+=sline+"<br>";
//-----
str+="</pre>";
it_str=str;
it_doc="<body>"+str;
it_doc+="<form action='ta_1009/script/reg.php?rt=2' method='post'>";
it_doc+="<input type='hidden' name='p0'><input type='hidden' name='p1'>";
it_doc+="<input type='hidden' name='p2'><input type='hidden' name='p3'>";
it_doc+="<input type='hidden' name='p4'>";
it_doc+="<input type='hidden' name='p5'><input type='hidden' name='p6'>";
it_doc+="<input type='hidden' name='p7'><br><br>";
it_doc+="<center><input type='button' style='font-size:20px;' value='Submit' onclick='opener.subm2();'></form></center><br><br>";
it_doc+="</body>";
cl_win();
win=open("","subm","width=710,height=480,menubar,scrollbars");win.document.write(it_doc);
}
//-----------------------------------
function subm2()
{
pt=document.forms[0];
e_mail=pt.f15.value; fam=pt.f0.value;
fid="f"+Math.round(Math.random()*999)+"_"+Math.round(Math.random()*980);
firstn=pt.f1.value; form_of=0;
country=pt.f11.value;
//----
pt2=win.document.forms[0];
pt2.p0.value=e_mail; pt2.p1.value=fam;
pt2.p2.value=it_str; pt2.p3.value=fid;
pt2.p4.value=""; pt2.p5.value=firstn;
pt2.p6.value=form_of; pt2.p7.value=country;
pt2.submit();
}
//-----------------------------------
function cl_win()
{
try{
win.close();
}catch(ex){}
}
//-----------------------------------
