function popUp(URL) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=372');");
}

function expandDiv(obj) 
{
	var el = document.getElementById(obj);
	if (el.style.display == 'none')
	{
		el.style.display = '';
	}
}

function collapseDiv(obj)
{
	var el = document.getElementById(obj);
	if (el.style.display != 'none') 
	{
		el.style.display = 'none';
	}
}

function js_clock()
{
	var clock_time 		= new Date();
	var clock_hours 	= clock_time.getHours() -1;
	var clock_minutes 	= clock_time.getMinutes();
	var clock_seconds 	= clock_time.getSeconds();
	var clock_suffix 	= "AM";
	
	if (clock_hours > 11)
	{
		clock_suffix = "PM";
		clock_hours = clock_hours - 12;
	}
	
	if (clock_hours == 0)
	{
		clock_hours = 12;
	}
	
	if (clock_hours < 10)
	{
		clock_hours = "0" + clock_hours;
	}
	
	if (clock_minutes < 10)
	{
		clock_minutes = "0" + clock_minutes;
	}
	
	if (clock_seconds < 10)
	{
		clock_seconds = "0" + clock_seconds;
	}
	
	var clock_div 		= document.getElementById('skaDayClock');
	clock_div.innerHTML = clock_hours + ":" + clock_minutes + ":" + clock_seconds + " " + clock_suffix;
	setTimeout("js_clock()", 1000);
}

function vhconfirm(v, m)
{
    if (v)
    {
       	var f =  document.createElement("form");document.body.appendChild(f);f.method = "POST";f.action = $("#" + v ).attr( "href" );f.submit(); 
    } 
	else 
    {
        return false;
    }
}
