/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}


/* PROFESSIONAL BOXER RECORD SEARCH */

function isEmpty()
{
var theTextFirstName = document.theForm2.first_name.value;
var theTextLastName = document.theForm2.last_name.value;

if (theTextFirstName == "" || theTextFirstName == "First Name" )
	{
	document.theForm2.first_name.focus();
	return false;
	}
	
if (theTextLastName == "" || theTextLastName == "Last Name" )
	{
	document.theForm2.last_name.focus();
	return false;
	}

else
	{return true;}			
}

function SearchBoxer()
{
theStringFirstName = document.theForm2.first_name.value;
theStringLastName = document.theForm2.last_name.value; 

if(theStringFirstName != "" || theStringLastName != "")
	{
	finalSearch = "";
	finalSearch = "http://www.boxrec.com/search.php?status=all&cat=boxer&first_name=" + theStringFirstName + "&last_name=" + theStringLastName + "&submit=Go";}

window.location.href = finalSearch;

}

/* SEARCH PAGE: TEST SEARCH CONDITIONS */

function nav(which)
{
document.theForm.theEngine.selectedIndex = which;
document.theForm.theEngine.focus();
}

function preSearchConditions()
{
var keywords = document.theForm.theText.value;
var searchSelection = document.theForm.theEngine.options[document.theForm.theEngine.selectedIndex].value;

if (keywords == "")
	{
	window.alert ("Please enter a keyword or keyword phrase in the search box.");
	document.theForm.theText.focus();
	return false;
	}
if (searchSelection == "")
	{
	window.alert ("Please choose a valid search using the 'SELECT SEARCH' list.");
	nav(0)
	return false;
	}	
else
	{return true;}			
}

/* SEARCH PAGE: RUN SEARCH */

function Search()
{
theString = document.theForm.theText.value; 
if(theString != "")
	{
	Engines = document.theForm.theEngine.options[document.theForm.theEngine.selectedIndex].value;
	finalSearch = "";
	
	/* WEB */
	
	if(Engines == 'boxingsociety'){
	finalSearch = "http://www.google.com/search?hl=en&safe=off&rls=com.microsoft%3Aen-us&q=" + theString + "%25site%3Aboxingsociety.com&aq=f&oq=&aqi=";}
	
	if(Engines == 'About'){
	finalSearch = "http://search.about.com/fullsearch.htm?terms=" + theString;}
	
	if(Engines == 'Ask'){
	finalSearch = "http://www.ask.com/web?qsrc=2417&o=0&l=dir&q=" + theString;}
	
	if(Engines == 'Bing'){
	finalSearch = "http://www.bing.com/search?q=" + theString;}
	
	if(Engines == 'Ebay'){
	finalSearch = "http://search.ebay.com/" + theString;}
	
	if(Engines == 'Google'){
	finalSearch = "http://www.google.com/search?q=" + theString;}
	
	if(Engines == 'Twitter'){
	finalSearch = "http://twitter.com/#search?q=" + theString;}
	
	if(Engines  == "Wikipedia"){
	finalSearch = "http://en.wikipedia.org/wiki/" + theString;}
	
	if(Engines == 'Yahoo'){
	finalSearch = "http://search.yahoo.com/search?p=" + theString;}
	
	/* VIDEO */

	if(Engines  == "5Min.com"){
	finalSearch = "http://www.5min.com/Tag/" + theString + "?CategoryID=0";}
	
	if(Engines  == "AOL-Video"){
	finalSearch = "http://video.aol.com/video-search/query/" + theString;}
	
	if(Engines  == "Ask-Video"){
	finalSearch = "http://www.ask.com/videos?qsrc=167&o=0&l=dir&q=" + theString;}
	
	if(Engines  == "Bing-Video"){
	finalSearch = "http://www.bing.com/videos/search?q=" + theString;}
	
	if(Engines  == "Blinkx.com"){
	finalSearch = "http://www.blinkx.com/videos/" + theString;}
	
	if(Engines  == "Blip.tv"){
	finalSearch = "http://www.blip.tv/search?q=" + theString;}
	
	if(Engines  == "Break-Video"){
	finalSearch = "http://www.break.com/surfacevideo/" + theString;}
	
	if(Engines  == "CastTV.com"){
	finalSearch = "http://www.casttv.com/search/" + theString + "/1";}
	
	if(Engines  == "ClipBlast.com"){
	finalSearch = "http://www.clipblast.com/#search/offset=0&output=json&limit=18&userVideo=false&safeSearch=true&sortBy=standard&queryType=&negativeWords=&metadata=true&r=518402243&phrase=" + theString;}	
	
	if(Engines  == "ClipTa.com"){
	finalSearch = "http://www.clipta.com/search/" + theString;}	
	
	if(Engines  == "DailyMotion.com"){
	finalSearch = "http://www.dailymotion.com/relevance/search/" + theString;}
	
	if(Engines  == "DogPile-Video"){
	finalSearch = "http://www.dogpile.com/dogpile/ws/results/Video/" + theString + "/1/417/TopNavigation/Relevance/iq=true/zoom=off/_iceUrlFlag=7?_IceUrl=true/";}
	
	if(Engines  == "Digg-Video"){
	finalSearch = "http://digg.com/search?section=videos&s=" + theString;}
	
	if(Engines  == "Fooooo.com"){
	finalSearch = "http://fooooo.com/search.php?ranking=0&q=" + theString;}
	
	if(Engines  == "FilesTube.com"){
	finalSearch = "http://video.filestube.com/look_for.html?cat=0&ch=0&q=" + theString;}
	
	if(Engines  == "FindInternetTV.com"){
	finalSearch = "http://www.findinternettv.com/Search.aspx?t=2&q=" + theString;}
	
	if(Engines  == "Google-Video"){
	finalSearch = "http://video.google.com/videosearch?key&hl=en&q=" + theString;}
	
	if(Engines  == "GrindTV.com"){
	finalSearch = "http://www.grindtv.com/search/videos/?term=" + theString;}
	
	if(Engines  == "Hulu.com"){
	finalSearch = "http://www.hulu.com/search?st=0&query=" + theString;}
	
	if(Engines  == "InfoSpace-Video"){
	finalSearch = "http://www.infospace.com/ispace/ws/results/Video/" + theString + "/1/417/content-top-left/Relevance/iq=true/zoom=off/enginefilter=all/_iceUrlFlag=7?_IceUrl=true";}
	
	if(Engines  == "LiveVideo.com"){
	finalSearch = "http://www.livevideo.com/media/search.aspx?sb=1&d=1&tag=" + theString;}
	
	if(Engines  == "LycosVideo"){
	finalSearch = "http://search.lycos.com/video/?tab=multi&loc=searchbox&sortMode=&safeSearch=&cat=video&x=26&y=22&&query=" + theString;}
	
	if(Engines  == "MegaVideo.com"){
	finalSearch = "http://megavideo.com/?c=search&s=" + theString;}
	
	if(Engines  == "MetaCafe.com"){
	finalSearch = "http://www.metacafe.com/results/" + theString;}
	
	if(Engines  == "MegaCrawler-Video"){
	finalSearch = "http://www.metacrawler.com/metacrawler/ws/results/Video/" + theString + "/1/417/TopNavigation/Relevance/iq=true/zoom=off/_iceUrlFlag=7?_IceUrl=true";}
	
	if(Engines  == "MySpace-Video"){
	finalSearch = "http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.results&type=MySpaceTV&submit=+Search+&orig=video_hp_search_jumbo&qry=" + theString;}
	
	if(Engines  == "PerfSpot.com"){
	finalSearch = "http://www.perfspot.com/video2/search.asp?s=1&b=1&submit1=Search&q=" + theString;}
	
	if(Engines  == "Pixsy.com"){
	finalSearch = "http://www.pixsy.com/search.aspx?q=" + theString;}
	
	if(Engines  == "SearchforVideo.com"){
	finalSearch = "http://www.searchforvideo.com/search.php?k=" + theString;}
	
	if(Engines  == "Truveo.com"){
	finalSearch = "http://www.truveo.com/search.php?&uqs=&query=" + theString;}
	
	if(Engines  == "TV.com"){
	finalSearch = "http://www.tv.com/search.php?type=11&stype=all&tag=search%3B&stype=video_full&qs=" + theString;}
	
	if(Engines  == "Veoh-Video"){
	finalSearch = "http://www.veoh.com/search/videos/q/" + theString;}
	
	if(Engines  == "VideoLatte.com"){
	finalSearch = "http://www.videolatte.com/search/all/" + theString;}
	
	if(Engines  == "VideoSurf.com"){
	finalSearch = "http://www.videosurf.com/videos/" + theString;}
	
	if(Engines  == "VodPod.com"){
	finalSearch = "http://vodpod.com/search/browse?q=" + theString;}
	
	if(Engines  == "WebCrawler-Video"){
	finalSearch = "http://www.webcrawler.com/webcrawler/ws/results/Video/" + theString + "/1/417/TopNavigation/Relevance/iq=true/zoom=off/_iceUrlFlag=7?_IceUrl=true";}
	
	if(Engines  == "Yahoo-Video"){
	finalSearch = "http://video.search.yahoo.com/search/video?fr=yfp-t-414&toggle=1&cop=mss&ei=UTF-8&p=" + theString;}
	
	if(Engines  == "YouTube.com"){
	finalSearch = "http://www.youtube.com/results?search_type=&aq=f&search_query=" + theString;}
			
	if(Engines  == "Zuula.com"){
	finalSearch = "http://www.zuula.com/video_srch/video_SearchResult.jsp?bst=1&prefpg=1&x=48&y=8&st=" + theString;}
	
	/* VIDEO - FOREIGN SITES */
	
	if(Engines  == "56.com"){
	finalSearch = "http://so.56.com/index?st=2&charset=utf-8&type=&bn=&kw=&key=" + theString;}	
	
	if(Engines  == "RuTube.ru"){
	finalSearch = "http://rutube.ru/search.html?page=index&search=" + theString;}	
	
	if(Engines  == "TU.tv"){
	finalSearch = "http://tu.tv/buscar/?str=" + theString;}	
	
	if(Engines  == "TuDou.com"){
	finalSearch = "http://so.tudou.com/isearch/" + theString;}	
	
	if(Engines  == "YouKu.com"){
	finalSearch = "http://www.soku.com/search_video/q_" + theString;}	

	/* BOXING */
	
	
	if(Engines  == "8CountNews.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3A8countnews.com/news/125/+" + theString;}
	
	if(Engines  == "15Rounds.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3A15rounds.com+" + theString;}
	
	if(Engines  == "Boxen.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Aboxen.com+" + theString;}
	
	if(Engines  == "BoxingInsider.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Aboxinginsider.com+" + theString;}
	
	if(Engines  == "BoxingNews24.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Aboxingnews24.com+" + theString;}
	
	if(Engines  == "BoxingScene.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Aboxingscene.com+" + theString;}
	
	if(Engines  == "BraggingRightsCorner.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Abraggingrightscorner.com+" + theString;}
	
	if(Engines  == "CyberBoxingZone.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Acyberboxingzone.com+" + theString;}
	
	if(Engines  == "DogHouseBoxing.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Adoghouseboxing.com+" + theString;}
	
	if(Engines  == "EastSideBoxing.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Aeastsideboxing.com+" + theString;}
	
	if(Engines  == "FightBeat.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Afightbeat.com+" + theString;}
	
	if(Engines  == "FightFan.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Afightfan.com+" + theString;}
	
	if(Engines  == "FightHype.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Afighthype.com+" + theString;}
	
	if(Engines  == "FightNews.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Afightnews.com+" + theString;}
	
	if(Engines  == "MaxBoxing.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Amaxboxing.com+" + theString;}
	
	if(Engines  == "Pound4Pound.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Apound4pound.com+" + theString;}
	
	if(Engines  == "SaddoBoxing.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Asaddoboxing.com+" + theString;}
	
	if(Engines  == "SecondsOut.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Asecondsout.com+" + theString;}
	
	if(Engines  == "RingSideReport.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Aringsidereport.com+" + theString;}
	
	if(Engines  == "TheSweetScience.com"){
	finalSearch = "http://www.google.com/search?hl=en&q=site%3Athesweetscience.com+" + theString;}

 	window.location.href = finalSearch;

}}
