// JavaScript Document
var validate = false;
var rand_value = 0;
String.prototype.trim = function() {
	a = this.replace(/^\s+/, '');
	return a.replace(/\s+$/, '');
}

//Still Not Working
function ltrim(string){
// remove leading spaces
while(string.substr(0,1)=="+")
	string = string.substring(1,string.length) ;
return strign;
}

//Still Not Working
function rtrim(string){
//remove trailing spaces 
while(string.substr(string.length-1,1)==" ")
	string = string.substring(0,string.length-2) ;
return string;
}

function change_Img(){
	var new_rand;
	do{
		new_rand = Math.floor(Math.random()*10);
	}while(new_rand == 0 || new_rand == rand_value);
	rand_value = new_rand;
	document.form1.secImage.src = "internal/images/botoff"+rand_value+".gif";
}

function init_Img(){
	do{
		rand_value = Math.floor(Math.random()*10);
	}while(rand_value == 0);
	document.form1.secImage.src = "internal/images/botoff"+rand_value+".gif";
}


