<!--
function openImageWindow(img)
{
	var pathfile = "view_images.asp?file="+img;
	window.open(pathfile,'Img_window','width=400,height=300,toolbar=0,scrollbars=1,status=0,resizable=1');
}


function change_lang(lang_type){
	path		= document.URL;
        //http_header	= "http://dh02.hkseeker.com/gb/";
        http_header	= "http://sc.afcd.gov.hk/gb/";
        gb_base 	= path.indexOf("/gb/");
        
	switch(lang_type){
		case "eng":
                        if(gb_base>0)
                        path		= path.replace(http_header, "http:"+"//");

                        path_key	= "/eng/";
			path		= path.replace("/big5/", path_key);
		break
		case "big5":
			if(gb_base>0)
                        path		= path.replace(http_header, "http:"+"//");
                        
			path_key	= "/big5/";
			path		= path.replace("/eng/", path_key);
		break;
                case "gb":
			path_key	= "/big5/";
			path		= path.replace("/eng/", path_key);
                        
                        if(gb_base<0)
                        path		= path.replace("http://", http_header);
		break;
	}
       
	window.location	= path;
}


function change_text(lang_type){
        //http_header	= "http:/" + "/dh02.hkseeker.com/gb/";
        http_header	= "http:/" + "/sc.afcd.gov.hk/gb/";
        //home_header	= "aspdev.sunnyvision.com/redtide/";
        //home_header	= "hkredtide.sunnyvision.com/";
        home_header	= "www.hkredtide.org/";
        
	switch(lang_type){
		case "eng":
                        path 		= "http:/" + "/" + home_header + "engtext";
		break
		case "big5":
			path 		= "http:/" + "/" + home_header + "big5text";
		break;
                case "gb":
			path 		= http_header + home_header + "big5text";
		break;
	}
	window.location	= path;
}

function openDetailWindow(redtide_code)
{
	rt = window.open('redtide.detail.asp?code='+redtide_code,'redtide_window','width=490,height=500,toolbar=0,scrollbars=1,status=0,resizable=0');
        rt.focus();
}

//-->


//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Mouse Right Click Button Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

document.write('<META http-equiv="imagetoolbar" content="no" />');