function clearSearchBox(obj) {
	if (obj.value == 'Powered by Google...') {
		obj.value = '';
		obj.style.color = 'black';
	}
}

function defaultSearchBox(obj) {
	if (obj.value == '') {
		obj.value = "Powered by Google...";
		obj.style.color = 'silver';
	}
}

var colors = new Array(5);
    colors[0]="bumblebee";
    colors[1]="skyy";
    colors[2]="indigo";
    colors[3]="limes";
    colors[4]="mango";
    
function getRandom() {
    return Math.floor(Math.random()*5);
}

function rdmColor() {
    return colors[getRandom()];
}

//function validateComment() {
//    //Get the data from all the fields
//    var name = $('input[name=name]');
//    var email = $('input[name=email]');
//    var comment = $('textarea[name=comment]');
//    var security_code = $('input[name=security_code]');
//
//    //Simple validation to make sure user entered something
//    //If error found, add hightlight class to the text field
//    var ok = true;
//    if (name.val()=='') {
//            name.addClass('highlight');
//            ok = false;
//    } else name.removeClass('highlight');
//
//    if (email.val()=='') {
//            email.addClass('highlight');
//            ok = false;
//    } else email.removeClass('highlight');
//
//    if (comment.val()=='') {
//            comment.addClass('highlight');
//            ok = false;
//    } else comment.removeClass('highlight');
//
//    if (security_code.val()=='') {
//            security_code.addClass('highlight');
//            ok = false;
//    } else security_code.removeClass('highlight');
//
//    return ok;
//}
//
//function processComment() {
//    //Get the data from all the fields
//    var name = $('input[name=name]');
//    var email = $('input[name=email]');
//    var website = $('input[name=website]');
//    var comment = $('textarea[name=comment]');
//    var security_code = $('input[name=security_code]');
//
//    //Simple validation to make sure user entered something
//    //If error found, add hightlight class to the text field
//    var ok = true;
//    if (name.val()=='') {
//            name.addClass('highlight');
//            ok = false;
//    } else name.removeClass('highlight');
//
//    if (email.val()=='') {
//            email.addClass('highlight');
//            ok = false;
//    } else email.removeClass('highlight');
//
//    if (comment.val()=='') {
//            comment.addClass('highlight');
//            ok = false;
//    } else comment.removeClass('highlight');
//
//    if (security_code.val()=='') {
//            security_code.addClass('highlight');
//            ok = false;
//    } else security_code.removeClass('highlight');
//
//    if(!ok) return false;
//
//    //organize the data properly
//    var data = 'name=' + name.val() + '&email=' + email.val() + '&website='
//    + website.val() + '&comment='  + encodeURIComponent(comment.val()) +
//    '&security_code=' + security_code.val();
//
//    //disabled all the text fields
//    //$('.text').attr('disabled','true');
//
//    //show the loading sign
//    //$('.loading').show();
//
//    //start the ajax
//    $.ajax({
//            //this is the php file that processes the data and send mail
//            url: "submitComment.php",
//
//            //POST method is used
//            type: "GET",
//
//            //pass the data
//            data: data,
//
//            //Do not cache the page
//            cache: false,
//
//            //success
//            success: function (html) {
//                    //if process.php returned 1/true (send mail success)
//                    if (html==1) {
//                            //hide the form
//                            $('.comment-form').fadeOut('slow');
//
//                            //show the success message
//                            $('.success').fadeIn('slow');
//
//                    //if submitComment.php returned 0/false (send mail failed)
//                    } else $('.fail').fadeIn('slow');
//            }
//    });
//
//    alert('hi');
//
//    //cancel the submit button default behaviours
//    return false;
//}