//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// file: Blog.js
// purpose: this file is included in the actualy blogs.  we can add any helper functions here.
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


//-------------------------------------------------------------------
//function ComingSoon()
//-------------------------------------------------------------------
function ComingSoon()
{
	alert('Coming Soon!');
}

//-------------------------------------------------------------------
//function WindowOpen(url)
//-------------------------------------------------------------------
function OpenWindow(url, height, width)
{
	eval('var options = "toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width='+width+', height='+height+'"');
	var winname = "newwindow"
	var newwin = window.open(url,winname,options)
	newwin.focus();
}


//-------------------------------------------------------------------
//function OpenWindowScroll(url)
//-------------------------------------------------------------------
function OpenWindowScroll(url, height, width)
{
	eval('var options = "toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width='+width+', height='+height+'"');
	var winname = "newwindowscroll"
	var newwin = window.open(url,winname,options)
	newwin.focus();
}


//-------------------------------------------------------------------
//function OpenWindowScroll(url)
//-------------------------------------------------------------------
function OpenWindowScroll_Templates(url, height, width)
{
	eval('var options = "toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width='+width+', height='+height+'"');
	var winname = "newwindowscroll"
	var newwin = window.open(url,winname,options)
	newwin.focus();
}

//-------------------------------------------------------------------
//function ViewVersion(id)
//-------------------------------------------------------------------
function ViewVersion(id)
{
	document.frm_displayversion.version_current.value = id;
	document.frm_displayversion.submit();
}