﻿var incolor = "#ffff99"; 
var outcolor = "white";
var preitem = "ctl00_PH_";
var loopcnt = 0;

window.onload = wonload;
function wonload()
{
    if ( document.getElementById(preitem + "hidmap") != null )
    {
       map_dsp();          
    }
}

window.onunload = wonunload;
function wonunload()
{
    if (( document.getElementById(preitem + "hidmap") != null ) || ( document.getElementById(preitem + "hidmapzoom") != null ))
    {
        GUnload();
    }
}

function wonfocus(id)
{
	document.getElementById(id).style.backgroundColor = incolor;
}
function wonblur(id)
{
	document.getElementById(id).style.backgroundColor = outcolor;
}

function maintab_mouseover(id)
{
	if ( document.getElementById(id).className != "maintab_on" )
	{
   	    document.getElementById(id).className = "maintab_moveon";
    	var w_barid = id + "bar2";
	    document.getElementById(w_barid).className = "maintab_over";
    	
    	w_barid = id + "bar";
	    document.getElementById(w_barid).className = "maintab_over";
	}	
}
	
function maintab_mouseout(id)
{
	if ( document.getElementById(id).className != "maintab_on" )
	{
    	document.getElementById(id).className = "maintab";
    	var w_barid = id + "bar2";
	    document.getElementById(w_barid).className = "maintab_out";
    	
    	w_barid = id + "bar";
	    document.getElementById(w_barid).className = "maintab_def";    
	}	
}

function subtab_mouseover(id)
{
	if ( document.getElementById(id).className != "subtab_on" )
	{
   	    document.getElementById(id).className = "subtab_moveon";
    	var w_barid = id + "bar2";
	    document.getElementById(w_barid).className = "subtab_over";
    	
    	w_barid = id + "bar";
	    document.getElementById(w_barid).className = "subtab_over";
	}	
}
	
function subtab_mouseout(id)
{
	if ( document.getElementById(id).className != "subtab_on" )
	{
    	document.getElementById(id).className = "subtab";
    	var w_barid = id + "bar2";
	    document.getElementById(w_barid).className = "subtab_out";
    	
    	w_barid = id + "bar";
	    document.getElementById(w_barid).className = "subtab_def";    
	}	
}

function tatetab_mouseover(id)
{
	if ( document.getElementById(id).className != "subtab_on" )
	{
   	    document.getElementById(id).className = "subtab_moveon";
    	var w_barid = id + "bar";
	    document.getElementById(w_barid).className = "subtab_over";
	}	
}
	
function tatetab_mouseout(id)
{
	if ( document.getElementById(id).className != "subtab_on" )
	{
    	document.getElementById(id).className = "subtab";
        var w_barid = id + "bar";
	    document.getElementById(w_barid).className = "subtab";
	}	
}

function msgclear(id)
{
	document.getElementById(id).innerHTML = "";
}


function div_dsp(id)
{
	document.getElementById(id).style.display = "block";
}

function div_hid(id)
{
	document.getElementById(id).style.display = "none";
}
