var req = null;

if(window.XMLHttpRequest)
	req = new XMLHttpRequest();
else if(window.ActiveXObject)
		req = new ActiveXObject("Microsoft.XMLHttp");

function getTime()
{
	var obj=document.getElementById("face1");
	if(req)
	{
		req.open("GET","http://www.indiainsouthafrica.com/Clock1.jsp?sid="+Math.random());
		req.onreadystatechange=function()
		{
			if(req.readyState == 4 && req.status == 200)
			{
				obj.innerHTML = req.responseText;
			}
		}
		req.send(null);
	}
	setTimeout("getTime();",1000);
}






function header()
{
	document.write("<tr> <!--header--><td width='100%'> <form method='post' action='HCISASearch' name='frm'><table width='100%' cellpadding='0' cellspacing='0'><tr>"+
	"<td width='40%'><ul class='menu'><li><a href='http://www.indiainsouthafrica.com/index.html' >Home</a><span>&nbsp;|</span></li><li><a href='http://www.indiainsouthafrica.com/faq/index.html' >FAQs</a><span>&nbsp;|</span></li><li>"+
	" <a href='http://www.indiainsouthafrica.com/links.html' >Links</a><span>&nbsp;|</span></li><li><a href='http://www.indiainsouthafrica.com/holidays.html' >Holidays</a><span>&nbsp;|</span></li>"+
	"<li><a href='http://www.indiainsouthafrica.com/downloads/index.html' >Downloads</a><span>&nbsp;|</span></li><li><a href='http://www.indiainsouthafrica.com/feedback.html' >Feedback</a></li></ul></td><td width='20%'><img src='http://www.indiainsouthafrica.com/images/logo_top.jpg' width='209px' height='34px' border='0' alt=''></td><td width='40%' class='search'>Search <input type='text' name='keyword'/>&nbsp;<input type='image' class='button_search' style='width: 23px; height: 21px;' src='http://www.indiainsouthafrica.com/images/go_btn.jpg' border='0'  /></a><a href='AdvancedSearch.html' class='advance_search'> Advance Search</a></td></tr><tr><td width='40%'><img src='http://www.indiainsouthafrica.com/images/banner_left.jpg' width='397px' height='150px' border='0' alt=''></td><td width='20%'><img src='http://www.indiainsouthafrica.com/images/logo_middle.jpg' width='209px' height='150px' border='0' alt=''></td><td width='40%'><img src='http://www.indiainsouthafrica.com/images/banner_right.jpg' width='397px' height='150px' border='0' alt=''></td></tr><tr><td width='40%'><div style='padding:3px 10px ;margin-top:5px;float:left'><a href='http://www.yas.nic.in/index.html' class='leftlinks' target='_blank'><img src='http://www.indiainsouthafrica.com/images/cmmnwlth_ad.jpg' width='164px' height='48px' border='0' alt=''></A></div><div style='padding:3px 5px ;margin-top:15px;float:left'><a href='http://www.indiainsouthafrica.com/ICCR-Scholarships.html' class='leftlinks'><font color='red' size='2'><strong>ICCR  Scholarships</strong></font> </a></div></td><td width='20%'><img src='http://www.indiainsouthafrica.com/images/logo_bottom.jpg' width='209px' height='54px' border='0' alt=''></td><td width='40%'><div style='float:left'><div style='padding:3px 5px ;margin-top:15px;float:left'><a href='http://www.indiainsouthafrica.com/Register_Indian.jsp' class='leftlinks'><font color='red' size='2'><strong>Online Registration For Indian</strong></font> </a></div><div style='padding:3px 5px ;margin-top:5px;float:left'><img src='http://www.indiainsouthafrica.com/images/clock.jpg' width='30px' height='31px' border='0' alt=''></div></div><div id='face1' class='time'><script language='JavaScript'>getTime();</script></div></td></tr></table></form></td></tr><!-- end of header -->");
}

function left_panel(path)
{
	if (path==null)
	{
	path="./"
	}
	document.write(" <!--left panel--><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"overview-india/index1.html'  class='headers'>Overview India</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/land-people/index1.html'>Land and People</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/infrastructure/political-structure.html'>Political Structure</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/infrastructure/economy-trade-industry.html'>Economy, Trade & Industry</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/infrastructure/agriculture-rural-development.html'>Agriculture</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/infrastructure/social-objectives.html'>Social Welfare</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/infrastructure/art-culture-sports.html'>Arts and Culture</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/infrastructure/science-technology.html'>Science and Technology</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/studying-india/index.html'>Education</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/media/index.html'>Media</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/maps/index.html'>Maps of India</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/resources/index.html'>Resources India</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overview-india/health/index.html'>Health</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"business-opportunity/index.html' class='headers'>Business Openings</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"india-in-south-africa/index.html' class='headers'>India in South Africa</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"india-in-south-africa/business-organizations.html'>Business Organizations</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"india-in-south-africa/indian-cultural-organizations.html'>Cultural organizations</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"india-in-south-africa/indian-community.html'>Indian community</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"south-africa-in-india/index.html' class='headers'>South Africa in India</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://www.sahc-india.com/'>South Africa High Commission, New Delhi </a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://www.imc.org.za/home/index.php' target='_blank'>IMC</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://ww2.flysaa.com/saa_home.html' target='_blank'>South African Airways</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"fact-file/index.html' class='headers'>Fact File</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"fact-file/india-south-africa-relations.html'>India SA Relations</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"fact-file/india-lesotho-relations.html'>India Lesotho Relations</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"FrontPressReleaseList.html'>Press Releases</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"FrontStatementList'>Key Documents</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"PhotoEventsList'>Photo Gallery</a></li></ul>");
}


function right_panel(path)
{
	if (path==null)
	{
	path="./"
	}
	document.write("<!--right panel --><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"about-us/index.html' class='headers'>About us</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='#'>HCI Pretoria</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"about-us/Consul-General-India-Johannesburg.html'>CGI Johannesburg</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"about-us/Consul-General-India-durban.html'>CGI Durban</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='#'>HOO Cape Town</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"about-us/contact-us.html'>Contact us</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"about-us/rti.html'>Right to Information Act</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a class='headers'>Our Services</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"visa/index.html'>Visa Services</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"passport-services/index.html'>Passport Services</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"overseas-indian-citizenship/index.html'>Overseas Citizenship Of India</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"india-in-south-africa/itec.html'>ITEC</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"web16/passportstatus.htm'>Passport / Visa Status</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"fees.html'>Fees</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"university.html' class='headers'>PIO/NRI University</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://www.indiainsouthafrica.com/downloads/pio-card/pioform.pdf'>Grant/Renewal PIO Card - Form</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a  class='headers'>Publications</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"biz-news/index.jsp'>Biz News</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://www.mea.gov.in/iphome.htm' target='_blank'>India Perspective</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"ministry.pdf' target='_blank'>India Dynamic Democracy</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://www.mea.gov.in/indiapublication/music01.dat' target='_blank'>India Quotient</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a class='headers'>Utilities</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"downloads/index.html'>Downloads</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"faq/index.html'>FAQ's</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='"+path+"links.html'>Important Links</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='http://www.india.gov.in/' target='_blank' class='headers'>The India Portals</a></li></ul><ul><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://home.nic.in/' target='_blank'>NIC</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://www.mea.gov.in/' target='_blank'>MEA</a></li><li><img src='"+path+"images/arrow_bullet.jpg' border='0'/>&nbsp;&nbsp;&nbsp;<a href='http://www.incredibleindia.org/' target='_blank'>Incredible India</a></li></ul><ul class='headers'><li><img src='"+path+"images/bullet2.jpg' border='0'/><a href='"+path+"speeches/index.html' class='headers''>Speeches</a></li></ul>");
}

function bodybanner()
{
	document.write('<table><tr><td><a href="http://www.indiainsouthafrica.com/know-india-programme.html"><img src="http://www.indiainsouthafrica.com/images/banner1.jpg" width="190"  border="0" /></a>&nbsp;<a href="http://www.pbdindia.org/" target="_blank"><img src="http://www.indiainsouthafrica.com/images/banner2.jpg" width="190"  border="0" /></a>&nbsp;<a href="http://www.oifc.in/" target="_blank"><img src="http://www.indiainsouthafrica.com/images/banner3.jpg" width="190"  border="0" /></a></td></tr><tr><td><a href="http://www.indiainsouthafrica.com/business-section/index.html"><img src="http://www.indiainsouthafrica.com/images/box1.jpg" width="190"  border="0" /></a>&nbsp;<a href="http://www.indiainsouthafrica.com/cultural-section/index.html"><img src="http://www.indiainsouthafrica.com/images/box2.jpg" width="190" border="0" /></a>&nbsp;<a href="http://www.indiainsouthafrica.com/archive/index.html"><img src="http://www.indiainsouthafrica.com/images/box3.jpg" width="190"  border="0" /></a></td></tr></table>');
}


function footer()
{
	document.write("<tr> <!-- footer --><td width='100%' height='60px' bgcolor='#343434' align='center' class='footer'>High Commission of India in South Africa<br />Site Designed, Developed and Maintained by <A HREF='http://www.infobase.co.in/' target='_blank' style='color:white'><u>Compare Infobase Ltd.</u></A></td></tr>");
}

function checkEmail(email)
{
	var length = email.length;
	var index1 = email.indexOf("@");
	var index2 = email.lastIndexOf(".");

	if(index1<=0)
		return false;
	else if(index2<=0)
			return false;
		 else if(index1>=length)
		 		return false;
		 	  else if(index2>=length)
		 	  		 return false;
		 	  	   else
		 	  	     return true;
}
