<!--
var imag=new Array();
var imags=new Array("m1.gif",
"m1on.gif",
"m2.gif",
"m2on.gif",
"m3.gif",
"m3on.gif",
"m4.gif",
"m4on.gif",
"m5.gif",
"m5on.gif",
"m6.gif",
"m6on.gif");

for(i=0; i<12; i++){
    imag[i]=new Image;
	imag[i].src="img/menu/"+imags[i];
}

function chim(img,i,namel) { 
if (document.all) { document.images[img].src = "img/menu/"+imags[i];}
else { document[namel].document.images[img].src = "img/menu/"+imags[i];}
}

function getdata(thisForm) 
{

 if (thisForm.requiredemail.value==thisForm.requiredemail.defaultValue)
    {
        alert('\nВведите ваш e-mail.')
        thisForm.requiredemail.select()
        thisForm.requiredemail.focus()
        return false
    }
 if ((thisForm.requiredemail.value.indexOf('@',0)==-1 ||
        thisForm.requiredemail.value.indexOf('.',0)==-1))
        {
            alert('\nТакого адреса нет!.')
            thisForm.requiredemail.select()
            thisForm.requiredemail.focus()
            return false
        }
else 
if (thisForm.rbtn[0].checked) {thisForm.requiredtypep2.value=1;}
if (thisForm.rbtn[1].checked) {thisForm.requiredtypep2.value=0;}
return true;
}
function poster(nm,wn) {
   window.open ("products/"+nm+".html",wn,"alwaysRaised=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=0,top=0,left=0,scrollbars=0,copyhistory=0,width=430,height=430");
 }
function sch(nm,wn) {
   window.open ("products/"+nm+".html",wn,"alwaysRaised=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=0,top=0,left=0,scrollbars=0,copyhistory=0,width=450,height=240");
 }
function formprice(name){
document.price.prid.value="";
document.price.prkol.value="";
for(var j=0; j<document.price.kol.value; j++){
	polename="in"+j;
	polev="idp"+j;
	document.price[polename].value=parseInt(document.price[polename].value);
	if(isNaN(document.price[polename].value)){
		document.price[polename].focus();
		alert("Вводите только целые числа!");
		return false;
	}
	if(document.price[polename].value!=0){
	if(document.price.prid.value=="") dop="";
	document.price.prid.value+=dop+document.price[polev].value;
	if(document.price.prkol.value=="") dop="";
	document.price.prkol.value+=dop+document.price[polename].value;
	dop="/";
	}
}
if ((document.price.prid.value==document.price.prid.defaultValue)||(document.price.prkol.value==document.price.prkol.defaultValue)){
		alert("Вы ничего не выбрали !");
		return false;
}
return true;
}
function gtdata(thisForm){
 if (thisForm.fiop.value==thisForm.fiop.defaultValue)
    {
        alert('\nВведите номер ваше Ф.И.О.')
        thisForm.fiop.select()
        thisForm.fiop.focus()
        return false
    }
 if (thisForm.adres.value==thisForm.adres.defaultValue)
    {
        alert('\nВведите ваш адрес.')
        thisForm.adres.select()
        thisForm.adres.focus()
        return false
    }
 if (thisForm.email.value==thisForm.email.defaultValue)
    {
        alert('\nВведите ваш e-mail.')
        thisForm.email.select()
        thisForm.email.focus()
        return false
    }
 if ((thisForm.email.value.indexOf('@',0)==-1 ||
        thisForm.email.value.indexOf('.',0)==-1))
        {
            alert('\nТакого адреса нет!.')
            thisForm.email.select()
            thisForm.email.focus()
            return false
        }
else ChildWindow = window.open("","prnrez","alwaysRaised=1,menubar=1,toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1,copyhistory=0,width=720,height=500"); 
return true;
}
function prop(){
window.open("rool.php","rool","alwaysRaised=1,menubar=1,toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1,copyhistory=0,width=560,height=500"); 
}

//-->