﻿var tabs = [
				[
					'App_Themes/White/Images/hindu.png',
					'App_Themes/White/Images/hindu_selected.png',
					'<p><br><b>Hindu</b> Marriage Act came into force on 18th May 1955. It governs Hindu marriages and has brought important changes to the law on this existing subject. This act applies to any person who is Hindu by religion in any of its forms, and also to Buddhists, Jains, and Sikhs. <br><br>Bigamy is not permitted as per the law. Neither of the party should have a spouse living and polygamy permitted by ancient Hindu law, is now prohibited. Bigamy is now a punishable offence under the Indian penal code.<br><br>The amendment to this effect was issued in 1978, and as per this the groom should have completed the age of 21 years and the bride 18 years at the time of marriage. The question of guardianship in marriage does not arise since the parties to be married are to be majors. <br><br>And if the groom or bride is minor shall be imprisonment for 15 days or fine up to Rs 1,000/- or both. For the purpose of facilitating proof of Hindu marriage provision for registration may be made by the State Government, under the Hindu Marriage act of 1955.</p>'],
				[
					'App_Themes/White/Images/christian.png',
					'App_Themes/White/Images/christian_selected.png',
					'<p><br><b>Christian</b> Marriages are solemnized under the Christian marriage Act 15 of 1872.<br><br>A Christian is one who professes the religion of Jesus Christ and Indian Christians include native converts to Christianity and their Christian offspring. <br><br>Under this Act a reverend of religion is licensed to solemnize marriages, those who are appointed under this Act or those who have received Episcopal ordination and the clergymen of the Church of Scotland can conduct the ceremony. <br><br>The Act applies when one or both the parties to the marriage is or are Christians. <br><br>The Christian marriage Act is only concerned with the forms in which the marriage is to be solemnized and where the marriage is solemnized by a Marriage Registrar appointed under the Act.</p>'],
				[
					'App_Themes/White/Images/muslim.png',
					'App_Themes/White/Images/muslim_selected.png',
					'<p><br><b>Muslim</b> Marriage (Nikah), it is a civil agreement and no religious ceremony is needed to bring about this relationship. <br><br>What is necessary is the agreement of promises between two or more parties for purposes of marriage and not governed by the Indian Majority Act, 1875 but by Muslim law itself. <br><br>It is assumed that on completion of 15 years of age, a person attains puberty, though they attain puberty, if a person is not of sound mind and has not attained puberty his/her marriage cannot be performed without their consent.</p>'],
				[
					'App_Themes/White/Images/parsi.png',
					'App_Themes/White/Images/parsi_selected.png',
					'<p><br><b>Parsi</b> Marriage Act of 1939 governs the Parsis of India in regard to the solemnization of the marriage and the termination thereof. For a valid Parsi marriage the bride and groom should have completed 21 years of age. <br><br>If the marriage is under the age of 21 years, the approval of the guardian supposed to be present. <br><br>The applicant should not be within the prohibited relationships specified in the Act. And the marriage solemnized according to a ceremony called "Ashirvad" by the head of the temple (priest) in presence of two other witnesses.</p>']];
var width = 100;
function preloadImages() {
	for (var y = 0; y < 2; y++) {
		for (var x = 0; x < tabs.length; x++) {
			image = new Image();
			image.src = tabs[x][y];
		}
	}
}
function drawTabs() {
	document.write("<table cellspacing=0 cellpadding=0 border=0><tr>");
	for (var x = 0; x < tabs.length; x++) {
		document.write("<td width="+width+"><a href='javascript:switchTab("+x+")'><img name='tab"+x+"' border=0 src="+tabs[x][0]+"></a></td>");
	}
	document.write("</td><td></td></tr><tr><td id=currentTab colspan="+(tabs.length+1)+">");
	document.write(tabs[0][2]);
	document.write("</td></tr></table>");
	document.images["tab0"].src = tabs[0][1];
}
function switchTab(tab) {
	for (var x = 0; x < tabs.length; x++) {
		if (x != tab)
			document.images["tab"+x].src = tabs[x][0];
	}
	document.images["tab"+tab].src = tabs[tab][1];
	document.getElementById("currentTab").innerHTML = tabs[tab][2];
}
preloadImages();
