var myWin;
function download()
{
	myWin = window.open("http://www.tagfree.com/ver2/Support_Center/evaluation/info.asp","info","width=650, height=400, top=20, left=20,toolbar=no,location=no,status=no,menubar=no,scrollbars=no"); 		
}

function MailCheck(ObjMail)
{	
	//ObjMail = trim(ObjMail);	
	if (ObjMail.search(/(\S+)@(\S+)\.(\S+)/) == -1 ) 
	{
	    return false;    
	}
	return true;
}

function TelKeyDownCheck(v)
{
	//if (ObjMail.search(/(\S+)@(\S+)\.(\S+)/) == -1 ) 
	{
	    return false;    
	}
	return true;
}

function ckinfovalue()
{
   myWin.document.getElementById("infopage").value = "µ¿ÇØ¹°°ú¹éµÎ»êÀÌ";
   myWin.document.getElementById("ProductVersion").value = document.getElementById("ProductVersion").value;
}

function init()
{
	if(opener)
   opener.ckinfovalue();
}
function ckdn()
{	
	var fo = document.eform;
	
	var v;
	v = fo.cn.value;	
	if(v.length<2)
	{
		alert("¼ºÇÔÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.")
		fo.cn.focus()
		return;
	}
	v = fo.cp.value;
	if(v.length<2)
	{
		alert("È¸»ç¸íÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.")
		fo.cp.focus()
		return;
	}
	
	v = fo.dm.value;
	if(v.length<2)
	{
		alert("ºÎ¼­¸íÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.")
		fo.dm.focus()
		return;
	}
	
	v = fo.pt.value;
	if(v.length<2)
	{
		alert("Á÷Ã¥ÀÌ ¾î¶»°Ô µÇ½Ã³ª¿ä?")
		fo.pt.focus()
		return;
	}
	
	v = fo.ph.value;
	if(v.length<2)
	{
		alert("¿¬¶ôÃ³°¡ ¾î¶»°Ô µÇ½Ã³ª¿ä?")
		fo.ph.focus()
		return;
	}
	
	v = fo.em.value;
	if(v.length<2)
	{
		alert("¸ÞÀÏÁÖ¼Ò°¡ ¾î¶»°Ô µÇ½Ã³ª¿ä?")
		fo.em.focus();
		return;
	}
	else
	{
		if(!MailCheck(v))
		{
			alert("¸ÞÀÏÁÖ¼Ò°¡ Àß¸ø ÀÔ·ÂµÇ¾ú½À´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.")
			fo.em.focus();
			return;
		}
	}	
	
	fo.submit();
	
	var oDiv = document.getElementById("conts");
	
	if(oDiv)
	{
		oDiv.innerHTML = '<IMG src="http://www.tagfree.com/customer/ex/img/thank.gif" align="center">';
	}
	else
	{
		alert("object null");
	}
	
}
