function advisorPopUp( url, options ) 
{
	day = new Date();
	id = 'page'+day.getTime();
	/*eval ( "page" + id + " = window.open( '"+url+"', '" + id + "', '"+options+"' ); " ); */
	window.open( url, id, options ); 
}

function advisorCallMe()
{
	var _url = "/common/feedback/kaplancallme_webform.jhtml";
	var _height = 640;
	var _width  = 520;

	// -----------------------------------
	var _opts = 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+_width+',height='+_height+',left = NaN,top = ';
	advisorPopUp( _url, _opts );
}

function advisorEmail()
{
	var _url = "/common/feedback/kaplanadvisor_webform.jhtml";
	var _height = 700;
	var _width  = 655;

	// -----------------------------------
	var _opts = 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+_width+',height='+_height+',left = NaN,top = ';
	advisorPopUp( _url, _opts );
}

function advisorChat(skill)
{
		//window.open( 'https://server.iad.liveperson.net/hc/LPachieva/?cmd=file&file=visitorWantsToChat&site=LPachieva&SESSIONVAR!skill=Kaptest.com&referrer='+escape(document.location),'chatLPachieva','width=472,height=320');
	window.open( 'https://server.iad.liveperson.net/hc/LPachieva/?cmd=file&file=visitorWantsToChat&site=LPachieva&SESSIONVAR!skill='+skill+'&referrer='+escape(document.location),'chatLPachieva','width=472,height=320');
	//	return false;
}

function pmbradvisorPopUp( url, options ) 
{
	day = new Date();
	id = 'page'+day.getTime();
	/*eval ( "page" + id + " = window.open( '"+url+"', '" + id + "', '"+options+"' ); " ); */
	window.open( url, id, options ); 
}

function pmbradvisorCallMe()
{
	var _url = "/common/feedback/pmbrcallme_webform.jhtml";
	var _height = 640;
	var _width  = 520;

	// -----------------------------------
	var _opts = 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+_width+',height='+_height+',left = NaN,top = ';
	pmbradvisorPopUp( _url, _opts );
}

function pmbradvisorEmail()
{
	var _url = "/common/feedback/pmbradvisor_webform.jhtml";
	var _height = 700;
	var _width  = 655;

	// -----------------------------------
	var _opts = 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+_width+',height='+_height+',left = NaN,top = ';
	pmbradvisorPopUp( _url, _opts );
}
