// JavaScript Document

/*function check_form(){
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	var txt=document.getElementById('txt').value;
	var email=document.getElementById('txt').value;
	document.getElementById('action').value='send';
	if(txt==""){
		alert('Please fill information');
		document.f.txt.focus();
		return false;
	}
	if(txt=="Prescription number"){
		alert('Error with Prescription number');
		document.f.txt.focus();
		return false;
	}
	if(reg.test(email)==false){
		alert("Please check email!");
		document.f.txt.focus();
		return false;
	}
	return true;
}*/


function check_form(){	
	var txt=document.getElementById('txt').value;	
	document.getElementById('action').value='send';
	if(txt==""){
		alert('Please fill prescription number');
		document.f.txt.focus();
		return false;
	}
	if(txt=="Prescription number"){
		alert('Error with Prescription number');
		document.f.txt.focus();
		return false;
	}
	if(isNaN(txt)){
		alert("The precription number is wrong. Please input match value!");
		document.f.txt.focus();
		return false;
	}
	return true;
}

function txt_onclick(){
	document.getElementById('txt').value="";
}
