// Сценарии
function open_window(url, resizable,width, height, left, top) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1, resizable=1, width=width, height=height, left=left, top=top");
}
function open_window_toolbar(url, resizable,width, height, left, top) {
	link = window.open(url,"Link","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1, resizable=1, width=width, height=height, left=left, top=top");
}

function hiliteon(objID,imgSource){
	document.images(objID).src =imgSource
}
function hiliteoff(objID,imgSource){
	document.images(objID).src =imgSource
}
//function set_number(){
//	new_wnd=window.open("fff.htm","displayWindow")
	//new_wnd.document.write("<html><body><table><tr><td align=left><BR><img src='images/coupon_discount_spb.gif'>" +
	//	"<B style='position:absolute; top:50px; left:210px;'>" + Math.random() + 
	//	"</B></td></tr>" +
//"<tr><td align=center><A href='javascript:print()'>kkkkkkkk</A></td></tr>" +
//"<tr><td align=center><A href='javascript:history.back(1)'>Вернуться назад</A></td></tr></table>" +
//"</body></html>")
//}
function best_show(ObjID){
	document.all("desc1").style.visibility="hidden";
	document.all("desc2").style.visibility="hidden";
	document.all("desc3").style.visibility="hidden";
	document.all("desc4").style.visibility="hidden";
	document.all("desc5").style.visibility="hidden";
	if (ObjID == "desc1") {document.all("desc1").style.visibility="visible";}
	if (ObjID == "desc2") {document.all("desc2").style.visibility="visible";}
	if (ObjID == "desc3") {document.all("desc3").style.visibility="visible";}
	if (ObjID == "desc4") {document.all("desc4").style.visibility="visible";}
	if (ObjID == "desc5") {document.all("desc5").style.visibility="visible";}
	
}
function PhoneValid(checkSTR) {
	var checkOK = "0123456789-+() ";
          //var checkSTR = document.mzak.телефон.value;
          var allValid = true;
          for (i = 0;  i < checkSTR.length;  i++)
          {
            ch = checkSTR.charAt(i);
            for (j = 0;  j < checkOK.length;  j++)
              if (ch == checkOK.charAt(j))
                break;
            if (j == checkOK.length)
            {
              allValid = false;
              break;
            }
          }
          return allValid
}

function testing(form) {

}