<!--
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/navigation/products-box-over.jpg");
		Home02 = newImage("images/navigation/specials-box-over.jpg");
		Home03 = newImage("images/navigation/distributors-box-over.jpg");
		Home04 = newImage("images/navigation/orders-box-over.jpg");
		Nav01 = newImage("images/navigation/did-you-know-over.gif");
		Nav02 = newImage("images/navigation/distributors-over.gif");
		Nav03 = newImage("images/navigation/in-the-news-over.gif");
		Nav04 = newImage("images/navigation/orders-over.gif");
		Nav05 = newImage("images/navigation/products-over.gif");
		Nav06 = newImage("images/navigation/specials-over.gif");
		Random01 = newImage("images/random/home-faces/home-face-1.jpg");
		Random02 = newImage("images/random/home-faces/home-face-2.jpg");
		Random03 = newImage("images/random/home-faces/home-face-3.jpg");
		Random04 = newImage("images/random/home-faces/home-face-4.jpg");
		Random05 = newImage("images/random/home-faces/home-face-5.jpg");
		Random06 = newImage("images/random/int-faces/int-face-1.jpg");
		Random07 = newImage("images/random/int-faces/int-face-2.jpg");
		Random08 = newImage("images/random/int-faces/int-face-3.jpg");
		Random09 = newImage("images/random/int-faces/int-face-4.jpg");
		Random10 = newImage("images/random/int-faces/int-face-5.jpg");
		Globe01 = newImage("images/map-out.jpg");
		Globe02 = newImage("images/map-usa.jpg");
		Globe03 = newImage("images/map-canada.jpg");
		Globe04 = newImage("images/map-europe.jpg");
		Globe05 = newImage("images/map-australia.jpg");
		preloadFlag = true;
	}
}

function preloadImagesPlatinum25() {
	if (document.images) {
		img01 = newImage("images/navigation/Platinum-order-now-over.gif")
		img02 = newImage("images/navigation/Platinum-learn-more-over.gif")
		preloadFlag = true;
	}
}

var winLegal = null;
function goClingAd() {
	var windowWidth = 707;
	var windowHeight = 400;
	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('cling-ad.asp', 'winLegal', windowFeatures);
	winLegal.focus();
}

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();
}

var winMovie = null;
function goMovie(movie, w, h) {
	var windowWidth =  w;
	var windowHeight = h;
	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 ((winMovie != null) && !winMovie.closed) {
		winMovie.close();
	};
	
	winMovie = open('winmovie.asp?m=' + movie + '&h=' + h + '&w=' + w, 'winMovie', windowFeatures);
	winMovie.focus();
}

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 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 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 checkRequestOrderForm(form) {
	var msg = '';
	var firstField = '';
	
	if (form.nameofsalon.value == '') {
		msg = msg + 'Invalid Name Of Salon\n';
		if (firstField == '') firstField = form.nameofsalon;
	}
	if (form.contactname.value == '') {
		msg = msg + 'Invalid Contact Name\n';
		if (firstField == '') firstField = form.contactname;
	}
	if (!checkEmail(form.contactemail.value)) {
		msg = msg + 'Invalid Contact Email\n'
		if (firstField == '') firstField = form.contactemail;
	}
	if (form.shippingaddress.value == '') {
		msg = msg + 'Invalid Shipping Address\n';
		if (firstField == '') firstField = form.shippingaddress;
	}
	if (form.telephone.value == '') {
		msg = msg + 'Invalid Telephone\n';
		if (firstField == '') firstField = form.telephone;
	}

	return checkMsg(msg, firstField);
}
// -->