function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function openPages(mainPage, stripPage){
	if(stripPage == 'contactUs'){
		document.getElementById('flashFrame').src = 'includes/inc_stripContactUs.cfm';
	} else {
		document.getElementById('flashFrame').src = 'includes/inc_stripFlash.cfm';
	}
	document.getElementById('mainFrame').src = mainPage;
}
function openGallery(){
var scr_h, scr_w, centerT, centerL, xc, yc, scrollon, urlValue;
//
	if (navigator.appName == 'Microsoft Internet Explorer' && (navigator.platform.substring(0,3) == 'Win')){
		xc=10;
		yc=57;
	}
	else if (navigator.appName == 'Netscape' && navigator.platform.substring(0,3) == 'Win') {
		xc=12;
		yc=59;
	}
	else if (navigator.platform == 'MacPPC' && navigator.appName == 'Netscape'){
		xc=13;
		yc=49;
	}
	else {
		xc=13;
		yc=31;	
	}

	//scr_w=screen.width-xc;
	//scr_h=screen.height-yc;
	//scr_w=590;
	//scr_h=400;
	scr_w=1000;
	scr_h=700;
	
	if( screen.width < 1024 || screen.height < 768) {
		scrollon = "yes";
	} 
	else {
		scrollon = "no";
	}
//
	if(screen){
		//centerL = (screen.availWidth - scr_w)/2;
		//centerT = (screen.availHeight - scr_h)/2;
		centerL = (screen.availWidth - 990)/2;
		centerT = (screen.availHeight - 680)/2;
	}
	
	//urlValue = "http://65.36.226.38/PROD/galleryMain.cfm?gallery=1&width=" + scr_w + "&height=" + scr_h;
	//urlValue = "http://www.Pics-L-Gallery.com/PROD/main.cfm?ownerID=26&condition=1&title=Taylor Machine Inc. Photos&bgColor=DAD7D8"
	urlValue = "http://gallery.spectrum-interactive.net/PROD/main.cfm?ownerID=26&condition=1&title=Taylor Machine Inc. Photos&bgColor=DAD7D8";
	if(scrollon == "yes"){
		newWindow = window.open(urlValue,'Main','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+scr_w+',height='+scr_h+',screenX='+centerL+',screenY='+centerT+',top='+centerT+',left='+centerL);
	}
	else {
		newWindow = window.open(urlValue,'Main','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+scr_w+',height='+scr_h+',screenX='+centerL+',screenY='+centerT+',top='+centerT+',left='+centerL);
	}
	
	newWindow.focus();
	if(navigator.platform.indexOf("MacPPC")!=-1 && navigator.appName.indexOf('Microsoft')!=-1)
	{
		newWindow.resizeTo(scr_w,scr_h);
	}
	
}
function changeColor(theStyle, theColor) {
		theStyle.color = theColor;
}
function submitForm(form) {
	form.submit();
}
function checkContactForm(contactForm){
	var x = 1;
	
	if(contactForm.name.value == '') {
		alert('Please Enter A Your Name.');
		x = 0;
	} else if(contactForm.email.value.search('@') == -1) {
		alert('Please Enter A Valid Email Account.');
		x = 0;
	} else if(contactForm.email.value.search('.') == -1) {
		alert('Please Enter A Valid Email Account.');
		x = 0;
	} else if(contactForm.telephone.value == "") {
		alert('Please Enter A Valid 10 Digit Phone Number.');
		x = 0;
	}  else if(isNaN(contactForm.telephone.value) == true) {
		alert('Please Enter A Valid Phone Number.  \nDo not add characters  such as: . ( ) - \n\nEx:7637865949');
		x = 0;
	} else if(contactForm.telephone.value.length != 10) {
		alert('Please Enter A Valid 10 Digit Phone Number including Area Code.');
		x = 0;
	} else if(contactForm.comment.value.length >= 2000) {
		alert('Comments cannot exceed 2000 characters in length.');
		x = 0;
	} 
	if(x == 1) {
		contactForm.submit();
	}
}
function checkClientFTPForm(clietFTPForm){
	var x = 1;
	
	if(clietFTPForm.name.value == '') {
		alert('Please Enter A Your Name.');
		x = 0;
	} else if(clietFTPForm.company.value == '') {
		alert('Please Enter A Valid Company Name.');
		x = 0;
	} else if(clietFTPForm.email.value.search("@") == -1) {
		alert('Please Enter A Valid Email Account.');
		x = 0;
	} else if(clietFTPForm.email.value.search(".") == -1) {
		alert('Please Enter A Valid Email Account.');
		x = 0;
	} else if(clietFTPForm.telephone.value.length != 10) {
		alert('Please Enter A Valid 10 Digit Phone Number.');
		x = 0;
	}  else if(isNaN(clietFTPForm.telephone.value) == true) {
		alert('Please Enter A Valid Phone Number. No Characters Or Letters.');
		x = 0;
	} else if(clietFTPForm.comment.value.length >= 2000) {
		alert('Comments cannot exceed 2000 characters in length.');
		x = 0;
	} else if(clietFTPForm.fileToFTP.value == '') {
		alert('Please select a file to upload.');
		x = 0;
	} 
	if(x == 1) {
		clietFTPForm.submit();
		document.getElementById("clientFTPUploadingText").style.visibility = "visible";
	}
}
function openTUVPopup() {
	window.open('inc_TUV.cfm','TUVCertified','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0, width=473, height=613, margin=0')
}