﻿function Flames_Process(){var a=document.getElementById("Flames_Name1").value.toLowerCase(),c=document.getElementById("Flames_Name2").value.toLowerCase();if(""==a||""==c)document.getElementById("Flames_Output").value="Two Names Required";else if(a==c)document.getElementById("Flames_Output").value="Enter Different Names";else{for(var d="flames",b=0;b<a.length;b++)temp=a.charAt(b),0<=c.indexOf(temp)&&(a=a.replace(temp,""),c=c.replace(temp,""),b--);count=a.length+c.length;temp=b=0;if(0!=count)for(;5> b;)b++,temp=(temp+(count-1)%d.length)%d.length,d=d.replace(d.charAt(temp),"");tempstring="flames";temp=tempstring.indexOf(d);document.getElementById("Flames_Output").value="Friend,Love,Affection,Marriage,Enemy,Sister".split(",")[temp]}} function Flames_DrawForm(){document.write('<div style="text-align:center"><div style="margin:0px auto;width: 220px;">\n <div id="Flames_Outer" style="width: 210px; background:'+Flames_BGColor+";color:"+Flames_TextColor+'; text-align:center; padding:5px 0px;">\n <a id="Flames_Header" href="http://e-infotainment.com" style="text-decoration:none; display:block; width: 100%; background:'+Flames_TopbarBGColor+"; color:"+Flames_TopbarTextColor+';">FLAMES</a>\n <div id="Flames_Content" style="width: 100%;">\n <table id="Flames_Input" border="0" cellpadding="0" cellspacing="1" style="margin:5px;">\n <tr><td align="left">First Name&nbsp;</td><td><input type="text" id="Flames_Name1" style="width:100px;"/></td></tr>\n <tr><td align="left">Second Name&nbsp;</td><td><input type="text" id="Flames_Name2" style="width:100px;"/></td></tr>\n </table>\n <input id="Flames_Submit" type="button" value="Relation ?" onClick="Flames_Process()" style="margin:3px 0px;"/>\n <input id="Flames_Output" type="text" style="border:none;width:190px" />\n </div>\n </div>\n </div></div>')} Flames_DrawForm();
