<!--

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;

if (typeof(mylink) == 'string') 
	{
   	href=mylink;
	} 
else
	{
   	href=mylink.href;
	}
	
var bname = navigator.appName;
if (bname.search(/microsoft/i) == 0)
   {
	window.open(href, windowname, ',type=fullWindow,fullscreen,scrollbars=yes');
   }
else
   {
   window.open(href, windowname, ',type=fullWindow,height=768,width=1024,left=0,top=0,scrollbars=yes');
   }

return false;
}

function openBrWindow(theURL,winName,features) { //v2.0

mywindow=window.open(theURL,winName,features);
mywindow.moveTo(0,0);
}

function checkRadioControl(strFieldName,strMessage){

	 // set var radio_choice to false
	var radio_choice = false;

	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < form1.pid.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (form1.pid[counter].checked)
		radio_choice = true; 
	}
	
	if (!radio_choice)
	{
		// If there were no selections made display an alert box 
		alert(strMessage)
		return (false);
	}
	return (true);
 
}

function validateForm() {
	if(!checkRadioControl('pid','Please select a Video Tutorial to purchase.')){
          return false;
    }
	 
	return true;
}

//Load page in parent windowo and close self
function loadinparent(url, closeSelf){
	self.opener.location = url;
	if(closeSelf) self.close();
	}

//-->