/* Jquery sample. 
 * Copyright (c) 2009  All rights reserved.
 * This software is provided by the author "AS IS" and may not in any form may be duplicated!
 * If you reproduce this ur gunna get a major ..
 */
///scripts provided by rdtmediainc...
var show;
function writed(dede){


var min = new Array();
min[0]=1;
min[1]=98;
min[2]=249;
min[3]=570;
min[4]=1999;
min[5]=9499;
min[6]=24999;
min[7]=58999;
min[8]=101999;
min[9]=559999;
min[10]=799999;
min[11]=1000539;
min[12]=2000499;
min[13]=4999999;




var max = new Array();
max[0] = 99;
max[1] = 250;
max[2] = 570;
max[3] = 2000;
max[4] = 9500;
max[5] = 25000;
max[6] = 59000;
max[7] = 102000;
max[8] = 560000;
max[9] = 800000;
max[10] = 1000540;
max[11] = 2000500;
max[12] = 5000000;



show = new Array(12);
var vart=' Embed <input type=text onClick=select() value=\'<a href="http://tweetfit.info"><img src="http://tweetfit.info/fitness.png" style="padding:2px;"></a>\' style="border:1px solid gold;" />';

show[0]='<img src="twig.png" /> <a href="http://twitter.com/home?status=My+Twitter+profile+is+a+TWIG+says  http://tweetfit.info/ #fit ">Tweet This</a>' +vart;
show[1]='<img src="superanorexic.png" /> <a href="http://twitter.com/home?status=My+Twitter+profile+is+SPR+ANRXC+says  http://tweetfit.info">Tweet This</a>' +vart;
show[2]='<img src="anorexic.png" /> <a href="http://twitter.com/home?status=My+Twitter+profile+is+ANRXC+says  http://tweetfit.info">Tweet This</a>' +vart;
show[3]='<img src="sick.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+SICK+says  http://tweetfit.info">Tweet This</a>' +vart;
show[4]='<img src="undrwt.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+UNDRWT+says  http://tweetfit.info">Tweet This</a>' +vart;
show[5]='<img src="idle.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+IDLE+says  http://tweetfit.info">Tweet This</a>' +vart;
///gend=female
show[6]='<img src="fit.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+FIT+says  http://tweetfit.info">Tweet This</a>' +vart;
show[7]='<img src="slft.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+OVR+FIT+says  http://tweetfit.info">Tweet This</a>' +vart;
show[8]='<img src="fat.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+FAT+says  http://tweetfit.info">Tweet This</a>' +vart;
show[9]='<img src="ovrwt.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+OVRWT+says  http://tweetfit.info">Tweet This</a>' +vart;
show[10]='<img src="obese.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+OBESE+says  http://tweetfit.info">Tweet This</a>' +vart;
show[11]='<img src="superobese.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+SUPR+OBESE+says  http://tweetfit.info">Tweet This</a>' +vart;
show[12]='<img src="extobese.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+FAT+says  http://mytweetfit.com">Tweet This</a>' +vart;
show[13]='<img src="fit.png" /><a href="http://twitter.com/home?status=My+Twitter+profile+is+FIT+says  http://tweetfit.info">Tweet This</a>' +vart;


var num = dede.value;
var disp = document.getElementById('disp');
var gend = document.getElementById('gend');
var user = document.getElementById('user');
var load_img='<img src="ajax-loader.gif" />';


if(user.value=="" || dede.value==""){
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML='<span style=\"color:red;font:10px Arial;\">*Fill everything out please :) ...</span>';", 2000);
}else{


///
if (min[0] < num && max[0] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[0];", 3000);
return false;
}
if (min[1] < num && max[1] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[1];", 3000);
return false;
}

if (min[2] < num && max[2] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[2];", 3000);
return false;
}

if (min[3] < num && max[3] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[3];", 3000);
return false;
}

if (min[4] < num && max[4] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[4];", 3000);
return false;
}
if (min[5] < num && max[5] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[5];", 3000);
return false;
}
if (gend.value=="Female" && min[6] < num && max[6] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[6];", 3000);
return false;
}
if (min[7] < num && max[7] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[7];", 3000);
return false;
}
if (min[8] < num && max[8] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[8];", 3000);
return false;
}
if (min[9] < num && max[9] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[9];", 3000);
return false;
}
if (min[10] < num && max[10] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[10];", 3000);
return false;
}
if (min[11] < num && max[11] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[11];", 3000);
return false;
}
if (min[12] < num && max[12] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[12];", 3000);
return false;
}
if (gend.value!=="Female" && min[6] < num && max[6] > num) {
disp.innerHTML=load_img;setTimeout("document.getElementById('disp').innerHTML=show[13];", 3000);
return false;
}

}}
function mont(objdede){
objdede.value=('');
if(document.getElementById('user').value!==""){
document.getElementById('lpic').style.visibility="visible";
setTimeout("document.getElementById('lpic').src='right.gif';",900);
}
}