var od_hlpWin;
function showHelp(url)
{
		//window.open('../help/ViewThemeHelp.jsp?id='+url,'openDemocracy Help','width=400,height=400,scrollbars=1,status=yes,resizable=yes');
		    window.open('/help/ViewThemeHelp.jsp?id='+url, 'openDemocracy_Help', 'width=400,height=400,scrollbars=yes,status=yes,resizable=yes');
}

var od_bioWin;
function showBio(url)
{
	if (url)
	{
		//od_bioWin	= window.open('/authors/View.jsp?id='+url,'openDemocracy','width=400,height=400,scrollable=auto,status=1,resizable=yes');
		od_bioWin	= window.open('/authors/View.jsp?id='+url,'openDemocracy_Biography','width=400,height=400,scrollbars=yes,status=yes,resizable=yes');
		od_bioWin.focus();
	}
	return false;
}


var od_licWin;
function showLic()
{
	od_licWin	= window.open('../other_content/acemdemic_lic.jsp','od_bioWin','width=660,height=400,scrollbars=1,status=1');
}
function openRegistration () {
    //window.open('/registration/registration1.jsp', 'openDemocracy Registration', 'width=800,height=600,scrollbars=yes,status=yes,resizable=yes');
    //win = window.open('/registration/registration1.jsp', 'openDemocracy_Registration', 'width=640,height=480,scrollbars=yes,status=yes,resizable=yes');
		win = window.open('/registration2/screen1.jsp', 'openDemocracy_Registration', 'width=535,height=360,scrollbars=yes,status=yes,resizable=yes');
    win.focus();	
		return win;    
    //window.location='/home.jsp';
}

function openLogin () {
    //window.open('/registration/login.jsp', 'openDemocracy Login', 'width=640,height=480,scrollbars=yes,status=yes,resizable=yes');
    //win = window.open('/registration/login.jsp', 'openDemocracy_Login', 'width=640,height=480,scrollbars=yes,status=yes,resizable=yes');
		win = window.open('/registration2/sign_in.jsp', 'openDemocracy_Login', 'width=535,height=360,scrollbars=yes,status=yes,resizable=yes');
    win.focus();
    //window.location='/home.jsp';
}

function openLicenses () {
    win = window.open('/registration/organisation/org_registration.jsp', 'openDemocracy_Licenses', 'width=640,height=480,scrollbars=yes,status=yes,resizable=yes');
    win.focus();
    //window.location='/home.jsp';
}

function openMember () {
	//win = window.open('/registration/member/registration2.jsp', 'openDemocracy_Member_Registration', 'width=800,height=600,scrollbars=yes,status=yes,resizable=yes');
	win = window.open('/registration2/join_free.jsp', 'openDemocracy_Member_Registration', 'width=535,height=350,scrollbars=yes,status=yes,resizable=yes');
	win.focus();
    //window.location='/home.jsp';
}

function openHelp () {
    win = window.open('/other_content/help.jsp', 'openDemocracy_Help', 'width=800,height=600,scrollbars=yes,status=yes,resizable=yes');
    win.focus();
    //window.location='/home.jsp';
}

function openTermsAndConditions () {
    win = window.open('/registration/terms/member_terms_and_conditions.jsp', 'openDemocracy_Terms_and_Conditions', 'width=800,height=600,scrollbars=yes,status=yes,resizable=yes');
    win.focus();
    
    //window.location='/home.jsp';
}

function openLegal () {
    win = window.open('/about/about_od_legal.html', 'openDemocracy_Legal', 'width=800,height=600,scrollbars=yes,status=yes,resizable=yes');
    win.focus();
    //window.location='/home.jsp';
}

function openSupporter () {
    //win = window.open('/servlet/content.accounts.Create?type=3', 'openDemocracy_Supporter', 'width=640,height=480,scrollbars=yes,status=yes,resizable=yes');
		win = window.open('/registration2/upgrade_2_supporter.jsp', 'openDemocracy_Supporter', 'width=535,height=360,scrollbars=yes,status=yes,resizable=yes');
    win.focus();
    //window.location='/home.jsp';
}

function openTour () {
    win = window.open('/tour/index.jsp', 'Tour_openDemocracy', 'width=640,height=480,scrollbars=no,status=yes,resizable=yes');
    win.focus();
    //window.location='/home.jsp';
}

function openPrivacyPolicy () {
    //window.open('/registration/login.jsp', 'openDemocracy Login', 'width=640,height=480,scrollbars=yes,status=yes,resizable=yes');
    win = window.open('/registration/terms/member_terms_and_conditions.jsp#pp', 'openDemocracy_Login', 'width=640,height=480,scrollbars=yes,status=yes,resizable=yes');
    win.focus();
    //window.location='/home.jsp';
}

function openDonate () {
	  win = window.open('/registration2/donate.jsp', 'openDemocracy_Donate', 'width=535,height=420,scrollbars=yes,status=yes,resizable=yes');
    win.focus(); 
}

function microwinOp(url,w,h,src) {
if (src == 1) {
winoptions = "height=" + h + ",width=" + w + ",scrollbars = yes"
} else {
winoptions = "height=" + h + ",width=" + w + ""
}

var pop = window.open(url,"pop",winoptions)
}

function launchAudio (url) {
	  win = window.open(url, 'openDemocracy_Audio', 'width=250,height=120');
    win.focus(); 
}


