<!--
var a, vi, expr, dur;

function openpaymentwindow()
{
window.open("http://www.studyrussian.com/MGU/visa_quickbuy.html", "Online payment", "width=400, height=300"); 
}

function calculate()
{ 
a=document.visaForm.visa.selectedIndex;
dur=5;
expr=' ';
if (a==0) vi=70;
if (a==1) vi=100;
if (a==2) {vi=150; dur=14} 
if (a==3) {vi=160; dur=14}
if (a==4) {vi=200; dur=21}
if (a==5) {vi=250; dur=21}
if (a==6) {vi=1200; dur=12}
if (a==7) {vi=1200; dur=12}
if (document.visaForm.express.checked) 
 { if (a<4) {expr=30; dur=1;}
   if (a>3) {expr=100; dur=6;} 
 }
document.visaForm.duration.value=dur;
document.visaForm.cost.value=vi;
document.visaForm.exp.value=expr;
document.visaForm.Total.value=vi+expr
} 

function check() {
 if (document.visaForm.FirstName.value == "") {
 alert("Please indicate a valid First Name and fill out the form properly!");
 return(false);   
 } 
 if (document.visaForm.FamilyName.value == "") {
 alert("Please indicate a valid Family Name and fill out the form properly!");
 return(false);   
 } 
 if (document.visaForm.Address.value == "") {
 alert("Please indicate a valid Address and fill out the form properly!");
 return(false);   
 } 
 if (document.visaForm.Email.value == "") {
 alert("Please indicate a valid email address and fill out the form properly!");
 return(false);   
 } 
 if (document.visaForm.Passport.value == "") {
 alert("Please indicate a passport number and fill out the form properly!");
 return(false);   
 } 
 if (document.visaForm.Valid.value == "") {
 alert("Please indicate the date when your passport expires and fill out the form properly!");
 return(false);   
 } 
 if (document.visaForm.Fax.value == "") {
 alert("Please indicate a Fax number to send you the invitation letter. This is faster than by mail and acceptable to the Russian Consulates.");
 return(false);   
 } 
 if (document.visaForm.registration.checked == false) {
 alert("Please indicate that you have noticed that you must register your visa within 2 days after arrival in Russia.");
 return(false);   
 } 
 a=document.visaForm.visa.selectedIndex;
 if (document.visaForm.Company.value == "") {
   if (a>1) {
   alert("Your employment/work information is missing. Since you would like to stay longer than 1 month, you need to apply for a business visa and we must know this information to obtain an invitation letter.");
  return(false); }
 }

 return(true);
 }
// -->

