

	
	
	var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Music code copied to clipboard!"
setTimeout("window.status=''",1800)
}
}




vars = new Object()
vars.which="nothing"

function chooseit(val,opt1,opt2)
{
var tempval=document.getElementById(val)
if(tempval.status)
return opt1;
else
return opt2;
}

function formvarchange(which)
{
var tempval=document.getElementById('form_advanced')
tempval.style.display="none"
tempval="form_"+which
tempval=document.getElementById(tempval)
tempval.style.display="inline"
}



function absX (elm) {
var x = 0;
if (elm && typeof elm.offsetParent != "undefined") {
while (elm && typeof elm.offsetLeft == "number") {
x += elm.offsetLeft;
elm = elm.offsetParent;
}
}
return x;
}

function display(what,which)
{
var tempval=document.getElementById(what)
if(which==0)
tempval.style.display="none"
if(which==1)
tempval.style.display="inline"
if(which==2)
{
if(tempval.style.display=="none")
tempval.style.display="inline"
else
tempval.style.display="none"
}
}


function absY(elm) {
var y = 0;
if (elm && typeof elm.offsetParent != "undefined") {
while (elm && typeof elm.offsetTop == "number") {
y += elm.offsetTop;
elm = elm.offsetParent;
}
}
return y;
}

function showstylecolors(where,id)
{
var tableElm = document.getElementById(where);
var x = absX(tableElm);
var y = absY(tableElm);

var menuElm = document.getElementById("colorchart");
menuElm.style.left = 100 + x + "px";
menuElm.style.top = 0 + y + "px";
vars.which=id
vars.where=where


var tempval=document.getElementById("colorchart")
tempval.style.display="inline"
}



function showstylecolors2(x,y,id)
{
var tempval=document.getElementById("colorchart")
tempval.style.top=y+document.body.scrollTop
tempval.style.left=x+document.body.scrollLeft
tempval.style.display="inline"
vars.which=id
}

function colorchooser(color)
{


var tempval=document.getElementById(vars.which)
if(color=="Choose Color") {
tempval.value=color
tempval.style.backgroundColor = ''
} else {
tempval.value=color
tempval.style.backgroundColor = color
clrBar(color);
}



var tempval2=document.getElementById(vars.where)

if(color=="Choose Color") {
tempval2.value=color 
tempval2.style.backgroundColor = ''
} else {
tempval2.value=color
tempval2.style.backgroundColor = color


}

}


function clrBar(Color)

	{

	with(document.body.style)

		{
		switch(vars.which) {
		case('facecolor'): scrollbarFaceColor=Color;
		break;
		
		case('linecolor'): scrollbarShadowColor=Color;
		break;
		
		case('secondlinecolor'): scrollbarDarkShadowColor=Color;
		break;
		
		case('trackcolor'): scrollbarTrackColor=Color;
		break;
		
		case('arrowcolor'): scrollbarArrowColor=Color;
		break;
		
		case('highlight'): scrollbarHighlightColor=Color;
		break;
		
		case('color3d'): scrollbar3dLightColor=Color;
		break;
	}
	

		}

	}


function getvalue(what)
{
var tempval=document.getElementById(what)

return tempval.value;


}




function colorChooser() {
var total=1657;var X=Y=j=RG=B=0;
var aR=new Array(total);var aG=new Array(total);var aB=new Array(total);
for (var i=0;i<256;i++){
aR[i+510]=aR[i+765]=aG[i+1020]=aG[i+5*255]=aB[i]=aB[i+255]=0;
aR[510-i]=aR[i+1020]=aG[i]=aG[1020-i]=aB[i+510]=aB[1530-i]=i;
aR[i]=aR[1530-i]=aG[i+255]=aG[i+510]=aB[i+765]=aB[i+1020]=255;
if(i<255){aR[i/2+1530]=127;aG[i/2+1530]=127;aB[i/2+1530]=127;}
}
function p(){var jla=document.getElementById('choix');jla.innerHTML=artabus;jla.style.backgroundColor=artabus;document.forms['recherche'].rgb.value=artabus}
var hexbase=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");
var i=0;var jl=new Array();
for(x=0;x<16;x++)for(y=0;y<16;y++)jl[i++]=hexbase[x]+hexbase[y];
document.write('<'+'table border="0" cellspacing="0" cellpadding="0" onMouseover="t(event)" onClick="p()">');
var H=W=63;
for (Y=0;Y<=H;Y++){
	s='<'+'tr height=2>';j=Math.round(Y*(510/(H+1))-255)
	for (X=0;X<=W;X++){
		i=Math.round(X*(total/W))
		R=aR[i]-j;if(R<0)R=0;if(R>255||isNaN(R))R=255
		G=aG[i]-j;if(G<0)G=0;if(G>255||isNaN(G))G=255
		B=aB[i]-j;if(B<0)B=0;if(B>255||isNaN(B))B=255
		s=s+'<'+'td width=2 bgcolor=#'+jl[R]+jl[G]+jl[B]+'><'+'/td>'
	}
	document.write(s+'<'+'/tr>')
}
document.write('<'+'/table>');
var ns6=document.getElementById&&!document.all
var ie=document.all
var artabus=''
function t(e){
source=ie?event.srcElement:e.target
if(source.tagName=="TABLE")return
while(source.tagName!="TD" && source.tagName!="HTML")source=ns6?source.parentNode:source.parentElement
document.getElementById('temoin').style.backgroundColor=artabus=source.bgColor
colorchooser(artabus)
}


}







//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){

return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){

return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false;")



