function checkFormLeftMenu(f)
{
	function trimString (str) { 
		   str = this != window? this : str; 
		   return str.replace(/^\s+/g, '').replace(/\s+$/g, ''); 
	} 
	String.prototype.trim = trimString; 

	if(f.keyword.value.trim() == "")
	{
		alert("µµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À");
		f.keyword.focus();
		return false;
	}

	if(f.keyword.value.trim() == "ÀÔ·Â ¿¹) whois.co.kr")
	{
		alert("µµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À");
		f.keyword.value = "";
		f.keyword.focus();
		return false;
	}
	
	var type = "";

	try
	{
		if(f.type)
		{
			if(f.type[0].checked) type = "domain";
			else if(f.type[1].checked) type = "nameserver";
		}
	}
	catch (e){}

	
	viewDomainInfoLeftMenu(f.keyword.value.trim(), type);

	return false;
}

function viewDomainInfoLeftMenu(dname, types)
{
	var url = "http://domain.whois.co.kr/whois/?domain=" + dname +"&type="+ types;
	window.open(url,"WHOISQUERY","width=550,height=700,menubar=no,directopopries=no,resizable=no,status=no,scrollbars=no");
}




document.writeln("<table width='144' cellspacing='0' cellpadding='0' border='0' valign='top'>");
document.writeln("<tr>");
document.writeln("<td><img src='/img/left/whois_tit.gif' width='90' height='14' border='0' alt='ÈÄÀÌÁî°Ë»ö' /></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height='5'></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height='13'><form name='leftWhoisForm1' method='post' action='' onsubmit='return checkFormLeftMenu(this);'>");
document.writeln("<p style='marginb-bottom:3px;'><input type='radio' name='type' value='domain' checked><img src='/img/left/whois_txt1.gif' width='33' height='13'>&nbsp;&nbsp;<input type='radio' name='type' value='nameserver'><img src='/img/left/whois_txt2.gif' width='60' height='13'></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height='20'><input type='text' name='keyword' class='f_renew_w' size='15'>&nbsp;<input type='image' src='/img/left/btn_whois.jpg' align='absmiddle' alt='°Ë»öÇÏ±â'></form>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height='5'></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td class='f11_w' valign='top'>µµ¸ÞÀÎ: whois.co.kr<br>³×ÀÓ¼­¹ö: ns1.whois.co.kr</td>");
document.writeln("</tr>");
document.writeln("</table>");
