BROWS_DOM = document.getElementById ? true : false;
BROWS_IE  = document.all ? true : false;
BROWS_NS4 = document.layers ? true : false;
BROWS_TYPE = new String(getBrowserType());
function getBrowserType()
{
	var myUserAgent;
	var myMajor;
	myUserAgent   = navigator.userAgent.toLowerCase();
	myMajor       = parseInt(navigator.appVersion);
	
	if((myUserAgent.indexOf('mozilla')    != -1) &&
	(myUserAgent.indexOf('spoofer')    == -1) &&
	(myUserAgent.indexOf('compatible') === -1) &&
	(myUserAgent.indexOf('opera')      == -1) &&
	(myUserAgent.indexOf('webtv')      == -1)
	)
	{
		if (myMajor > 4)
		{
			return "nav6";
		}
		if (myMajor > 3)
		{
			return "nav4";
		}
		return "nav";
	}
	if (myUserAgent.indexOf("msie") != -1)
	{
		if (myMajor > 4)
		{
			return "ie5";
		}
		if (myMajor > 3)
		{
		return "ie4";
		}
		return "ie";
	}
	return "other";
}

function checkNumber(objField, strMin, strMax)
{
	var strValue = objField.value;
	strMin ? strMin : strMin = "0";
	strMax ? strMax : strMax = "0";
	if(isNaN(strValue))
	{
		alert("Please enter a number without punctuation.");
		objField.focus();
		objField.select();
		return false;
	}
	else
	{
		if(strValue=="")
		{
			objField.value="0";
			return true;
		}
		// insert code to strip leading zero's
		var intValue = Math.round(strValue);
		objField.value = intValue;
		if(intValue < parseInt(strMin))
		{
			alert("Please enter a number greater than or equal to " + strMin);
			objField.focus();
			objField.select();
			return false;
		}
		else if(intValue > parseInt(strMax))
		{
			alert("Please enter a number less than or equal to " + strMax);
			objField.focus();
			objField.select();
			return false;
		}
		else
		{
			return true;
		}
	}
}

function checkYears(obj_1, obj_2, strMax)
{
	obj_1 = (BROWS_DOM) ? document.getElementById(obj_1) : (BROWS_IE) ? document.all(obj_1) : document.layers[obj_1];
	obj_2 = (BROWS_DOM) ? document.getElementById(obj_2) : (BROWS_IE) ? document.all(obj_2) : document.layers[obj_2];
	
	if(parseFloat(obj_1.value) > 0 && parseFloat(obj_2.value) == 0 && parseFloat(obj_1.value) <= parseFloat(strMax))
	{
		alert("The minimum is 1 year, please correct this error.");
		obj_2.focus();
		obj_2.select();
		return false;
	}
}

function checkThisNumber(objField, strMin, strMax)
{
	var strValue = objField.value;
	strMin ? strMin : strMin = "0";
	strMax ? strMax : strMax = "0";
	if(isNaN(strValue))
	{
		objField.focus();
		objField.select();
		return false;
	}
	else
	{
		return true;
	}
}

//function displayHintBox(show,str_Ques,str_Left,str_Top) {
function displayHintBox(obj_img) {
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	// Get the position and id of the rollover image
	var pos_left = getImageXfromLeft(obj_img);
	var pos_top = getImageYfromTop(obj_img);
	var img_id = obj_img.id;
	var str_Text = "";
	
	switch(img_id) {
		// *****************************************************************************************************
		// Options for Financial Wiz Quiz
		case "finwiz_1":
			str_Text = str_Text + "See the articles under the topic 'Tax' in the Library if you want to learn more."; break;
		case "finwiz_2":
			str_Text = str_Text + "See the definition of Yield in the Glossary if you want to learn more."; break;
		case "finwiz_3":
			str_Text = str_Text + "See the articles under the topic 'Investing' in the Library if you want to learn more.";
			break;
		case "finwiz_4":
			str_Text = str_Text + "Most credit card providers will charge you interest even on your repaid amount if you do not pay the full amount in the interest free period.";
			break;
		case "finwiz_5":
			str_Text = str_Text + "See the articles under the topic 'Investing' in the Library if you want to learn more.";
			break;
		case "finwiz_6":
			str_Text = str_Text + "You need to think about assets and liabilities.";
			break;
		case "finwiz_7":
			str_Text = str_Text + "If you're not sure, try eliminating the lists that contain assets.";
			break;
		case "finwiz_8":
			str_Text = str_Text + "See the definition of Salary sacrifice in the Glossary if you want to learn more.";
			break;
		case "finwiz_9":
			str_Text = str_Text + "To work out the cost in today's dollars you need to exclude the price increase due purely to price inflation.";
			break;
		case "finwiz_10":
			str_Text = str_Text + "See the definition of 'Eligible Termination Payment (ETP)' in the Glossary if you want to learn more.";
			break;
		// *****************************************************************************************************
		// Options for Risk Profiling Tool (text is the same for all hints)
		case "risk_1":
		case "risk_2":
		case "risk_3":
		case "risk_4":
		case "risk_5":
		case "risk_6":
		case "risk_7":
		case "risk_8":
		case "risk_9":
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Aggressive portfolio</span><br />A portfolio which is designed to provide above-average returns by taking above-average risks. Typically an aggressive portfolio will have a relatively high exposure to equity investments.</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Balanced fund</span><br />A fund that seeks both growth and income, with stability of principal, through a portfolio that includes both stocks and bonds.</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Conservative</span><br />A cautious approach to investing that takes only prudent risks to seek a reasonable return.</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Inflation</span><br />A rise in the prices of goods and services, often equated with loss of purchasing power.</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Long-term investment strategy</span><br />A strategy that looks past the day-to day fluctuations of the share and bond markets and responds to fundamental changes in the financial markets or the economy.</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Preservation</span><br />Is a government requirement that certain member benefits be maintained within the superannuation environment until permanent retirement from the workforce after reaching preservation age. The limited occasions in which preserved benefits can be released include death, disablement and certain other circumstances approved by APRA (Australian Prudential Regulation Authority).</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Preservation age</span><br />Preservation age is the age at which the member can access preserved benefits, provided the member has permanently retired from the workforce. Your preservation age depends upon your date of birth.</p>";
			str_Text = str_Text + "<p><table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" align=\"center\" class=\"drawGreyBorder\" width=\"80%\">";
			str_Text = str_Text + "<tr bgcolor=\"#F4F4F4\"><td class=\"greenHeaderSmall\">If you were born:</td><td class=\"greenHeaderSmall\">Your preservation age:</td></tr>";
			str_Text = str_Text + "<tr bgcolor=\"#E6E6E6\"><td>After 30 June 1964</td><td align=\"center\">60</td></tr>";
			str_Text = str_Text + "<tr bgcolor=\"#F4F4F4\"><td>1 July 1963 - 30 June 1964</td><td align=\"center\">59</td></tr>";
			str_Text = str_Text + "<tr bgcolor=\"#E6E6E6\"><td>1 July 1962 - 30 June 1963</td><td align=\"center\">58</td></tr>";
			str_Text = str_Text + "<tr bgcolor=\"#F4F4F4\"><td>1 July 1961 - 30 June 1962</td><td align=\"center\">57</td></tr>";
			str_Text = str_Text + "<tr bgcolor=\"#E6E6E6\"><td>1 July 1960 - 30 June 1961</td><td align=\"center\">56</td></tr>";
			str_Text = str_Text + "<tr bgcolor=\"#F4F4F4\"><td>Before 1 July 1960</td><td align=\"center\">55</td></tr>";
			str_Text = str_Text + "</table></p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Real rate of return</span><br />The return on an investment after it is adjusted for the effects of inflation.</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Risk</span><br />In its simplest sense, risk is the variability of returns. Investments with greater inherent risk must promise higher expected yields if investors are to be attracted to them. Risk can take many forms.</p>";
			str_Text = str_Text + "<p><span class=\"greenHeaderSmall\">Volatility</span><br />Changes in the price of a security, the variability (fluctuation) of returns, both positive and negative, usually expressed in percentage per annum terms. Rapid, wide price swings indicate a high degree of volatility.</p>";
			break;
		// *****************************************************************************************************
		// Options for Insurance Needs
		case "InsuranceType_1":
			str_Text = str_Text + "<p class=\"greenHeader\">Life insurance - also known as death or term life cover</p>";
			str_Text = str_Text + "<p>Life insurance pays an agreed lump sum benefit on the death of the life insured. It can be used to:</p>";
			str_Text = str_Text + "<ul>";
			str_Text = str_Text + "<li>Repay debts such as home loans, credit cards, personal loans, etc</li>";
			str_Text = str_Text + "<li>Cover one off expenses such as medical or funeral expenses</li>";
			str_Text = str_Text + "<li>Provide an ongoing income stream to replace a loss of income which may impact a surviving family member.</li>";
			str_Text = str_Text + "</ul>";
			break;
		case "InsuranceType_2":
			str_Text = str_Text + "<p class=\"greenHeader\">Total and permanent disablement insurance - also known as TPD</p>";
			str_Text = str_Text + "<p>Total and Permanent Disability (TPD) insurance pays an agreed lump sum benefit on the total and permanent disability of the individual insured and can be used to guard against:</p>";
			str_Text = str_Text + "<ul>";
			str_Text = str_Text + "<li>Loss or reduction of future earnings which may affect your ability to meet living expenses, debts and retirement goals</li>";
			str_Text = str_Text + "<li>Additional costs associated with medical care, rehabilitation and modifications to home and vehicles</li>";
			str_Text = str_Text + "<li>Loss of income of your partner who may be required to provide home care.</li>";
			str_Text = str_Text + "</ul>";
			str_Text = str_Text + "<p>For an insurance payment to be made, the individual insured must meet the strict definitions in their policy regarding the level of incapacity. As the definition of TPD varies between insurers it is important to ensure that the terms and conditions of the policy are read and understood so that you obtain the insurance most appropriate to your situation.</p>";
			break;
		case "InsuranceType_3":
			str_Text = str_Text + "<p class=\"greenHeader\">Income protection insurance - also known as salary continuance</p>";
			str_Text = str_Text + "<p>A person's ability to earn an income is probably their most valuable asset. In the event of disability or illness, a household's expenses must still be met. Sick leave, annual leave or long service leave may provide a period whereby an income can still be received, however once this income ceases, other sources of income must be called upon. These may include social security, investment income (if available) or a spouse's income. Alternatively, an individual may obtain an income protection policy which can provide a continuation of income, without being reliant on other individuals or sources.</p>";
			str_Text = str_Text + "<p>Income protection can provide up to 75% of an individual's salary should the insured become 'disabled' and be unable to work. Income protection insurance can be used to assist you and your family to cover:</p>";
			str_Text = str_Text + "<ul>";
			str_Text = str_Text + "<li>Loss of income</li>";
			str_Text = str_Text + "<li>Additional costs associated with medical care and rehabilitation.</li>";
			str_Text = str_Text + "</ul>";
			str_Text = str_Text + "<p>For a claim on an income protection insurance policy to be successful, you will generally be required to satisfy a waiting period. In addition the benefit will only continue to be paid for a certain period. The waiting period is the time between when you make a claim and when the income protection benefit begins to be paid to you. The benefit period relates to how long the insurance company will pay the benefit for and will range between two years and until age 65. If a policy is held within a superannuation plan it will generally only be payable for a maximum of two years or until the insured reaches age 65 (whichever occurs sooner).</p>";
			str_Text = str_Text + "<p>The cost of income protection is tax deductible and the income received (should you make a claim) is assessable.</p>";
			break;
		case "InsuranceType_4":
			str_Text = str_Text + "<p class=\"greenHeader\">Trauma insurance - also known as critical illness cover</p>";
			str_Text = str_Text + "<p>Trauma insurance pays an agreed lump sum benefit if you are diagnosed with a serious medical illness as defined by your policy. It can be used to guard against:</p>";
			str_Text = str_Text + "<ul>";
			str_Text = str_Text + "<li>Loss or reduction of income</li>";
			str_Text = str_Text + "<li>Additional costs associated with medical expenses and specialist care</li>";
			str_Text = str_Text + "<li>Loss of income of a partner who may be required to provide home care.</li>";
			str_Text = str_Text + "</ul>";
			str_Text = str_Text + "<p>Trauma insurance is designed to provide a financial cushion in the event of a major illness, as the impact on a household can be enormous. There are approximately 30 to 40 serious medical conditions that may be covered under a trauma policy - such as cancer, stroke, and heart attack. People recovering from a serious illness are likely to face increased expenses from medical and rehabilitation costs. They may also face capital expenses such as the need to seek offshore medical treatment, employment of a home nurse, or modifications to the home or motor vehicle. Many illnesses also require a long period of recovery. Without trauma cover, a sufferer's financial position could be severely impacted.</p>";
			break;
		case "Insurance_A":
			str_Text = str_Text + "<p>These are assets that you and your family own, as well as life and total and permanent disability insurance policies that you already have in place.</p>";
			break;
		case "Insurance_Aa":
			str_Text = str_Text + "<p>These are assets that you and / or your family are willing to sell in the event of your death or total and permanent disablement.  For example, you may have a share portfolio or an investment property that you would be <strong>willing to sell</strong> in order to assist in the repayment of debts and also to provide an ongoing income stream.</p>";
			break;
		case "Insurance_Ab":
			str_Text = str_Text + "<p>This is the amount you are insured for under any life or total and permanent disability policy that you currently own. Insurance that is held within a superannuation arrangement is to be included here.</p>";
			break;
		case "Insurance_B":
			str_Text = str_Text + "<p>This is the income that you and / or your family expect to <strong>continue to receive</strong> after your death or total and permanent disablement. For example: your spouse may continue to work; you may start to receive income from an income policy; or you may own an investment property that provides rental income. <strong>If you have included an income producing asset as an asset that can be sold (see 'Your existing assets'), you should not include its income here.</strong></p>";
			break;
		case "Insurance_Ba":
			str_Text = str_Text + "<p>This is the estimated after tax amount you expect to receive from each source of income.</p>";
			break;
		case "Insurance_Bb":
			str_Text = str_Text + "<p>This is the number of years you expect this income to continue for.</p>";
			break;
		case "Insurance_Bc":
			str_Text = str_Text + "<p>This is the after tax income that you expect to receive from an <strong>income protection insurance</strong> policy that you may already have in place. You should include income protection insurance that is held within superannuation and note that the benefit payment period is likely to only be 2 years. If you do not have income protection insurance you should not complete this section.</p>";
			break;
		case "Insurance_C":
			str_Text = str_Text + "<p>This is the total lump sum required to cover all debts and other commitments that you require to be paid out in the event of your death and or total and permanent disability, for example a home loan, car loan, personal loan or one off expenses such as funeral expenses or education expenses.</p>";
			break;
		case "Insurance_Ca":
			str_Text = str_Text + "<p>These are your current borrowings (for home loan, car loan, overdraft and other loans).</p>";
			break;
		case "Insurance_Cb":
			str_Text = str_Text + "<p>This includes other lump sum obligations such as education expenses, funeral costs and emergency funds.</p>";
			break;
		case "Insurance_D":
			str_Text = str_Text + "<p>This is the yearly income you and your family require to cover your living expenses.</p>";
			break;
		case "Insurance_Da":
			str_Text = str_Text + "<p>This is the amount you require to cover your living expenses each year.</p>";
			break;
		case "Insurance_Db":
			str_Text = str_Text + "<p>This is the number of years you would like this income to continue for.</p>";
			break;
		case "Insurance_E":
			str_Text = str_Text + "<p>The inflation rate is the rate that you expect your income needs and earnings to increase by each year. For the purposed of this calculator, mortgage payments will not be inflated and will be assumed to stay at the current level. You should note though that in practice, your mortgage payments are likely to vary from year to year depending on the interest rate charged by your mortgage lender.</p>";
			break;
		case "Insurance_F":
			str_Text = str_Text + "<p>The interest rate is the investment earnings rate you expect to earn on the portion of the total and permanent disablement insurance benefit until it is required to meet your needs.</p>";
			break;
		default:
			str_Text = str_Text + "Id not found";
			break;
	}
	
	obj_HintBox = (BROWS_DOM) ? document.getElementById('hintBox') : (BROWS_IE) ? document.all('hintBox') : document.layers['hintBox'];
	obj_HintBox_Ques = (BROWS_DOM) ? document.getElementById('hintBox_Ques') : (BROWS_IE) ? document.all('hintBox_Ques') : document.layers['hintBox_Ques'];
	obj_HintBox_Text = (BROWS_DOM) ? document.getElementById('hintBox_Text') : (BROWS_IE) ? document.all('hintBox_Text') : document.layers['hintBox_Text'];
	
	obj_Ques_Image = (BROWS_DOM) ? document.getElementById('image_Ques_1') : (BROWS_IE) ? document.all('image_Ques_1') : document.layers['image_Ques_1'];
	
	// Strip the question number from the image object ID tag
	if(img_id)
	{
		var num_Pos = img_id.lastIndexOf("_");
		var img_Number = img_id.substr(num_Pos+1, img_id.length);
	}
	
	if(BROWS_DOM||BROWS_IE) {
		// Change the pop-up banner text for the Risk Profiler tool
		if(img_id.indexOf("risk_")>=0 || img_id.indexOf("Insurance")>=0)
		{
			obj_HintBox_Ques.innerHTML = "Additional information";
		}
		else
		{
			obj_HintBox_Ques.innerHTML = "Hint: Question " + img_Number;
		}
		obj_HintBox_Text.innerHTML = str_Text;
		(pos_left - (parseFloat(obj_HintBox.style.width)-20)) < 10 ? obj_HintBox.style.left = 10 : obj_HintBox.style.left = pos_left - (parseFloat(obj_HintBox.style.width)-20);
		obj_HintBox.style.top = pos_top + 25;
		if(obj_HintBox.style.visibility == ""){obj_HintBox.style.visibility = "hidden";}
		obj_HintBox.style.visibility = obj_HintBox.style.visibility == "hidden" ? "visible" : "hidden";
	} else if (BROWS_NS4) {
		// Change the pop-up banner text for the Risk Profiler tool
		if(img_id.indexOf("risk_")>=0 || img_id.indexOf("Insurance")>=0)
		{
			obj_HintBox_Ques.innerHTML = "Additional information";
		}
		else
		{
			obj_HintBox_Ques.innerHTML = "Hint: Question " + img_Number;
		}
		obj_HintBox_Text.innerText = str_Text;
		(pos_left - (parseFloat(obj_HintBox.width)-20)) < 10 ? obj_HintBox.left = 10 : obj_HintBox.left = pos_left - (parseFloat(obj_HintBox.width)-20);
		obj_HintBox.top = pos_Top + 25;
		obj_HintBox.visibility = obj_HintBox.visibility == "hide" ? "inherit" : "hide";
	}
	return false;
}

function displayExistAssetBox(obj_img) {
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	// Get the position and id of the rollover image
	var pos_left = getImageXfromLeft(obj_img);
	var pos_top = getImageYfromTop(obj_img);
	var img_id = obj_img.id;
	var str_Text = "";
	
	obj_ExistAssetBox = (BROWS_DOM) ? document.getElementById('ExistAssetBox') : (BROWS_IE) ? document.all('ExistAssetBox') : document.layers['ExistAssetBox'];
	
	if(BROWS_DOM||BROWS_IE) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_ExistAssetBox.style.width)-20)) < 10 ? obj_ExistAssetBox.style.left = 10 : obj_ExistAssetBox.style.left = pos_left - (parseFloat(obj_ExistAssetBox.style.width)-20);
		obj_ExistAssetBox.style.top = pos_top + 25;
		if(obj_ExistAssetBox.style.visibility == ""){obj_ExistAssetBox.style.visibility = "hidden";}
		obj_ExistAssetBox.style.visibility = obj_ExistAssetBox.style.visibility == "hidden" ? "visible" : "hidden";
	} else if (BROWS_NS4) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_ExistAssetBox.width)-20)) < 10 ? obj_ExistAssetBox.left = 10 : obj_ExistAssetBox.left = pos_left - (parseFloat(obj_ExistAssetBox.width)-20);
		obj_ExistAssetBox.top = pos_Top + 25;
		obj_ExistAssetBox.visibility = obj_ExistAssetBox.visibility == "hide" ? "inherit" : "hide";
	}
	return false;
}

function displayExpIncBox(obj_img) {
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	// Get the position and id of the rollover image
	var pos_left = getImageXfromLeft(obj_img);
	var pos_top = getImageYfromTop(obj_img);
	var img_id = obj_img.id;
	var str_Text = "";
	
	obj_ExpIncBox = (BROWS_DOM) ? document.getElementById('ExpIncBox') : (BROWS_IE) ? document.all('ExpIncBox') : document.layers['ExpIncBox'];
	
	if(BROWS_DOM||BROWS_IE) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_ExpIncBox.style.width)-20)) < 10 ? obj_ExpIncBox.style.left = 10 : obj_ExpIncBox.style.left = pos_left - (parseFloat(obj_ExpIncBox.style.width)-20);
		obj_ExpIncBox.style.top = pos_top + 25;
		if(obj_ExpIncBox.style.visibility == ""){obj_ExpIncBox.style.visibility = "hidden";}
		obj_ExpIncBox.style.visibility = obj_ExpIncBox.style.visibility == "hidden" ? "visible" : "hidden";
	} else if (BROWS_NS4) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_ExpIncBox.width)-20)) < 10 ? obj_ExpIncBox.left = 10 : obj_ExpIncBox.left = pos_left - (parseFloat(obj_ExpIncBox.width)-20);
		obj_ExpIncBox.top = pos_Top + 25;
		obj_ExpIncBox.visibility = obj_ExpIncBox.visibility == "hide" ? "inherit" : "hide";
	}
	return false;
}

function displayFinCommitBox(obj_img) {
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	// Get the position and id of the rollover image
	var pos_left = getImageXfromLeft(obj_img);
	var pos_top = getImageYfromTop(obj_img);
	var img_id = obj_img.id;
	var str_Text = "";
	
	obj_FinCommitBox = (BROWS_DOM) ? document.getElementById('FinCommitBox') : (BROWS_IE) ? document.all('FinCommitBox') : document.layers['FinCommitBox'];
	
	if(BROWS_DOM||BROWS_IE) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_FinCommitBox.style.width)-20)) < 10 ? obj_FinCommitBox.style.left = 10 : obj_FinCommitBox.style.left = pos_left - (parseFloat(obj_FinCommitBox.style.width)-20);
		obj_FinCommitBox.style.top = pos_top + 25;
		if(obj_FinCommitBox.style.visibility == ""){obj_FinCommitBox.style.visibility = "hidden";}
		obj_FinCommitBox.style.visibility = obj_FinCommitBox.style.visibility == "hidden" ? "visible" : "hidden";
	} else if (BROWS_NS4) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_FinCommitBox.width)-20)) < 10 ? obj_FinCommitBox.left = 10 : obj_FinCommitBox.left = pos_left - (parseFloat(obj_FinCommitBox.width)-20);
		obj_FinCommitBox.top = pos_Top + 25;
		obj_FinCommitBox.visibility = obj_FinCommitBox.visibility == "hide" ? "inherit" : "hide";
	}
	return false;
}

function displayIncReqBox(obj_img) {
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	// Get the position and id of the rollover image
	var pos_left = getImageXfromLeft(obj_img);
	var pos_top = getImageYfromTop(obj_img);
	var img_id = obj_img.id;
	var str_Text = "";
	
	obj_IncReqBox = (BROWS_DOM) ? document.getElementById('IncReqBox') : (BROWS_IE) ? document.all('IncReqBox') : document.layers['IncReqBox'];
	
	if(BROWS_DOM||BROWS_IE) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_IncReqBox.style.width)-20)) < 10 ? obj_IncReqBox.style.left = 10 : obj_IncReqBox.style.left = pos_left - (parseFloat(obj_IncReqBox.style.width)-20);
		obj_IncReqBox.style.top = pos_top + 25;
		if(obj_IncReqBox.style.visibility == ""){obj_IncReqBox.style.visibility = "hidden";}
		obj_IncReqBox.style.visibility = obj_IncReqBox.style.visibility == "hidden" ? "visible" : "hidden";
	} else if (BROWS_NS4) {
		// Change the pop-up banner text for the Risk Profiler tool
		(pos_left - (parseFloat(obj_IncReqBox.width)-20)) < 10 ? obj_IncReqBox.left = 10 : obj_IncReqBox.left = pos_left - (parseFloat(obj_IncReqBox.width)-20);
		obj_IncReqBox.top = pos_Top + 25;
		obj_IncReqBox.visibility = obj_IncReqBox.visibility == "hide" ? "inherit" : "hide";
	}
	return false;
}

function hideDiv(str_ObjId,strForceState)
{
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	obj_HintBox = (BROWS_DOM) ? document.getElementById(str_ObjId) : (BROWS_IE) ? document.all(str_ObjId) : document.layers[str_ObjId];
	
	//alert(obj_HintBox);
	switch(strForceState)
	{
		case "show":
			if(BROWS_DOM||BROWS_IE) {
				if(obj_HintBox.style.visibility == ""){obj_HintBox.style.visibility = "hidden";}
				obj_HintBox.style.visibility = "visible";
			} else if (BROWS_NS4) {
				obj_HintBox.visibility = "inherit";
			}
			break;
		case "hide":
			if(BROWS_DOM||BROWS_IE) {
				if(obj_HintBox.style.visibility == ""){obj_HintBox.style.visibility = "hidden";}
				obj_HintBox.style.visibility = "hidden";
			} else if (BROWS_NS4) {
				obj_HintBox.visibility = "hide";
			}
			break;
		default:
			if(BROWS_DOM||BROWS_IE) {
				if(obj_HintBox.style.visibility == ""){obj_HintBox.style.visibility = "hidden";}
				obj_HintBox.style.visibility = obj_HintBox.style.visibility == "hidden" ? "visible" : "hidden";
			} else if (BROWS_NS4) {
				obj_HintBox.visibility = obj_HintBox.visibility == "hide" ? "inherit" : "hide";
			}
			break;
	}
	return false;
}

function getRealLeft(imgElem) {
	xPos = eval(imgElem).offsetLeft;
	tempEl = eval(imgElem).offsetParent;
  	while (tempEl != null) {
  		xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
	return xPos;
}

function getRealTop(imgElem) {
	yPos = eval(imgElem).offsetTop;
	tempEl = eval(imgElem).offsetParent;
	while (tempEl != null) {
  		yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
	return yPos;
}

function getImageXfromLeft(imgID) {
  if (BROWS_NS4) return eval(imgID).x
  else return getRealLeft(imgID);
}

function getImageYfromTop(imgID) {
  if (BROWS_NS4) return eval(imgID).y;
  else return getRealTop(imgID);

}

function getWindowWidth() {
  if (BROWS_NS4) {return window.innerWidth}
  else {return document.body.clientWidth}
}

function getWindowHeight() {
  if (BROWS_NS4) {return window.innerHeight}
  else {return document.body.clientHeight}
}

function getPageScrollLeft() {
  if (BROWS_NS4) {return window.pageXOffset}
  else {return document.body.scrollLeft}
}

function getPageScrollTop() {
  if (BROWS_NS4) {return window.pageYOffset}
  else {return document.body.scrollTop}
}

function getElementHeight(id) {
  if (BROWS_NS4) return eval(id).clip.height
  else return eval(id).clientHeight;
}

function checkForm(obj_Form)
{
	if(BROWS_DOM||BROWS_IE||BROWS_NS4)
	{
		if(obj_Form.hid_section.value=="2")
		{
			// Checking Question 1
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q1.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q1[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 1");return false;}
			// Checking Question 2
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q2.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q2[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 2");return false;}
			// Checking Question 3
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q3.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q3[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 3");return false;}
			// Checking Question 4
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q4.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q4[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 4");return false;}
			// Checking Question 5
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q5.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q5[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 5");return false;}
			// Checking Question 6
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q6.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q6[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 6");return false;}
			// Checking Question 7
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q7.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q7[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 7");return false;}
			// Checking Question 8
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q8.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q8[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 8");return false;}
			// Checking Question 9
			var i=0;
			var answered = false;
			var x = obj_Form.rad_q9.length;
			while ((!answered) && (i < x))
			{
				if (obj_Form.rad_q9[i].checked)
				{
					answered = true;
				}
				i++;
			}
			if (!answered){alert("Please answer question 9");return false;}
		}
		else
		{
			return true;
		}
	}
	else
	{
		return true;
	}
}

function CoContOn()
{
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	obj_CoContBox = (BROWS_DOM) ? document.getElementById('cocontBox') : (BROWS_IE) ? document.all('cocontBox') : document.layers['cocontBox'];
	obj_CoContBoxText = (BROWS_DOM) ? document.getElementById('cocontBoxText') : (BROWS_IE) ? document.all('cocontBoxText') : document.layers['cocontBoxText'];
	obj_CoContBoxInput = (BROWS_DOM) ? document.getElementById('cocontBoxInput') : (BROWS_IE) ? document.all('cocontBoxInput') : document.layers['cocontBoxInput'];
	
	
	//alert(obj_CoContBox);
	if(BROWS_DOM||BROWS_IE) {
		obj_CoContBox.style.backgroundColor = "#FFFFFF";
		obj_CoContBoxText.style.color = "#333333";
		obj_CoContBoxInput.readOnly = false;
		obj_CoContBoxInput.style.backgroundColor = "#FFFFFF";
		obj_CoContBoxInput.style.color = "#333333";
		obj_CoContBoxInput.style.border = "1px solid #7F9DB9";
	} else if (BROWS_NS4) {
		obj_CoContBox.backgroundColor = "#FFFFFF";
		obj_CoContBoxText.color = "#333333";
		obj_CoContBoxInput.readOnly = false;
		obj_CoContBoxInput.backgroundColor = "#FFFFFF";
		obj_CoContBoxInput.color = "#333333";
		obj_CoContBoxInput.border = "1px solid #7F9DB9";
	}
	return false;
}

function CoContOff()
{
	if(!(BROWS_DOM||BROWS_IE||BROWS_NS4)) return false;
	
	obj_CoContBox = (BROWS_DOM) ? document.getElementById('cocontBox') : (BROWS_IE) ? document.all('cocontBox') : document.layers['cocontBox'];
	obj_CoContBoxText = (BROWS_DOM) ? document.getElementById('cocontBoxText') : (BROWS_IE) ? document.all('cocontBoxText') : document.layers['cocontBoxText'];
	obj_CoContBoxInput = (BROWS_DOM) ? document.getElementById('cocontBoxInput') : (BROWS_IE) ? document.all('cocontBoxInput') : document.layers['cocontBoxInput'];
	
	//alert(obj_CoContBox);
	if(BROWS_DOM||BROWS_IE) {
		obj_CoContBox.style.backgroundColor = "#F8F8F8";
		obj_CoContBoxText.style.color = "#BBBBBB";
		obj_CoContBoxInput.value = "0";
		obj_CoContBoxInput.readOnly = true;
		obj_CoContBoxInput.style.backgroundColor = "#F8F8F8";
		obj_CoContBoxInput.style.color = "#BBBBBB";
		obj_CoContBoxInput.style.border = "1px solid #E2E2E2";
	} else if (BROWS_NS4) {
		obj_CoContBox.backgroundColor = "#F8F8F8";
		obj_CoContBoxText.color = "#BBBBBB";
		obj_CoContBoxInput.value = "0";
		obj_CoContBoxInput.readOnly = true;
		obj_CoContBoxInput.backgroundColor = "#F8F8F8";
		obj_CoContBoxInput.color = "#BBBBBB";
		obj_CoContBoxInput.border = "1px solid #E2E2E2";
	}
	return false;
}

