//RENAME
name='ImageRed';
function thankyou(){

	spawn("thankyou_enquiry.asp", "child", "500","200");	
	//return false;

}

function spawn(url, nameW, w, h) {
        if (navigator.appVersion.indexOf('4') != -1) {
        // Vars for centering the new window on Version 4 Browsers
        x4 = screen.width/2 - (w/2);
        y4 = screen.height/2 - (h/2);
        window.open(url, nameW,'height='+h+',width='+w+',scrollbars=1,resizable=0,menubar=0,toolbar0,status=1,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
        } else {
        window.open(url, nameW,'height='+h+',width='+w+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=1,location=0,directories=0,left=150,top=200');
        }

}


function copyright(){

	spawn("copyright.asp", "child", "500","540");

	//return false;

}


function map(){
	spawn("map.asp", "child", "620","475");
	//return false;
}

function enquires(){
	spawn("enquiries.asp", "child", "400","585");
}


//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//[ greating message ]
//  0002 - general clean up
//  0001 - base version
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function printGreatingMsg(){
	iHour = new Date().getHours();	
	if(iHour>2&&iHour<12){document.write("Good Morning! ");
	}else if(iHour>2&&iHour<17){document.write("Good Afternoon! ");
	}else{document.write("Good Evening! ");}
}

