﻿function getURL ()
{
	var strHref = window.location.href;
	var strPage = top.document.title;
	var strURL = "mailto:?subject=You might want to see this&body=" + strPage + ":  " + strHref;
	window.location = strURL;
	window.location = strHref
}


function validate() {
   if (document.Contact.FirstName.value < 1) { 
      	window.alert("Please enter your first name.");
      	document.Contact.FirstName.focus();
      	return false;
	}
	if (document.Contact.LastName.value < 1) { 
      	window.alert("Please enter your last name.");
      	document.Contact.LastName.focus();
      	return false;
	}
   if (document.Contact.Telephone.value < 1) { 
   		if (document.Contact.Email.value < 1) {
      	window.alert("Please enter your telephone number.");
      	document.Contact.Telephone.focus();
      	return false;
		}
	}
   if (document.Contact.Email.value < 1) { 
   		if (document.Contact.Telephone.value < 1) { 
      	window.alert("You must enter your e-mail address.");
      	document.Contact.Email.focus();
      	return false;
		}
	}
   if (document.Contact.CaseInfo.value < 1) { 
      	window.alert("You did not enter case information.");
      	document.Contact.CaseInfo.focus();
      	return false;
	}
}

if (document.images)

{
	roll = 1;
}

else

{
	roll = 0;
}

// rollover buttons

if (roll)

{

	but1 = new Image() ;
	but1.src = "img/but_1.gif";
	but2 = new Image() ;
	but2.src = "img/but_fda_warning.gif";
	but3 = new Image() ;
	but3.src = "img/but_2.gif";
	but4 = new Image() ;
	but4.src = "img/but_hydroxycut_symptoms.gif";
	but5 = new Image() ;
	but5.src = "img/but_3.gif";
	but6 = new Image() ;
	but6.src = "img/but_hydroxycut_lawyers.gif";
}

function hiLite(imgDocID,imgObjName)
{
	if (roll)
	{
		document.images[imgDocID].src = eval(imgObjName + ".src");
	}
}
