<!--

	/* THE PURPOSE OF THIS FILE IS TO PROVIDE THE EXTERNAL JAVASCRIPTS */
	/* KYLE DE FRANCO 2009_10_05 */


	/* THE FUNCTION TO TRIM A FIELD */
		function trim(obj) {
			str=obj.value;
			while(str.substring(0,1)==" ") {
				str=str.substring(1);
			}
			while(str.substring(str.length-1)==" ") {
				str=str.substring(0,str.length-1);
			}
			obj.value=str;
		}


	/* THE FUNCTION TO VALIDATE AN EMAIL */
		function val_email(str) {
			if(
				str.length<6
				|| str.indexOf(",")>=0
				|| str.indexOf(";")>=0
				|| str.indexOf(":")>=0
				|| str.indexOf("/")>=0
				|| str.indexOf(" ")>=0
				|| str.indexOf("@")<=0
				|| (str.indexOf("@")!=str.lastIndexOf("@"))
				|| (str.lastIndexOf(".")<str.indexOf("@"))
			) {
				return false;
			} else {
				return true;
			}
		}


	/* FOR THE PRODUCT "POPUP" */
		$(document).ready(function() {
			$("a.fb_prod").fancybox({
				'frameWidth':	650, 
				'frameHeight':	500,
				'hideOnContentClick':	false
			});
		});


	/* USED TO EMPLOY THIS WACKASS DESIGN */
		function alertSize() {
			//alert($(document).height);

			var myWidth = 0, myHeight = 0;
				if( typeof( window.innerWidth ) == 'number' ) {
					//Non-IE
					myWidth = window.innerWidth;
					myHeight = window.innerHeight;
				} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
					//IE 6+ in 'standards compliant mode'
					myWidth = document.documentElement.clientWidth;
					myHeight = document.documentElement.clientHeight;
				} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
					//IE 4 compatible
					myWidth = document.body.clientWidth;
					myHeight = document.body.clientHeight;
				}
			window.alert( 'Width = ' + myWidth);
			window.alert( 'Height = ' + myHeight);

		}

-->