/* 2003 Copyright Genetrack Biolabs Inc. ALL RIGHTS RESERVED */
/* This .JS file contains tip functions for genetrackjapan.com/index.html */

function tipOf() { /* This function gets a random value and select which tip to display in the textarea. */
	var tipID = Math.floor(Math.random()*10); /* Random tip swapping. */
	var tip; /* For tip text. */
switch (tipID) {
		case 1:
			tip = 'DNA鉴定是现今最先进的亲子关系鉴定方式';
			break;
		case 2:
			tip = '国际规格认证确保您的鉴定品质';
			break;
		case 3:
			tip = '未出生的胎儿也可进行DNA鉴定';
			break;
		case 4:
			tip = '亲子鉴定结果清楚提供您肯定或否定的答案';
			break;
		case 5:
			tip = '依赖您完全了解的化验所';
			break;
		case 6:
			tip = '不要多花冤枉钱';
			break;
		case 7:
			tip = '多形态的DNA检体';
			break;
		case 8:
			tip = 'DNA鉴定是现今最先进的亲子关系鉴定方式';
			break;
		case 9:
			tip = '国际规格认证确保您的鉴定品质';
			break;
		default:
			tip = '依赖您完全了解的化验所';
			break;
		}


	document.frmTip.txaTip.value = tip;
	document.frmTip.hdnTip.value = tipID; /* Hidden value for bookmark in tip.html */
}

function tipDe() { /* This function pops up tip.html and scrolls down to the tip the users have clicked. */
	var bm = document.frmTip.hdnTip.value;
	url = 'tip.html#' + bm;
	window.open(url,'','width=450,height=220,scrollbars=1,top=50,left=50,resizable=0,menubar=0,toolbar=0,status=0,location=0');
}