function PopulateArea(o)		
{		
	d=document.getElementById('Area');
	if(!d){return;}			

	d.options.length=0;
	document.getElementById('Suburb').options.length=0;
	cur=Areas[o.options[o.selectedIndex].value];
	if(!cur){return;}
	d.options.length=cur.length+1;
	d.options[0].text='<- All ->';
	d.options[0].value='';
	for(var i=0;i<cur.length;i++)
	{
		d.options[i+1].text=cur[i];
		d.options[i+1].value=cur[i];
	}
}

function PopulateSuburb(o)		
{		
	d=document.getElementById('Suburb');
	if(!d){return;}			

	d.options.length=0;
	pro=document.getElementById('Province');
	cur=Suburbs[pro.options[pro.selectedIndex].value,o.options[o.selectedIndex].value];
	if(!cur){return;}
	d.options.length=cur.length+1;
	d.options[0].text='<- All ->';
	d.options[0].value='';
	for(var i=0;i<cur.length;i++)
	{
		d.options[i+1].text=cur[i];
		d.options[i+1].value=cur[i];
	}
}

function validate_form()
{
    valid = true;

    if ( document.report.Province.selectedIndex < 1 )
    {
        alert ( "Please select the Province." );
        valid = false;
    }

    return valid;
}

var clickmessage="Hello, Hello .... What are you trying to do with our images??"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
