function _correct(){
		if(document.forms[0].fio.value.length<2){
		alert("your name error!");
		return false;
	    }
	    if(document.forms[0].city.value.length<2){
		alert("Country and city!");
		return false;
	    }
         if (!(errmail(document.forms[0].emails.value)))
          {alert('E-mail error !'); 
           return false;
		 }
	    if(document.forms[0].phone.value.length<5){
		alert("Phone error!");
		return false;
	    }
	    return true;
	}

	function ruless(){
	    if(document.forms[0].agree.value==0)
		{document.forms[0].agree.value=1;}
		else {document.forms[0].agree.value=0;}
	}
	
	function descr(){

switch (document.forms[0].p_type.value)
				{
	case "p7":document.forms[0].descript.value=
'You should send this sum from any department of MoneyGram. Essential elements for transfering will be informed to you by e-mail. In addition you need to pay commission gathering for transfer.';
	break;
	case "p6":document.forms[0].descript.value=
'You should send this sum from any department of WesternUnion. Essential elements for transfering will be informed to you by e-mail. In addition you need to pay commission gathering for transfer.';
	break;	
		case "p8":document.forms[0].descript.value=
'You should send this sum from any department of CoinStar. Essential elements for transfering will be informed to you by e-mail. In addition you need to pay commission gathering for transfer.';
	break;
	case "p9":document.forms[0].descript.value=
'You should send this sum from any department of Bank Wire. Essential elements for transfering will be informed to you by e-mail. In addition you need to pay commission gathering for transfer.';
	break;	
			}
	    return;
	}




function summ(){
	  var type=document.forms[0].type.value;
	    var p_type=document.forms[0].p_type.value;
	    var amount=document.forms[0].amount.value;
//--------------------Купить хочет WM--------------------------------------	
document.forms[0].csum.value=amount;
   switch (type)
       {
     case "WMZ" :{
		 switch (amount)
               {
				case "20": document.forms[0].csum.value='24';
	                        break;
				case "50": document.forms[0].csum.value='56';
	                        break;
				case "100": document.forms[0].csum.value='109'; 
	                        break;
				case "200": document.forms[0].csum.value='213'; 
	                        break;
				case "500": document.forms[0].csum.value='512'; 
	                        break;
               }
	       break;}
     
	 case "e-gold" :
	          switch (amount)
               {
				case "20":document.forms[0].csum.value='not'; 
	                        break;
				case "50":document.forms[0].csum.value='not'; 
	                        break;
				case "100":document.forms[0].csum.value='not'; 
	                        break;
				case "200":document.forms[0].csum.value='not'; 
	                        break;
				case "500":document.forms[0].csum.value='not'; 
	                        break;
               }
			   break;
        }
	   setTimeout("summ()", 1000);
}