//01 change color of the row on mouseOver
function change_me1(who){
	who.setAttribute('bgcolor', '#FFFFFF', 0);
}
function change_me2(who){
	who.setAttribute('bgcolor', '#99CCCC', 0);
}

//__________________________________________________
// DELETE CLIENT
function mconfirm(msg, ID, table){
	if (confirm(msg)){
		location.replace("submit.php?act=delete&ID="+ID+"&table="+table);
	}
}

//__________________________________________________

//03. Refresh page
function refresh_me(){
	window.location.reload();
}

//__________________________________________________


function selectMe(what, putwhere){
	putwhere.value=what.value;

}

function checkForm(){
	var str='';
	for (var i=0; i<(document.Form1.elements.length-1); i++){
		if (document.Form1.elements[i].value.length<2){
			str+=document.Form1.elements[i].name+" \r";
		}	
	}
	if  (str.length>1){	
		alert ("Please fill the following fields:\r\n"+str);
	} else if (! Form1.elements["reciprocal"].value.match(Form1.elements["link"].value)){
		alert ("Reciprocal link and your domain do not match!");	
	} else {
		document.Form1.action="link_check.php";
		document.Form1.submit();
	}

}
function check_length(){
	var maxlen=200;
	var fld=document.Form1.description.value;
	if (fld.length >= maxlen){
		document.Form1.description.value=fld.substr(0, maxlen-1);
	}
	document.Form1.flen.value=maxlen-fld.length;
}