<!--
var preloadFlag = false;

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Home01 = newImage("images/random/home/Home-1.jpg");
		Home02 = newImage("images/random/home/Home-2.jpg");
		Home03 = newImage("images/random/home/Home-3.jpg");
		Nav01 = newImage("images/navigation/c-tpat-explained-OVER.gif");
		Nav02 = newImage("images/navigation/company-profile-OVER.gif");
		Nav03 = newImage("images/navigation/contact-us-OVER.gif");
		Nav04 = newImage("images/navigation/home-OVER.gif");
		Nav05 = newImage("images/navigation/meet-the-principals-OVER.gif");
		Nav06 = newImage("images/navigation/security-services-OVER.gif");
		preloadFlag = true;
	}
}

var winLegal = null;
function goPrivacy() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('privacy.asp', 'winLegal', windowFeatures);
	winLegal.focus();
}

var winLegal = null;
function goNotices() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('notices.asp', 'winLegal', windowFeatures);
	winLegal.focus();
}

function checkEmail (address) {
	var msg = '';
	var emailPattern = /^\w+\.*\-?\w*\@(\w+\-?\w*\.{1}){1,3}\D{2,4}$/;
	if (address.match(emailPattern) == null)
		return false;
	else
		return true;
}

function checkMsg (msg, focusField) {
	if (msg == '')
		return true;
	else {
		msg = 'There Has Been An Error Processing Your Request.\nPlease Try Again!\n\n' + msg;
		alert (msg);
		focusField.focus();
		return false;
	}
}

function cancel (url) {
	window.location.replace(url);
}

var winPic = null;
function showPic(pic) {
	var windowWidth = 600;
	var windowHeight = 300;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=0';
	
	if ((winPic != null) && !winPic.closed) {
		winPic.close();
	};
	
	winPic = open('images/' + pic, 'winPic', windowFeatures);
	winPic.focus();
}

function checkSalesForce(form) {
	var msg = '';
	var firstField = '';
	
	if (form.first_name.value == '') {
		msg = msg + 'Invalid First Name\n';
		if (firstField == '') firstField = form.first_name;
	}
	if (!checkEmail(form.email.value)) {
		msg = msg + 'Invalid Email\n';
		if (firstField == '') firstField = form.email;
	}

	return checkMsg(msg, firstField);
}
// -->