
function termswindow() { 
	window.open('http://www.parks.uk.com/terms/terms.html','pmgterms','width=320,height=300,resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,left=100,top=100,screenX=100,screenY=200'); 
} 

function jobwindow(JobRef) { 
	window.open('http://www.parks.uk.com/cgi-bin/careerdetail.pl?ref=' + JobRef,'pmg_jobref_' + JobRef,'width=400,height=480,resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,left=100,top=100,screenX=100,screenY=200'); 
} 

function formwindow(Referer) { 
	window.open('http://www.parks.uk.com/cgi-bin/form.pl?dept=' + Referer,'pmg_form','width=750,height=550,resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,left=100,top=100,screenX=100,screenY=200'); 
} 

function gotopage(page) {
	document.location = page;	
}

function openformpage(page) {
	window.open(page,'motohomes_form','width=750,height=600,resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,left=100,top=100,screenX=100,screenY=200'); 
}

function BmwMini_List(page, width) {
	window.open(page,'bmw_used_car_list','width=' + width + ',height=600,resizable=no,scrollbars=yes,toolbar=yes,location=no,directories=no,status=yes,menubar=yes,copyhistory=no,left=100,top=100,screenX=100,screenY=200'); 
}

function openwindow(page) { 
	window.open(page,'parks','scrollbars,menubar,resizable,dependent,status, width=750,height=600,left=10,top=10'); 
}

function button_on(but) {
	var bon = document.getElementById(but);
	bon.src = "http://www.parks.uk.com/images/branch/shared/round_but_on.gif";
}

function button_off(but) {
	var bon = document.getElementById(but);
	bon.src = "http://www.parks.uk.com/images/branch/shared/round_but_off.gif";
}

function clickCategory(CatIDStr) {
	var txtObj = document.all(CatIDStr + '_T');
	var imgObj = document.all(CatIDStr + '_I');
	if (txtObj.style.display == 'none'){
		txtObj.style.display = 'block';
		imgObj.src = 'http://vo.parks.uk.com/images/general/vo-minus.gif';
	} else{
		txtObj.style.display = 'none';
		imgObj.src = 'http://vo.parks.uk.com/images/general/vo-plus.gif';
	}
}
