
function frameBase(urlBase)
{
	if(window.parent == window)
	{
		window.location=urlBase;
	}
}


<!--
var bn=navigator.appName;
var vn=navigator.appVersion;
var p1=null;
var p2=null;
var p3=null;
var p4=null;
var p5=null;

// Animated menu stuff
function off_img(loc,img) {};
function on_img(loc,img) {};

function gonow(p)
  {
  location=addr[p];
  };


menuimg = new Array(14);
if ((bn!="Microsoft Internet Explorer") || (vn.substring(0,3)!="2.0"))
{
menuimg[1]= new Image (95,35);
menuimg[1].src="images/buttons/CalGirl_01.gif";
menuimg[8]= new Image (95,35);
menuimg[8].src="images/buttons/CalGirl_01-over.gif";
menuimg[2]= new Image (112,35);
menuimg[2].src="images/buttons/CalBoy_01.gif";
menuimg[9]= new Image (112,35);
menuimg[9].src="images/buttons/CalBoy_01-over.gif";
menuimg[3]= new Image (127,35);
menuimg[3].src="images/buttons/CalFertility_01.gif";
menuimg[10]= new Image (127,35);
menuimg[10].src="images/buttons/CalFertility_01-over.gif";
menuimg[4]= new Image (128,35);
menuimg[4].src="images/buttons/CalPregnancy_01.gif";
menuimg[11]= new Image (128,35);
menuimg[11].src="images/buttons/CalPregnancy_01-over.gif";
menuimg[5]= new Image (112,35);
menuimg[5].src="images/buttons/CalFull_01.gif";
menuimg[12]= new Image (112,35);
menuimg[12].src="images/buttons/CalFull_01-over.gif";
}

function on_img(loc,img)
  {
  if ((bn!="Microsoft Internet Explorer") || (vn.substring(0,3)!="2.0"))
    loc.src=menuimg[img].src;
  }

// -->

<!-- Begin
closetime = 20;
current_year=2005;
UK6month = "22.00";
UK1year = "38.00";
US6month = "40.00";
US1year = "69.00";
euro6month = "33.00";
euro1year = "57.00";

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=200,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup() {
url = "warning.html";
width = 600;  // width of window in pixels
height = 130; // height of window in pixels
delay =1;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}

var win = null;

function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function defocus()
{
  document.babyForm.currency.focus();
}

function daysInFebruary (year)
{
    return (  ((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0) ) ) ? 29 : 28 );
}

function calculateCost()
{
	var span = ((document.babyForm.projectionSpan.selectedIndex==0) ? 6 : 1);
	var curr = document.babyForm.currency.selectedIndex;
	var newCost;
	
	if (curr==0) {
		if (span==6) newCost = US6month;
			else newCost = US1year;
	}
	else if (curr==1) {
			if (span==6) newCost = UK6month;
		else newCost = UK1year;
	}
	else {
		if (span==6) newCost = euro6month;
		else newCost = euro1year;
	}
	document.babyForm.cost.value = newCost;
}


function isDate (year, month, day)
{
    var intYear = parseInt(year);
    var intMonth = parseInt(month);
    var intDay = parseInt(day);

    if (intDay>daysInMonth(intMonth)) return false; 

    if ((intMonth == 2) && (intDay > daysInFebruary(intYear))) return false;

    return true;
}

function daysInMonth(month)
{
	if(month==2) return 29;
	else if (month==4||month==6||month==9||month==11) return 30;
	else return 31;
}

function isDOBValid(year, month, day)
{	
	var intYear = parseInt(year)+1949;
    var intMonth = parseInt(month);
    var intDay = parseInt(day);
	
	if (intYear==1949||intMonth==0||intDay==0)
	{
		alert("Please complete your date of birth.");
		return false;
	}
	
	if (!isDate(intYear, intMonth, intDay))
	{
		alert("Your date of birth " + intDay + "/" + intMonth + "/" + intYear + " is an invalid date.  Please enter a valid date.");
		return false;
	}
	else return true;
}

function isPeriodValid(year, month, day)
{
	var intYear = parseInt(year);
    var intMonth = parseInt(month);
    var intDay = parseInt(day);
	
	if (intYear=="0"||intMonth=="0"||intDay=="0")
	{
		alert("Please complete the date of the first day of your last period.");
		return false;
	}
	
	var today = new Date();
	
	intYear = current_year - intYear + 1;
	
	if (!isDate(intYear, intMonth, intDay))
	{
		alert("The date of last period " + intDay + "/" + intMonth + "/" + intYear + " is an invalid date.  Please enter a valid date.");
		return false;
	}
	else if (intYear>=today.getYear())
	{
		if (intMonth==today.getMonth()+1 && (intDay>today.getDate())||(intMonth>today.getMonth()+1))
		{
		if (confirm("Warning: The date of last period " + intDay + "/" + intMonth + "/" + intYear + " is set to a date in the future.  This date should be in the past.\n\nThis error can also be caused by your computer clock being set incorrectly.\n\nWould you like to ignore this error and proceed with this date?"))
			return true;
		else return false;
		}
	}
	else return true;
}

function validateForm(f)
{
	return (isDOBValid(f.birthYear.selectedIndex, f.birthMonth.selectedIndex, f.birthDay.selectedIndex) &&
		isPeriodValid(f.periodYear.selectedIndex, f.periodMonth.selectedIndex, f.periodDay.selectedIndex));
}
//  End -->

<!--

function openNewWindow1() {
popupWin = window.open('../info/infotext.html', 'open_window', 'resizable,dependent,width=600,height=400,left=0,top=0')
}


// -->