

   			var body=document.getElementsByTagName("body")[0];

			var x=screen.width;
			var y=screen.height;
			var tbleft=document.createElement("table");
			var tbodyleft=document.createElement("tbody");
			var cell4left= new Array(5);
			var row4left= new Array(5);





				// creating rows for the table

				for(var j=0;j<5;j++)
				{
					row4left[j]=document.createElement("tr");

					//creating td for table

					cell4left[j]=document.createElement("td");
				}





			var Imghome = document.createElement("img");

			if((screen.width==800) && (screen.height==600))
			{

				cell4left[0].setAttribute("width","100");

			}

			else
			{
				cell4left[0].setAttribute("width","180");
			}


			cell4left[0].setAttribute("height","100");
			cell4left[0].setAttribute("valign","top");



   //***************************************************************************************

            var im='';
            var m='';
            var str=window.location.hash.indexOf('#');
         	var end=window.location.hash.length;
         	var s='';
			var k='';
            var slash1=window.location.hash.lastIndexOf('/');
            if(slash1>0)
            {
            	var t=window.location.hash.length;
            		var dot1=window.location.hash.lastIndexOf(".");
               		for(var j=str+1;j<=t;j++)
               		{
                   		s+=window.location.hash.charAt(j);
                   		if(j>=slash1+1&&j< dot1)
                		{
                			k+=window.location.hash.charAt(j);
                		}
               		}
               		m=s;
               		im="image/"+k+".jpg";
               	}
            	else
            	{
            		for(var i=str+1;i<=end;i++)
            		{
               			var c=window.location.hash.charAt(i);
               			s=s+c;
            		}
            		k=s;
            		im="image/"+k+".jpg";
					m="htmls/"+s+".html";
            	}

         	cell4left[0].appendChild(Imghome);
			Imghome.setAttribute("id","leftimage");
            Imghome.setAttribute("src",im);


			if((screen.width==800) && (screen.height==600))
			{
				Imghome.setAttribute("width","150");

			}

			else
			{
				Imghome.setAttribute("width","180");
			}

			Imghome.setAttribute("height","200");




			// table for user password window

			var tbuser=document.createElement("table");

			if((screen.width==1024)&&(screen.height==768))
			{
				tbuser.setAttribute("width","170");
			}
			var tbodyuser=document.createElement("tbody");
			var usercell= new Array(5);
			var userrow= new Array(5);


			//creating cell & row for user password table

			for(var j=0;j<5;j++)
				{
					userrow[j]=document.createElement("tr");

					//creating td for user table

					usercell[j]=document.createElement("td");
				}


			usercell[0].appendChild(document.createTextNode("User Name"));
			usercell[0].setAttribute("align","left");

			//defining textfield for user name input

			var unfield=document.createElement("input");
			unfield.setAttribute("type","text");
			unfield.setAttribute("name","uname");

			usercell[1].appendChild(unfield);


				//creating password label

			usercell[2].appendChild(document.createTextNode("Password"));
			usercell[2].setAttribute("align","left");



			//creating password field

			var passfield=document.createElement("input");
			passfield.setAttribute("type","password");
			passfield.setAttribute("name","upass");

			usercell[3].appendChild(passfield);




			// adding cell and rows to userrow (user login table's row)

			for(var i=0;i<4;i++)
			{
				userrow[i].appendChild(usercell[i]);
				tbodyuser.appendChild(userrow[i]);
			}


			//creating subtable of user table for fogot password and login button


			var logtable=document.createElement("table");

			if((screen.width==1024)&&(screen.height==768))
			{
				logtable.setAttribute("width","170");
			}



			var logbody=document.createElement("tbody");
			var logcell=new Array(2);
			var logrow=document.createElement("tr");

			//initialising td for logbuton table

			for(var i=0;i<2;i++)
			{

				logcell[i]=document.createElement("td");
				logrow.appendChild(logcell[i]);

			}



		/*	var passlink=document.createElement("a");
			passlink.setAttribute("href","for_pass.htm");
			passlink.appendChild(document.createTextNode("Forget Password ?"));
			var lfont=document.createElement("font");
			lfont.setAttribute("size","2");
			lfont.appendChild(passlink);


			logcell[0].appendChild(lfont);
			logcell[0].setAttribute("align","left");
			
			*/

			var lbutton=document.createElement("input");
			lbutton.setAttribute("type","button");
			lbutton.setAttribute("name","act");
			lbutton.setAttribute("value","Login");
			lbutton.setAttribute("id","loginbutton");

			logcell[1].appendChild(lbutton);



			if((screen.width==800)&&(screen.height==600))
			{
				logcell[1].setAttribute("align","center");
			}

			else
			{
				logcell[1].setAttribute("align","right");
			}

			logbody.appendChild(logrow);
			logtable.appendChild(logbody);


			usercell[4].appendChild(logtable);
			userrow[4].appendChild(usercell[4]);
			tbodyuser.appendChild(userrow[4]);
			tbuser.appendChild(tbodyuser);


			tbuser.setAttribute("background","image/bg4table.jpg");


			cell4left[1].appendChild(tbuser);


			if((screen.width==800) && (screen.height==600))
				{
					cell4left[1].setAttribute("width","100");

				}

				else
				{
					cell4left[1].setAttribute("width","180");
				}



			// table for search frame...........................


			var stable=document.createElement("table");
			var stabbody=document.createElement("tbody");
			var scell=new Array(2);
			var srow=new Array(2);


			// creating and initialising table rows and columns


			for(var j=0;j<2;j++)
				{
					srow[j]=document.createElement("tr");

					//creating td for user table

					scell[j]=document.createElement("td");
				}

			var searchfield=document.createElement("input");
			searchfield.setAttribute("type","text");
			searchfield.setAttribute("name","stext");

			scell[0].appendChild(searchfield);

			//creating button for search option...........


			var searchbutt=document.createElement("input");
			searchbutt.setAttribute("type","button");
			searchbutt.setAttribute("name","act");
			searchbutt.setAttribute("value","Search");

			scell[1].appendChild(searchbutt);
			scell[1].setAttribute("align","right");
			if((screen.width==1024)&&(screen.height==768))
			{
				scell[1].setAttribute("width","170");
			}

			for(var i=0;i<2;i++)
			{
				srow[i].appendChild(scell[i]);
				stabbody.appendChild(srow[i]);
			}

			stable.appendChild(stabbody);
			stable.setAttribute("background","image/bg4table.jpg");

			cell4left[2].appendChild(stable);
			//adding cell to the row


//related links.......................................


				linktable=document.createElement("table");
				ltbody=document.createElement("tbody");
				ltrow1=document.createElement("tr");
				ltcell1=document.createElement("td");

				var bold=document.createElement("b");
				bold.appendChild(document.createTextNode("Related Links"));
				ltcell1.appendChild(bold);
				ltcell1.setAttribute("bgColor","#87CEFA");

				if((screen.width==800) && (screen.height==600))
				{
					ltcell1.setAttribute("width","150");
				}

				else
				{
					ltcell1.setAttribute("width","180");
				}
				ltcell1.setAttribute("align","center");
				ltrow1.appendChild(ltcell1);
				ltbody.appendChild(ltrow1);


				ltrow2=document.createElement("tr");
				ltcell2=document.createElement("td");


				var linklist=document.createElement("dl");



				var link0=document.createElement("dt");
				var f2=document.createElement("font");
				f2.setAttribute("color","#FFFFFF");
				link0.appendChild(document.createTextNode("   ."));
				f2.appendChild(link0);


				var link1=document.createElement("dt");

				var lc1=document.createElement("a");
				//lc1.appendChild(document.createTextNode("NCDEX"));
				lc1.appendChild(document.createTextNode("  ."));
				link1.appendChild(lc1);
				//lc1.setAttribute("href","http://www.ncdex.com");
				var lfont1=document.createElement("font");
				lfont1.setAttribute("color","white");
				lfont1.appendChild(link1);



				var link2=document.createElement("dt");
				var lc2=document.createElement("a");
				//lc2.appendChild(document.createTextNode("MCX"));
				lc2.appendChild(document.createTextNode("  ."));
				//lc2.setAttribute("href","http://www.mcxindia.com");
				//link2.appendChild(lc2);
				var lfont2=document.createElement("font");
				lfont2.setAttribute("color","white");
				lfont2.appendChild(lc2);
				//lfont2.setAttribute("target","_self");



				var link3=document.createElement("dt");
				var lc3=document.createElement("a");
				lc3.appendChild(document.createTextNode("FAQ's"));
				lc3.setAttribute("id","l1");
				
				var lfont3=document.createElement("font");
				lfont3.setAttribute("size","2");


				link3.appendChild(lc3);
				lfont3.appendChild(link3);


				var link4=document.createElement("dt");
				var lc4=document.createElement("a");
				lc4.appendChild(document.createTextNode("FMC"));
				lc4.setAttribute("href","http://www.fmc.gov.in");
				var lfont4=document.createElement("font");
				lfont4.setAttribute("size","2");

				link4.appendChild(lc4);
				lfont4.appendChild(link4);

				linklist.appendChild(lfont1);
				linklist.appendChild(lfont4);
				linklist.appendChild(lfont3);
				linklist.appendChild(lfont2);



				ltcell2.appendChild(linklist);
				ltrow2.appendChild(ltcell2);
				ltcell2.setAttribute("background","image/bg4table1.jpg");
				ltcell2.setAttribute("align","center");
				ltbody.appendChild(ltrow2);
				linktable.appendChild(ltbody);

				if((screen.width==800) && (screen.height==600))
				{
					linktable.setAttribute("width","150");

				}

				else
				{
					linktable.setAttribute("width","180");

				}
				cell4left[3].appendChild(linktable);
				cell4left[3].setAttribute("width","100");
				cell4left[3].setAttribute("height","132");


			for(var i=0;i<4;i++)
			{
				row4left[i].appendChild(cell4left[i]);

			}


			// adding rows to table body

			for(var i=0;i<4;i++)
			{
				tbodyleft.appendChild(row4left[i]);
			}


			//adding table body to the table

			tbleft.appendChild(tbodyleft);


			//adding table to the script defined "body"

			body.appendChild(tbleft);

			tbleft.setAttribute("border","1");
			tbleft.setAttribute("align","left");
			tbleft.setAttribute("bordercolor","");






//..........................................table for content and right ticker ...................................



			var righttable=document.createElement("table");
			var rtbody=document.createElement("tbody");
			var rtcell=new Array(2);
			var rtrow=document.createElement("tr");

			for(var i=0;i<2;i++)
			{
				rtcell[i]=document.createElement("td");
			}




			var rightscroll=document.createElement("iframe");
			rtcell[1].appendChild(rightscroll);
			rightscroll.setAttribute("src","right.htm");
			rightscroll.setAttribute("width","100%");
			rightscroll.setAttribute("height","100%");
			rightscroll.setAttribute("scrolling","no");


			rtcell[1].setAttribute("align","right");
			rtcell[1].setAttribute("width","267");
			rtcell[1].setAttribute("height","546");
			if(browserName=="safari")
			{
				rtcell[1].setAttribute("height","525");	
			}
			else
			if(browserName=="firefox")
			{
				rtcell[1].setAttribute("height","530");	
			}
			




			var callhtm=document.createElement("iframe");
			rtcell[0].appendChild(callhtm);
			rtrow.appendChild(rtcell[0]);

			callhtm.setAttribute("id","datamain");
			callhtm.setAttribute("src",m);
			callhtm.setAttribute("width","100%");
			callhtm.setAttribute("height","99%");
			callhtm.setAttribute("scrolling","yes");
			callhtm.setAttribute("frameborder","1");



			rtcell[0].setAttribute("width","70%");
			rtcell[0].setAttribute("height","99%");
			rtrow.appendChild(rtcell[0]);
			rtrow.appendChild(rtcell[1]);


		//.............appending row to the table body...



			rtbody.appendChild(rtrow);

			righttable.appendChild(rtbody);
			body.appendChild(righttable);
			righttable.setAttribute("border","1");
			if((screen.width==800)&&(screen.height==600))
			{
				righttable.setAttribute("width","78%");
				righttable.setAttribute("height","561");
			}

			else 
				if (browserName=="msie")
				{
					righttable.setAttribute("width","81%");
					righttable.setAttribute("height","538");
				}
				 if(browserName=="opera")
				{
					righttable.setAttribute("height","535");
				}
				if(browserName=="firefox")
				{
					righttable.setAttribute("width","800");
					righttable.setAttribute("height","500");
				}
				if(browserName=="safari")
				{
					righttable.setAttribute("width","800");
					righttable.setAttribute("height","550");
				}
				if(browserName=="ns")
				{
					righttable.setAttribute("width","800");
					righttable.setAttribute("height","567");
				}
			righttable.setAttribute("align","right");
			document.write("<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"
			+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"+"<br>"
			+"<br>"+"<br>"+"<br>");







//			}			// #1E90FF  if closing .......(script's first if)





		document.getElementById("l1").style.cssText = "cursor:pointer;cursor:hand;color:blue;text-decoration:underline;";
		document.getElementById("l1").onclick=function(){call('FAQ')};
		document.getElementById("loginbutton").onclick=function(){buttonfun();};
		




		
		
		


