function doPrivacyPolicy() {
	centeredWindowNamed("http://www.quotit.net/eproifp/privacy/privacystatement.asp?license_no=C3XV7Z", "PrivacyPolicy", 575, 375);
}

function doGenderChange(id1,id2) 
{
	var x1 = document.getElementById(id1);
	var x2 = document.getElementById(id2);

	if (x1.selectedIndex == 0)
	{
	    x2.selectedIndex = 1;
	}
	else
	{
	    x2.selectedIndex = 0;
	}
}

function doApplicantGenderChange()
{
	
	if (document.forms[0].sSex && document.forms[0].sSex.selectedIndex == 0) {
		document.forms[0].spSex.selectedIndex = 1;
	}
	else {
		document.forms[0].spSex.selectedIndex = 0;
	}
}

function DoAddChildren(id1,id2,id3,id4)
{
    showhidefield(id1,true,'quotitDefault');
    showhidefield(id2,true,'quotitDefault');
    showhidefield(id3,true,'quotitDefault');
    showhidefield(id4,true,'hiddenRow');
}

function centeredWindowNamed(url, windowName, popW, popH, featureList, returnWindowHandle) {

	if(!featureList)
	{
		featureList = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";
	}
	var w = 800, h = 600;
		
	if (document.all || document.layers) {
  		w = screen.availWidth;
  		h = screen.availHeight;
	}

	var leftPos = (w-popW)/2;
	var topPos = (h-popH)/2;
	
	var link = window.open(url, windowName, featureList + ",width=" + popW + ",height=" + popH + ",top=" + topPos + ",left=" + leftPos);
	try
	{
	link.focus();
	}
	catch(ex)
	{
	}
	if(returnWindowHandle)
	{
		return link;
	}
}

function centeredWindow(url, popW, popH, features, returnWindowHandle) {
	
	if(!features)
	{
		features = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";
	}	
	var w = 800, h = 600;
		
	if (document.all || document.layers) {
  		w = screen.availWidth;
  		h = screen.availHeight;
	}

	var leftPos = (w-popW)/2;
	var topPos = (h-popH)/2;
	features += ",width=" + popW + ",height=" + popH + ",top=" + topPos + ",left=" + leftPos;	
	var link = window.open(url, "link", features);
	try
	{
	link.focus();
	}
	catch(ex)
	{
	}
	
	if(returnWindowHandle)
	{
		return link;
	}
}

function centeredDiffWindow(url, popW, popH, windowName) {
	
	var features
	var returnWindowHandle
	if(!features)
	{
		features = "toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1";
	}	
	var w = 800, h = 600;
		
	if (document.all || document.layers) {
  		w = screen.availWidth;
  		h = screen.availHeight;
	}

	var leftPos = (w-popW)/2;
	var topPos = (h-popH)/2;
	features += ",width=" + popW + ",height=" + popH + ",top=" + topPos + ",left=" + leftPos;	
	
	
	var link = window.open(url, windowName, features);
	
	
	try
	{
	link.focus();
	}
	catch(ex)
	{
	}
	
	if(returnWindowHandle)
	{
		return link;
	}
}

function centeredWindowSettings(url, popW, popH, popScroll) {
	var w = 800, h = 600;
		
	if (document.all || document.layers) {
  		w = screen.availWidth;
  		h = screen.availHeight;
	}

	var leftPos = (w-popW)/2;
	var topPos = (h-popH)/2;

	var link = window.open(url, "link", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + popScroll + ",resizable=0,width=" + popW + ",height=" + popH + ",top=" + topPos + ",left=" + leftPos);
	try
	{
	link.focus();
	}
	catch(ex)
	{
	}
}