
<!--
//document.write('<link rel="stylesheet" type="text/css" href="/teamscope.css">');

//function dl_resetfields() {
//	document.downloads.firstname.value="";
//	document.downloads.lastname.value="";
//	document.downloads.jobtitle.value="";
//	document.downloads.organization.value="";
//	document.downloads.phone.value="";
//	document.downloads.email.value="";
//	document.downloads.learn.value="";
//}

//function ct_resetfields() {
//	document.contact.prod.value="";
//	document.contact.firstname.value="";
//	document.contact.lastname.value="";
//	document.contact.company.value="";
//	document.contact.phone.value="";
//	document.contact.email.value="";
//	document.contact.country.value="";
//}

function dl_validate() {
	if (document.downloads.firstname.value.length==0) {
	alert("Please enter your First Name.");
	return false;
	}
		
	if (document.downloads.lastname.value.length==0) {
	alert("Please enter your Last Name.");
	return false;
	}
	
	if (document.downloads.jobtitle.value.length==0) {
	alert("Please enter your Job Title.");
	return false;
	}

	if (document.downloads.organization.value.length==0) {
	alert("Please enter your Organization.");
	return false;
	}

	if (document.downloads.phone.value.length==0) {
	alert("Please enter your Phone.");
	return false;
	}

	if (document.downloads.email.value.length==0) {
	alert("Please enter your E-mail address.");
	return false;
	}

	if (document.downloads.learn.value.length==0) {
	alert("Please indicate how you learned of TeamScope.");
	return false;
	}
	
	if (
	document.downloads.product1.checked == false &&
	document.downloads.product2.checked == false &&
	document.downloads.product3.checked == false &&
	document.downloads.product4.checked == false &&
	document.downloads.product5.checked == false &&
	document.downloads.product6.checked == false &&
	document.downloads.product7.checked == false) 
	{
		alert ("Please select at least one product for download.");
		return false;
	}

	document.downloads.submit();
	return true;
}

function ct_validate() {
	if (document.contact.prod.value.length==0) {
	alert("Please select a Product.");
	return false;
	}
		
	if (document.contact.firstname.value.length==0) {
	alert("Please enter your First Name.");
	return false;
	}

	if (document.contact.lastname.value.length==0) {
	alert("Please enter your Last Name.");
	return false;
	}
	
	if (document.contact.company.value.length==0) {
	alert("Please enter your Company.");
	return false;
	}

	if (document.contact.email.value.length==0) {
	alert("Please enter your E-mail address.");
	return false;
	}

	if (document.contact.phone.value.length==0) {
	alert("Please enter your Phone Number.");
	return false;
	}

	if (document.contact.country.value.length==0) {
	alert("Please select your Country.");
	return false;
	}

	document.contact.submit();
	return true;
}

function wb_validate() {		
	if (document.webinar.firstname.value.length==0) {
	alert("Please enter your First Name.");
	return false;
	}

	if (document.webinar.lastname.value.length==0) {
	alert("Please enter your Last Name.");
	return false;
	}
	
	if (document.webinar.company.value.length==0) {
	alert("Please enter your Company.");
	return false;
	}

	if (document.webinar.email.value.length==0) {
	alert("Please enter your E-mail address.");
	return false;
	}

	if (document.webinar.phone.value.length==0) {
	alert("Please enter your Phone Number.");
	return false;
	}

	if (document.webinar.country.value.length==0) {
	alert("Please select your Country.");
	return false;
	}

	document.webinar.submit();
	return true;
}

function Set_Cookie()
    {
        document.cookie =  "ts_test" + "=" + "cookies_set";
    }
    Set_Cookie();
   
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//-->





