
$(document).ready(function(){
        //Assign the ColorBox event to elements

        //$("a[rel='colorbox']").colorbox({transition:"none", width:"75%", height:"75%"});
        $(".lightwindow").colorbox({maxHeight:"80%", preloading:"false"});

        });



function test() {
alert("Utility Scripts Ver: 1\n Author: James Stuart Johnson\n Date: 4-11-2006")
}

function rollover(imgname, imgfile)  {
  if (document.images) {
    imgname.src = imgfile;
    }
  return;
  }

function validate(currForm) {
	var retValue = true;

	if (currForm.firstname.value == "" || currForm.lastname.value == "" || currForm.address1.value == "" || currForm.city.value == ""
	|| currForm.state.value == ""|| currForm.zip.value == ""|| currForm.country.value == "" || currForm.email.value == "" || currForm.age.value == ""|| currForm.gender.value == ""|| currForm.phone.value == "") {
		alert("Please enter all fields.");
		retValue = false;
	}

	return retValue;
}

function isEmail(fieldObject) {
	fldValue = fieldObject.value;
	currPos1 = fldValue.indexOf(" ");
	currPos2 = fldValue.indexOf("@");
	nl = fldValue.length;

	fldTest = isNaN(fldValue);
	if (fldValue == "") {
		fieldObject.value = "";
	} else if (currPos1 != -1 || currPos2 == -1) {
		alert("Please enter a valid e-mail address.  An email must not have spaces, and must have an @ symbol.");
		fieldObject.value = "";
		fieldObject.select();
		fieldObject.focus();
	}

}

function Shirt_Popup(url_add, sTitle)
   {
   window.open(url_add, sTitle, "width=250, height=650, menubar=0, status=0, location=0,toolbar=0,scrollbars=1" );
   }

function Close_Popup(aWindow)
   {
   window.close(aWindow );
   }