<!--

// Open Window Function for Add To Favorites & Report Error Links

var WinNum=0;
var sContentID = ""; 

function WindowOpen(Url,Width,Height,Scroll)	{	
	var String;
   	String =  "toolbar=0,location=0,directories=0,status=1,menubar=0,"
	String += "scrollbars=" + Scroll + ",resizable=0,copyhistory=0,";
   	String += ",width=";
   	String += Width;
   	String += ",height=";
   	String += Height;
   	WinPic = window.open(Url,WinNum++,String);	
}

// Check for search string

function checkSearch(theform)	{
		 var passed = false;
		 if (theform.keyword.value == "" || theform.keyword.value == "Search Vidco.Net")
		 	{alert ("Please provide a search term");theform.keyword.select();}
		 else
		 	{passed = true;}
		 return passed;
	}
	
// Clear search box default value

function clearfield()	{
		 if (frmSearch.keyword.value == 'Search Vidco.Net')
		 	{frmSearch.keyword.value = '';}
		 else
		 	{return true;}
 	}
	
// Bookmark specific page
 
function Bookmark()		{
 		if (navigator.appName == 'Microsoft Internet Explorer') {
		window.external.AddFavorite(document.location, document.title);}
		
}

// Redirect From Combo

function ComboNavigation(id)	{

	if (id != ''){location = 'epro.asp?pg=' + id}

}

// Check Email Address For Newsletter

function checkGlobalEmail(theform)	{
		 var passed = false;
		 if (theform.email.value == "" || theform.email.value == "Email@Address")
		 	{alert ("Please provide a valid email address");
			theform.email.select();
			}
		 else if (theform.email.value.indexOf("@") == -1 || theform.email.value.indexOf(".") == -1) 
		 	{alert ("Please provide a valid email address");
			theform.email.select();
			}
		 else
		 	{passed = true;}
		 return passed;
	}

// Check Vote Selection

function CheckVote()	{
	var i;		
	for (i = 0; i < document.frmPoll.radPoll.length; i++)	
	if (document.frmPoll.radPoll[i].checked) 
	{document.frmPoll.aid.value = document.frmPoll.radPoll[i].value;
	return true;}
	alert("Please select an option to vote!");
	return false;}

//-->