<!--
function opacity(id, opacStart, opacEnd, millisec) { 
    //speed for each frame 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    //determine the direction for the blending, if start and end are the same nothing happens 
    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

//change the opacity for different browsers 
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
}
function show_main_short(ID){
	clearTimeout(t);
	if(ID==1) { DEC = "Did you know that a car key is the most daily used item? With cars being such a necessity for most of us, it is vital not to be caught out by losing or breaking your one and only key. We can supply spare keys at a fraction of the price you’d pay at your local dealership."; TITLE = "Spare car keys"; }
	if(ID==2) { DEC = "As technology over the last 15 years has progressed so much the car remote key has become more and more complex. In the past a remote was a luxury, now it’s accepted as standard. This is common to all vehicles now and the problems have increased accordingly. We can replace remote key batteries, reprogram, and test them for your car."; TITLE = "Remote Fobs"; }
	if(ID==3) { DEC = "Back in the mid 90's car crime was very high. To combat this problem all cars have used immobiliser technology as standard that work even if you don’t lock your car. This now makes the keys a prime target for car theft, and if this is the case with you we have the ability (for most cars) to reset the locks and reprogram the immobiliser so that the old keys will no longer work."; TITLE = "Stolen Keys"; }
	if(ID==4) { DEC = "As security has become more advanced over the years locking your keys in the car is still a problem. Gone are the days when you could get in with a coat hanger. With all the current lock shields and dead locking devices we have now adapted techniques for most cars to enable none destructive entry."; TITLE = "Lock Outs"; }
	if(ID==5) { DEC = "We are one of the leading trade suppliers of keys, remotes, transponder chips and machinery to the auto locksmith industry. Our special trade supplies and knowledge is aimed to help businesses move forward."; TITLE = "Trade Supplies"; }
	
	document.getElementById('1link').style.color = '#666666';
	document.getElementById('2link').style.color = '#666666';
	document.getElementById('3link').style.color = '#666666';
	document.getElementById('4link').style.color = '#666666';
	document.getElementById('5link').style.color = '#666666';
	document.getElementById(ID + 'link').style.color = '#000033';
	//fade in image 
    opacity('main_short_table', 100, 0, 1000); 
	opacity('Short_Description', 100, 0, 1000); 
	opacity('Short_title', 100, 0, 1000);
	setTimeout("document.getElementById('Short_Description').innerHTML = DEC;",1000);
	setTimeout("document.getElementById('Short_title').innerHTML = TITLE;",1000);
	setTimeout("opacity('main_short_table', 0, 100, 1000)",1000); 
	setTimeout("opacity('Short_Description', 0, 100, 1000)",1000); 
	setTimeout("opacity('Short_title', 0, 100, 1000)",1000); 
}
var thisid=2;
var t
function browse_index_elements(){
	show_main_short(thisid);
	if (thisid==5) {
		thisid=1 } else {
		thisid++ }
	t=setTimeout("browse_index_elements()",10000);
}
function clear_form_element(element){
	element.value='';
	element.style.color='#000000';
}
function preloader(image) 
{
	heavyImage = new Image(); 
	heavyImage.src = image;
}
function show_more_makes(){
	document.getElementById('more_makes').style.position='relative';
	document.getElementById('more_makes').style.visibility='visible';
}
function show_ansrew(id){
	if (document.getElementById(id+'_ansrew').style.visibility=='visible') {
		document.getElementById(id+'_ansrew').style.position='absolute';
		document.getElementById(id+'_ansrew').style.visibility='hidden';		
		document.getElementById(id+'_arrow').src='images/question_arrow.png';
	} else {
		document.getElementById(id+'_ansrew').style.position='relative';
		document.getElementById(id+'_ansrew').style.visibility='visible';
		document.getElementById(id+'_arrow').src='images/question_arrow2.png';
	}
}

function show_comments_form(element){
	document.getElementById('comments').style.visibility='visible'; 
	document.getElementById('comments').style.position='relative';
	document.getElementById('add_comment_link').innerHTML='';
}
function trim(str)
{
   return str.replace(/^\s+|\s+$/g,'');
}
function validate_comment_form(){
	if(document.forms.comment.name.value==''){
		alert('Please enter your name');
		return false;
	}
	if(document.forms.comment.location.value==''){
		alert('Please enter your location');
		return false;
	} 
	if(document.forms.comment.comments.value==''){
		alert('Please enter your comments');
		return false;
	}
	document.forms.comment.name.value=trim(document.forms.comment.name.value);
	document.forms.comment.location.value=trim(document.forms.comment.location.value);
	document.forms.comment.comments.value=trim(document.forms.comment.comments.value);
	return true;
}
function validate_contact_form()
{
	if (document.contact.FName.value=="")
	{
		alert("Please Enter Your First Name");
		return false;
	}
	if (document.contact.LName.value=="")
	{
		alert("Please Enter Your Last Name");
		return false;
	}
	if (document.contact.Email.value=="")
	{
		alert("Please Enter Your Email Address");
		return false;
	}
	
	email = document.contact.Email.value
	AtPos = email.indexOf("@")
	StopPos = email.lastIndexOf(".")
	
	if (AtPos == -1 || StopPos == -1) 
	{
		alert("The email address supplied is not valid");
		return false;
	}
	if (document.contact.City.value=="")
	{
		alert("Please Enter Your City");
		return false;
	}

}
-->