var personalWebpage = "";
var labWebpage = "";


function setPersonalWebpage(textbox)
{
	if(textbox != null && textbox.value != null)
		personalWebpage = textbox.value;
}

function setLabWebpage(textbox)
{
	if(textbox != null && textbox.value != null)
		labWebpage = textbox.value;
}

function testPersonalWebpage()
{
	if(personalWebpage != "")
	{
		window.open(personalWebpage,"", 'toolbar=yes,resizable=yes,menubar=yes,width=650,height=550,location=yes');
	}
	
}

function testLabWebpage()
{
	
	if(labWebpage != "")
	{
		window.open(personalWebpage,"", 'toolbar=yes,resizable=yes,menubar=yes,width=650,height=550,location=yes');
	}
}

function viewVitae(personId)
{
	window.open("GetVitae.aspx?personId=" + personId, "vitaeWindow", 'toolbar=no,resizable=yes,alwaysraised=yes,menubar=no,width=650,height=550,location=no')
}

function viewPhoto(personId)
{
	window.open("GetImage.aspx?personId=" + personId + "&width=300", "photoWindow", 'toolbar=no,resizable=yes,alwaysraised=yes,menubar=no,width=350,height=400,location=no')
}
