///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//  Copyright 2007, Bei Jin. All rights reserved                             //
//                                                                           //
//  Declaration. Belong to AnalyticalGenetics.                               //
//  version:1.00 date:March 08, 2007                                         //
//  contact:jinbeibuddy@hotmail.com                                          //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////

function open_win(url)
{
	var obj=window.open(url, "newwin", "toolbar=0, location=0, history=0, width=550, height=450, left=300, top=200, scrollbars=1")
	obj.focus();
}

function open_popup(url)
{
	var obj=window.open(url, "newwin", "toolbar=0, location=0, history=0, width=397, height=400, left=0, top=0, scrollbars=0")
	obj.focus();
}

function gobackvalue(intended,val)
{
	window.opener.document.getElementById(intended).value = val;
	window.opener.location.reload();
	window.close();
}

function load(urlprimary,urlauxiliary)
{
    with(parent.frames)
    {
        iframeSideBar.location=urlprimary;
        iframeContent.location=urlauxiliary;
    }
}

function loadparser(urlprimary,urlauxiliary,urlextended)
{
    with(parent.frames)
    {
        iframeSideBar.location=urlprimary;
        iframeContent.location=urlauxiliary;
        iframeProperty.location=urlextended;
    }
}

function showup(urlprimary,urlflow,urlauxiliary)
{
    with(parent.frames)
    {
        iframeContentTitle.location=urlprimary;
        iframeInteractive.location=urlflow;
        iframeContentFooter.location=urlauxiliary;
    }
}

function set_framework_home()
{
    top.document.all.iframeSideBar.style.height=480;
    top.document.all.iframeContent.style.height=480;
    top.document.all.iframeProperty.style.height=480;
    top.document.all.iframeProperty.style.width=226;
    top.document.all.iframeSubtleTray.style.height=356;
    top.document.all.iframeSubtleTray.style.top=578;
    top.document.all.iframeFooter.style.top=934;
}

function set_framework_normal(strValueHeightTable, strValueHeightTray, strValueTopTray, strValueTopFooter)
{
    top.document.all.iframeSideBar.style.height=strValueHeightTable;
    top.document.all.iframeContent.style.height=strValueHeightTable;
    top.document.all.iframeProperty.style.height=strValueHeightTable;
    top.document.all.iframeProperty.style.width=226;
    top.document.all.iframeSubtleTray.style.height=strValueHeightTray;
    top.document.all.iframeSubtleTray.style.top=strValueTopTray;
    top.document.all.iframeFooter.style.top=strValueTopFooter;
}

function set_framework_noproperty(strValueHeightTable, strValueHeightTray, strValueTopTray, strValueTopFooter)
{
    top.document.all.iframeSideBar.style.height=strValueHeightTable;
    top.document.all.iframeContent.style.height=strValueHeightTable;
    top.document.all.iframeProperty.style.height=strValueHeightTable;
    top.document.all.iframeProperty.style.width=226;
    top.document.all.iframeSubtleTray.style.height=strValueHeightTray;
    top.document.all.iframeSubtleTray.style.top=strValueTopTray;
    top.document.all.iframeFooter.style.top=strValueTopFooter;
}

function issue_operateiframe_contenttitle(strValue)
{
	top.document.all.iframeContentTitle.document.all.LabelTitle.innerText=strValue;
}

function issue_operateiframe_contentfooter(strValue)
{
	parent.document.frames.frames["iframeContentFooter"].document.all.LabelFooter.innerText=strValue;
}

function menu_operate_home()
{
	parent.document.all.LabelTaskCurrent.innerText=strValue;
}

function menu_operateiframe_property()
{
	parent.document.frames.frames["iframeProperty"].frameElement.width=1024;
}

function menu_operateiframe_content_shrink()
{
	parent.document.frames.frames["iframeContent"].frameElement.width=600;
}

function menu_operateiframe_content_extend()
{
	parent.document.frames.frames["iframeContent"].frameElement.width=1024;
}

function menu_operateiframe_sidebar(strValue)
{
	parent.document.frames.frames["iframeSideBar"].document.all.LabelTaskCurrent.innerText=strValue;
	parent.document.frames.frames["iframeSideBar"].document.all.TextBoxTaskCurrent.innerText=strValue;
}

