if (document.images) {
    var img1 = new Image();

    img1.src = "/images/bthome2.gif";
}

function changeImg(img,source) {
	if (document.images) {
			document.images[img].src = source;
	}
}	

function findTag(eItem) {
	var objATag = new Object();
	objATag = eItem.all.tags("A").item(0)
	return objATag;
}	

function hlight(ito) {
	ito.DefaultBgColor = ito.style.backgroundColor;
	ito.DefaultTxtColor = ito.style.color;

	ito.style.backgroundColor = '#CC99FF';
	ito.style.color = '#330066';
	ito.style.cursor = 'hand';
	findTag(ito).style.color="#330066"
}

function ulight(ito) {
	ito.style.backgroundColor = ito.DefaultBgColor;
	ito.style.color=ito.DefaultTxtColor;
	findTag(ito).style.color=ito.DefaultTxtColor
}

function checkform() {
var name = addsiteform.name.value;
	email = addsiteform.email.value;
	sitetitle = addsiteform.sitetitle.value;		
	url = addsiteform.url.value;
	description = addsiteform.description.value;

	if ((name=="") || (email=="") || (sitetitle=="") || (url=="") || (description=="")) {
		alert("Please fill-in all required fields.");
		return false;	
	}	 	
}

function checkform_postreview() {
var name = postreview.name.value;
	email = postreview.email.value;
	rating = postreview.rating.value;		
	review = postreview.review.value;

	if ((name=="") || (email=="") || (rating=="") || (review=="")) {
		alert("Please fill-in all the fields.");
		return false;	
	}	 	
}

function checkform_slupload() {
var url = upload.url.value;
	title = upload.title.value;
	

	if ((url=="") || (title=="")) {
		alert("Please fill-in all required fields.");
		return false;	
	}	 	
}