function validStr(strText, strAcceptText)
{			
	var strTemp;
	for (i=0;i<strText.length;i++)
	{
		strTemp = strText.substring(i, i + 1);
		if((strAcceptText.indexOf(strTemp, 0) < 0))
		{			
		  return 0;
		}
	} 
	return 1;
}


function addToFavorite() {
window.external.AddFavorite(location.href, document.title);
}
