// google frame wrapper
//----check to see if has been loaded without parent. if so, load in original, using split location

if (window.top==window.self) 
	{
		framename=window.top.location.href.split('/');
		window.location='http://www.fktools.com.au/#'+framename[3];
	}

function framesizeF() { // change the size of the frame window to prevent scrolling based on content
	parent.document.getElementById('frame').style.height=document.getElementById('page').offsetHeight+30+'px';
}

window.onload = function () {
//if (!document.all && window.location.href.indexOf('home.php')>0) {
//	parent.document.getElementById('frame').style.height=1600+'px';
//} else {
	setInterval('framesizeF();',1000);
//}

	//alert('h: '+document.getElementById('page').offsetHeight);
}

function pop(x) 
{
window.open(x,'pop','scrollbars=no,width=600,height=600');
}

function subdisF(thisS) { // newcategory onchange - disable subcat if it's construction or petrol (no subs for these)
	alert(thisS.selectedIndex);
	if (thisS.selectedIndex==2 || thisS.selectedIndex==3) {
		alert('in');
		document.getElementById('newsubcat').disabled=true;
	} else {
		document.getElementById('newsubcat').disabled=false;
	}
}
