
// Index PreLoad Images
if (document.images) {
var a = new Image(); a.src = "img/sub_ribbonOfHope_over.jpg";
var b = new Image(); b.src = "img/sub_askTheJeweler.jpg";
var c = new Image(); c.src = "img/sub_gift_ideas_over.jpg";
var d = new Image(); d.src = "img/sub_customDesigns.jpg";
}

// Mail Form Functions 
			function SetReq(){
			var hw = document.collect.ContactHow.options[document.collect.ContactHow.selectedIndex].value; 
				if (hw == "Email"){
					document.collect.firstname.style.backgroundColor = 'cccccc';
					document.collect.lastname.style.backgroundColor = 'cccccc';
					document.collect.zip.style.backgroundColor = 'cccccc';
					document.collect.email.style.backgroundColor = 'cccccc';
					document.collect.streetaddress1.style.backgroundColor = 'ffffff';
					document.collect.city.style.backgroundColor = 'ffffff';
					document.collect.state.style.backgroundColor = 'ffffff';
					document.collect.zip.style.backgroundColor = 'cccccc';
					}
					if (hw == "mail"){
					document.collect.firstname.style.backgroundColor = 'cccccc';
					document.collect.lastname.style.backgroundColor = 'cccccc';
					document.collect.streetaddress1.style.backgroundColor = 'cccccc';
					document.collect.city.style.backgroundColor = 'cccccc';
					document.collect.state.style.backgroundColor = 'cccccc';
					document.collect.zip.style.backgroundColor = 'cccccc';
					document.collect.email.style.backgroundColor = 'ffffff';
					}
					if (hw == "Both"){
					document.collect.firstname.style.backgroundColor = 'cccccc';
					document.collect.lastname.style.backgroundColor = 'cccccc';
					document.collect.zip.style.backgroundColor = 'cccccc';
					document.collect.email.style.backgroundColor = 'cccccc';
					document.collect.streetaddress1.style.backgroundColor = 'cccccc';
					document.collect.city.style.backgroundColor = 'cccccc';
					document.collect.state.style.backgroundColor = 'cccccc';
					document.collect.zip.style.backgroundColor = 'cccccc';
					}	
					}

		
		function checkForm(){
		var fn; 
		var ln;
		var ad1;
		var ad2;
		var cty;
		var st;
		var zp;
		var eml;
		var hw;
			fn = document.collect.firstname.value;
			ln = document.collect.lastname.value;
			ad1 = document.collect.streetaddress1.value;
			ad2 = document.collect.streetaddress2.value;
			cty = document.collect.city.value;
			st = document.collect.state.value;
			zp  = document.collect.zip.value;
			eml = document.collect.email.value;
			hw = "Both";
							
			
						if (fn == ""){
						alert("Please enter your First Name.");
						document.collect.firstname.style.backgroundColor = 'FFCC00'
						document.collect.firstname.focus();
						return false;				
						}
					if (ln == ""){
						alert("Please enter your Last Name.");
						document.collect.lastname.style.backgroundColor = 'FFCC00'
						document.collect.lastname.focus();
						return false;
						}	
					if (ad1 == ""){
						alert("Please enter your Street Address or PO Box.");
						document.collect.streetaddress1.style.backgroundColor = 'FFCC00'
						document.collect.streetaddress1.focus();
						return false;					
						}
						if (cty == ""){
						alert("Please enter your City.");
						document.collect.city.style.backgroundColor = 'FFCC00'
						document.collect.city.focus();
						return false;					
						}
						if (st == ""){
						alert("Please enter your State.");
						document.collect.state.style.backgroundColor = 'FFCC00'
						document.collect.state.focus();
						return false;					
						}
						if (zp == ""){
						alert("Please enter your Zip Code.");
						document.collect.zip.style.backgroundColor = 'FFCC00'
						document.collect.zip.focus();
						return false;					
						}
						if (eml == ""){
						alert("Please enter your Email Address.");
						document.collect.email.style.backgroundColor = 'FFCC00'
						document.collect.email.focus();
						return false;	
						}
						
						}			

// Quick Join Submit 

		function QuickJoin(){
			document.CooperMail.submit();
			}
			
// quick join on focus take out email

		function clean(form){
			if(form.email.value == 'email address')
			 form.email.value = '';
			 }
			 
// Check Image update form for nulls

		
		function CheckuDate() {
			var im;
			var it;
			var id;
		
			im = document.uForm.itemname.value;
			it = document.uForm.type.options[document.uForm.type.selectedIndex].value;
			id = document.uForm.itemdescrp.value;
			
			if (im == ""){
				alert("Please enter a name");
				return false;
			}
			if (it == ""){
				alert("Please enter a choose the Item type");
				return false;
			}
			if (id == ""){
				alert("Please enter the item description");
				return false;
			}
			}
			
// Check Ask the Jewelery pro form 

	
	
	
	
	
			
		
			 