<!--
msg = "Пожалуйста, заполните обязательные поля!";

function fObject(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=fObject(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

 function changeProp(objName,x,theProp,theValue) {
 var obj = fObject(objName);
 if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
 }

function OpenBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

function MM_callJS(jsStr) {
return eval(jsStr)
}
function clos(mid) {
var x = document.getElementById(mid);
var y = document.getElementById('m_'+mid);
y = y.firstChild;
if (x.className != 'closetud menushow') {
x.className = 'closetud menushow';
}else{
x.className = 'nahtav menushow';
}
};
function yes() {
 MTB3.className = 'nahtav menushow';
 MTB4.className = 'closetud menushow';
};
function no() {
 MTB4.className = 'nahtav menushow';
 MTB3.className = 'closetud menushow';
};
function CG_JS(jsLN) {
return eval(jsLN)
}
 function change(mid) {
d=document;
var x = d.getElementById(mid);
if (navigator.appName == "Netscape")
{
if (x.className != 'closetud') {
x.className = 'closetud menushow';
}else{ 
x.className = 'nahtav menushow';
}
}else{
if (d.all) {
if (x.className != 'closetud') {
x.className = 'closetud menushow';
}else{ 
x.className = 'nahtav menushow';
}
}
}
}

function order_complete() {
if (document.order.name.value == "" || document.order.dname.value == "" || document.order.mail.value == "")
{
alert (msg);
}else{
document.order.submit();
} 

}

//-->

