function reset() {
	// Количество элементов в форме
	var x = document.myForm.elements.length;   
	// Проходим по всем элементам формы и очищаем их
	for (i=0; i<x; i++) {  
		if (document.myForm.elements[i].type == "text" || 
			document.myForm.elements[i].type == "textarea") {
			document.myForm.elements[i].value = "";
		}
		else if (document.myForm.elements[i].type == "select-one") {
			document.myForm.elements[i].selectedIndex = 0;	
		}	
		else if (document.myForm.elements[i].type == "radio" ||
		 		 document.myForm.elements[i].type == "checkbox") {
			document.myForm.elements[i].checked = false;	
		}	
	}
}


function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function mail_address(user,domain,zone) {
document.write(user+'@'+domain+'.'+zone);
}

function mail_send(user,domain,zone) {
document.location.href = 'mailto:'+user+'@'+domain+'.'+zone;
}

function hidebox ()
 {
 document.getElementById('showimage').style.visibility='hidden';
 }