//Define Popup definitions


function popup_criteria(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=500,height=400,scrollbars=no,left=25, top=25');
	return false;
   }

function popup_terms(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=618,height=650,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }


function popup_interests(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=450,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }

function popup_reports(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=618,height=650,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }

function popup_stats(mylink, windowname)
   {

 	if (mylink=="") {
	return false;
	}

 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=618,height=550,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }


function popup_characters(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=530,height=470,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }


function popup_about(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=618,height=600,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }


function popup_inst(mylink, windowname)
   {
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	msgWindow=open(href, windowname, 'width=615,height=500,scrollbars=yes,left=25, top=25');
    	if (msgWindow.opener == null) msgWindow.opener = self;
   }


function popup_employment(mylink, windowname)
   {
 	
	//check_save('employment');

	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=480,scrollbars=no,resizable=no, left=25, top=25');
	return false;
   }


function popup_education(mylink, windowname)
   {
 	
	//check_save('education');

 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=480,scrollbars=no,resizable=no, left=25, top=25');
	return false;
   }

function popup_book(mylink, windowname)
   {
 	
	//check_save('book');

 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=600,scrollbars=yes,resizable=no, left=25, top=25');
	return false;
   }

function popup_article(mylink, windowname)
   {
 	
	//check_save('article');

 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=600,scrollbars=yes,resizable=no, left=25, top=25');
	return false;
   }

function popup_report(mylink, windowname)
   {
        
	//check_save('report');

 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=600,scrollbars=yes,resizable=no, left=25, top=25');
	return false;
   }

function popup_reminder(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=400,height=400,scrollbars=no,resizable=no, left=25, top=25');
	return false;
   }

function popup_preview(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=618,height=600,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }

function popup_makecontact(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=550,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }

function popup_emailtemplate(mylink, windowname)
   {
 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=530,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }

function popup_default(mylink, windowname)
   {

 	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=600,scrollbars=yes,resizable=yes, left=25, top=25');
	return false;
   }


//function check_save(type) 
   //{

	//if (document.frmAddProfile.checksave.value=="1") {
	//var prompt_select=confirm("WARNING - Remember to save your profile before you change or add a " + type + ". Click Cancel not to remind me again");

	//if (!prompt_select) {
		//document.frmAddProfile.checksave.value="";
        //}
	//}
   //}



