function sendMail(url)
{
	newWindow = window.open(url,'','scrollbars=no,menubar=no,height=265,width=500,resizable=no,toolbar=no,location=no,status=no');return false;
	return false;
}

function sendMailGetUrl()
{
	var height = parseInt(document.getElementById('clear').offsetTop) + parseInt(document.getElementById('clear').clientHeight) + 70;
	window.resizeTo(500, height);
	document.Form1.url.value = opener.document.URL;
	return true;
}

function searchSubmit(url)
{
	var element = document.getElementById('keyword');
	var searchKeyWord = encodeURI(element.value);
	if(searchKeyWord.length > 0){
		searchKeyWord = searchKeyWord.replace(/&/, '%26');
		var redirectUrl = url + searchKeyWord;
		document.location = redirectUrl;	
	}
}

function onEnterGoTo(url)
{
	if((event.which && event.which == 13) || 
    (event.keyCode && event.keyCode == 13))
	{
		searchSubmit(url);
		return false;
	}
	return true;
}

