<!--
///////'''''''
var isNN = (navigator.appName.toLowerCase().indexOf('netscape') >= 0) ? true : false;
var isIE = (navigator.appName.toLowerCase ().indexOf ('microsoft') >= 0) ? true : false;
function pdfLinx (selfObj,state)
{
	selfObj.style.fontWeight = (state == "over") ? "bold" : "normal";
	if (selfObj.innerHTML.substring (1,5) == "FONT")
	{
		//var innerTxt = selfObj.innerText;
		//alert ("OuterHTML : \n\t" + selfObj.outerHTML + "\nLENGTH : \n\t" + selfObj.outerHTML.length);
		//alert ("InnerHTML : \n\t" + selfObj.innerHTML + "\nLENGTH : \n\t" + selfObj.innerHTML.length);
		if (state == "over")
		{
			//selfObj.insertAdjacentHTML (67,"<font color='#000000'>" + innerTxt + "</font>");
		}
		//else //selfObj.insertAdjacentHTML (0,"<font color='#3366CC'>" + innerTxt + "</font>");
	}
	selfObj.style.textDecoration = (state == "over") ? "none" : "underline";
}

//////////////////////////////////////////////////////////////
function btnSelClrAll_onclick(chkFlag)
{
	var optChk = 0;
	var opts = document.forms("frmNewsLtr").elements.length;
	//var chkState;
	var chkName;
	while (optChk < opts)
	{
		chkName = document.forms("frmNewsLtr").elements(optChk).name;
		if (chkName.substring (0,3) == "chk")
			//chkState = document.forms("frmNewsLtr").elements(chkName).status;
			document.forms("frmNewsLtr").elements(chkName).status = chkFlag;
		optChk ++;
	}
}

function validateInput() {
	var vArgs = validateInput.arguments;
	var sCtrls;
	var sInputTypes;
	var sInvalid = "";
	for (var iCnt=0;iCnt < vArgs.length;iCnt ++) {
		sCtrls = vArgs [iCnt].substring (0,vArgs [iCnt].indexOf (','));
		sInputTypes = vArgs [iCnt].substring (vArgs [iCnt].indexOf (',')+1);
		//alert (vArgs [iCnt] + " Control : " + strCtrls [iCnt] + " | Type : " + strInputTypes [iCnt] + "\n\t\t Value stored : " + strCtrls [iCnt].value);
		//return false;
		if (isNN) {
			sCtrls = document.getElementById (sCtrls);}
		else if (isIE) sCtrls = document.forms (0).elements (sCtrls);
		switch (sInputTypes) {
			case "text": sInvalid = validateText (sCtrls,sCtrls.value); break;
			case "email": sInvalid += validateEmail (sCtrls,sCtrls.value); break;
		}
	}
	if (sInvalid != "")	{
		alert (sInvalid); return false;
	} return true;
}

function validateEmail () {
	var sEM = validateEmail.arguments [1];
	var sErrMsg = "";
	if (sEM == "") {sErrMsg = "> E-mail ID required \n"; return sErrMsg;}
	else if (sEM.search ('@') == -1 || sEM.search ('@') == 0 || sEM.search ('[\.]') == -1 || sEM.search ('[\.]') == 0)
	{
		sErrMsg = "> Invalid E-mail id found..!\n\'" + sEM + "\'";
		return sErrMsg;
	}
	else
	{
		var moreAt = 0;
		var moreDot = 0;
		if ((sEM.lastIndexOf ('.') < sEM.indexOf ('@') + 2) || sEM.lastIndexOf ('.') == sEM.length-1) return "> Invalid E-mail id found..!\n\'" + sEM + "\'";
		sErrMsg = "> Found repeating characters in E-mail ID :\n";
		for (var inCh = 0;inCh <= sEM.length;inCh ++) {
			if (sEM.substr (inCh, 1) == '@') {
				moreAt ++;}
			//if (sEM.substr (inCh, 1) == '.') {
			//	moreDot ++;}
		}
		if (moreAt > 1) {// || moreDot > 1) 
			//sMsg += (moreDot > 1) ? ("\'.\' " + moreDot + " times\n") : "";
			sErrMsg += (moreAt > 1) ? ("\'@\' " + moreAt + " times \n") : "";
			return sErrMsg;
		}
	} return "";
}

function validateText () {
	var strText = validateText.arguments [1];
	var sErrMsg;
	if (strText.length > 0) return "";
	else {
		sErrMsg = "> Name required. \n";
		return sErrMsg;
	}
}
function appendChoice (theForm)
{
	var orgAction = theForm.action;
	var newAction;
	for (var choice = 0;choice < theForm.elements.length;choice ++)
	{
		//alert (theForm.elements (choice).type);
		if (theForm.elements (choice).type == "checkbox")
		{
			if (theForm.elements (choice).status == true)
			{
				newAction = '&ltr' + choice + '=' + theForm.elements (choice).value;
				orgAction = orgAction + newAction;
				//alert (choice + ' : ' + theForm.elements (choice).status + ' : ' + theForm.elements (choice).status);
			}
		}
	}
	theForm.action = orgAction;
	alert (orgAction);
}
//-->