<!--
// ÀÌ¸§ °ø¹éÃ¼Å©

function isnull_name() 
{
	var name = document.write.name.value;
    var new_name = "";
	for (i=0; i < name.length; i++ ) 
	{
		if ( name.charAt(i) != " " )
			new_name += name.charAt(i);
    }

    if ( new_name != "")
		return false;
	else
		return true;
}

// ÀÌ¸ÞÀÏ °ø¹éÃ¼Å©

function isnull_email() 
{
	var email = document.write.email.value;
    var new_email = "";
	for (i=0; i < email.length; i++ ) 
	{
		if ( email.charAt(i) != " " )
			new_email += email.charAt(i);
    }

    if ( new_email != "")
		return false;
	else
		return true;
}

// Á¦¸ñ °ø¹éÃ¼Å©

function isnull_title() 
{
	var title = document.write.title.value;
    var new_title = "";
	for (i=0; i < title.length; i++ ) 
	{
		if ( title.charAt(i) != " " )
			new_title += title.charAt(i);
    }

    if ( new_title != "")
		return false;
	else
		return true;
}

// ³»¿ë °ø¹éÃ¼Å©

function isnull_text() {
	var text = document.write.contents.value;
	var new_text = "";
	for (i=0; i < text.length; i++ ) 
	{
		if ( text.charAt(i) != " " )
			new_text += text.charAt(i);
    }

	if ( new_text != "" )
		return false;
	else
		return true;
}

// ºñ¹Ð¹øÈ£ °ø¹éÃ¼Å©

function isnull_passwd() {
	var passwd = document.write.passwd.value;
	var new_passwd = "";
	for (i=0; i < passwd.length; i++ ) 
	{
		if ( passwd.charAt(i) != " " )
			new_passwd += passwd.charAt(i);
    }

	if ( new_passwd != "" )
		return false;
	else
		return true;
}

// ÀüÀÚ¿ìÆí Å¸´ç¼º Ã¼Å©

function CheckEmail() {	
	var email = write.email.value;
	return email.search(/^\s*[\w\~\-\.]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g)>=0;
}

// Æû ÇÊÅÍ¸µ

function CheckSubmit() 
{

	if ( isnull_name() )
	{
		alert("The Writer field empty");
		document.write.name.value = "";
		document.write.name.focus();
		return;
	}

	if ( ! CheckEmail() ) {
		alert("The Writer Email empty or Wrong Type");
		document.write.email.select(); 
		return;
	}

	if ( isnull_title() )
	{
		alert("The Subject field empty");
		document.write.title.value = "";
		document.write.title.focus();
		return;
	}

	if ( isnull_text() )	
	{
		alert("The Content field empty");
		document.write.contents.value = "";
		document.write.contents.focus();
		return;
	}

	if ( isnull_passwd() )	
	{
		alert("The Password field empty");
		document.write.passwd.value = "";
		document.write.passwd.focus();
		return;
	}

	document.write.submit();

}

function TagAlert()
{ 

	if (document.write.tag.checked==true)
	{
		alert ("The Subject field is not accept HTML");
		return;
	}	
}
//-->
