	function generatepass(plength){
		if(plength){
			plength = parseInt(plength);
		}
		if(!plength || plength < 1){
			plength = 8;
		}
		var temp='';
		var keylist = "ABCDEGGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
		for (i=0;i<plength;i++)
			temp += keylist.charAt(Math.floor(Math.random()*keylist.length))
		return temp
	}
