/***********************************************************************/
function borrar(){
document.contacto.reset();
}
/***********************************************************************/

function send(){
		if(contacto.txt_name.value==""){
			alert("All data are required.");
				contacto.txt_name.focus();
				return false;
		}
		
		if(contacto.txt_phone.value==""){
			alert("All data are required.");
				contacto.txt_phone.focus();
				return false;
		}
		
		if(contacto.txt_position.value==""){
			alert("All data are required.");
				contacto.txt_position.focus();
				return false;
		}
		
		
		if(contacto.txt_city.value==""){
			alert("All data are required.");
				contacto.txt_city.focus();
				return false;
		}

		if(contacto.txt_email.value=="" || contacto.txt_email.value.indexOf('@')==-1 || contacto.txt_email.value.indexOf('.')==-1){
			alert("All data are required.");
				contacto.txt_email.focus();
				return false;
				
		} 

		if(contacto.txt_company.value==""){
			alert("All data are required.");
				contacto.txt_company.focus();
				return false;
		}
		
		if(contacto.txt_state.value==""){
			alert("All data are required.");
				contacto.txt_state.focus();
				return false;
		}
		
		

		if(contacto.txt_zide.value==""){
			alert("All data are required.");
				contacto.txt_zide.focus();
				return false;			
		}
				
		if(contacto.txt_coments.value==""){
			alert("All data are required.");
				contacto.txt_coments.focus();
				return false;			
		}
		
	return true;
}
/***********************************************************************/ 
function telefono(){
	var key=window.event.keyCode;//codigo de tecla.
	//alert(key);
	if (key!=46 && (key < 48 || key > 57))//si no es numero		
	window.event.keyCode=0;//anula la entrada de texto.
}
/*********************************************************************/ 

/**********************************\ danylo/*************************************/ 



/*******************************************************/
function flash(file,width,height)
{
	document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 width='+width+' height='+height+'>');
	document.write('<param name=movie value="'+file+'"/>');
	document.write('<param name=quality value=high />');
	document.write('<param name=wmode value=transparent />');
	document.write('<embed src="'+file+'" quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width='+width+' height='+height+'></embed>');
	document.write('</object>'); 	
}

/*******************************************************/
function solo_text()
{
	var key=window.event.keyCode;//codigo de tecla.	
	if(!(key < 48 || key > 57))
	window.event.keyCode=0;//anula la entrada de texto.
}
/*******************************************************/
