function mail_event(object, text, stat) {
	if(object.value == text && stat == true) { object.style.color='#ffffff'; object.value=''; }
	if(object.value == '' && stat == false) { object.style.color = '#666666'; object.value = text; }
}

function mail_event2(object, text, stat) {
	if(object.value == text && stat == true) { object.style.color='#000000'; object.value=''; }
	if(object.value == '' && stat == false) { object.style.color = '#999999'; object.value = text; }
}

function send(arg1, arg2, arg3, arg4, arg5, msg1, msg2, msg3, msg4, msg5) {
	doc = document.send_mail;
	valid_mail = false;
	if(doc.email.value != '' && doc.email.value != arg1) {
		em = null;
		em = doc.email.value.split('@');
		if(em[0] != null && em[1] != null) {
			ma = null;
			ma = em[1].split('.');
			if(ma[0] != null && ma[1] != null) valid_mail = true;
		}
	}
	if(doc.ename.value != '' && doc.ename.value != arg4) {
		if(doc.ephone.value != '' && doc.ephone.value != arg5) {
			if(valid_mail == true) {
				if(doc.subject.value != '' && doc.subject.value != arg2) {
					if(doc.mail.value != '' && doc.mail.value != arg3) {
						doc.submit();
					} else alert(msg3);
				} else alert(msg2);
			} else alert(msg1);
		} else alert(msg5);
	} else alert(msg4);
}

function mailto() {
	window.location = "mailto:info@mugenlink.com";
	return false;
}