function drawCalculator()
{
	document.getElementById("for_preview").innerHTML='<div class="light">'+
	'<h3><em style="font-size:14px;padding:7px;"> Romantic Name Calculator</em> </h3>'+
	'<div id="item-code">'+
	'<font class="medium_text">Please enter the name to be analyzed:</div><br/>'+
	'<form name="loveform" style="color:#752B7D;font-weight:bold;font-size:14px;">'+
    '<center><input type="text" size="20" class="input" name="name1" value="'+UserName+'"/>'+
  	'<br/>'+
   '<br/>'+
   '<input type="image" src="'+SERVERURL+'images/calculate.png" class="butlarge"  onclick="calc();return false;" name="calculate" value="Calculate!" /></center>'+
    '</form>'+
	'<center><div id="for_percent_div" align=center style="opacity:0.8;background-color:#E8E6E7;background-image:url('+SERVERURL+'images/heart1.jpg);background-repeat:no-repeat;height:140px;width:145px;">'+
	'<div id="for_percent"></div>'+
	'</div></div>';
	var ad2='<iframe width="300" scrolling="no" height="250" frameborder="0" style="border: 0px none ;" id="socialmedia_ad_vert" name="socialmedia_ad" src="http://ads.socialmedia.com/myspace/monetize.php?smms.js&pop=1&width=300&height=250&pubid=0763a67f4105dd80d0dd1ef4b96e51ef&bgcolor=ffffff&bordercolor=ffffff" border=none></iframe>';
	document.getElementById("for_preview").innerHTML+=ad2+'<input type="image" src="'+SERVERURL+'images/bulletin.png" onclick="sendBulletin();return false"/></center>';
	
}  
 
function calc() {

first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
//second = document.loveform.name2.value.toUpperCase();
//secondlength = document.loveform.name2.value.length;
 var letters = {"A":70,"B":14,"C":9,"D":28,"E":145,"F":12,"G":3,"H":10,"I":200,"J":70,"K":114,"L":70,
"M":25,"N":55,"O":80,"P":2,"Q":12,"R":400,"S":113,"T":100,"U":11,"V":10,"W":10,"X":3,"Y":68,"Z":23," ":0};
var LoveCount=0;

for (Count=0; Count < firstlength; Count++) {
letter1=first.substring(Count,Count+1);
if(letters[letter1] )
	LoveCount+=letters[letter1];
}
if(LoveCount<60)
amount="not romantic";
if(LoveCount>=60 && LoveCount<300)
amount="not too romantic";
if(LoveCount>=300 && LoveCount<600)
amount="pretty  romantic!!!";
if(LoveCount>=600 && LoveCount<1000)
amount=" very romantic!!!!";
if(LoveCount>=1000 && LoveCount<1500)
amount="very very romantic!";
if(LoveCount>=1500)
amount="very very verrry romantic!!!!!";

document.getElementById("for_percent").innerHTML=amount;
return amount; 
}