var osmsg=new Array();
osmsg[1] = "Invalid image id number.";
osmsg[2] = "Tag entered is invalid.";
osmsg[3] = "Image id doesn't exist.";
osmsg[4] = "Please login to use this function.";
osmsg[5] = "You have no access to this function.";
osmsg[6] = "Invalid album ID number.";
osmsg[7] = "Album Name should have atlease 3 or more characters";
osmsg[8] = "Image doesn\'t exist on this album.";
osmsg[9] = "";
osmsg[10] = "";
osmsg[11] = "";
osmsg[12] = "";
osmsg[13] = "";
osmsg[14] = "";
osmsg[15] = "";
osmsg[16] = "";
osmsg[17] = "";
osmsg[18] = "";
osmsg[19] = "";
osmsg[20] = "";
osmsg[21] = "";
osmsg[22] = "";
osmsg[23] = "";
osmsg[24] = "";
osmsg[25] = "";
osmsg[26] = "";
osmsg[27] = "";
osmsg[28] = "";
osmsg[29] = "";
osmsg[30] = "";

osmsg[101] = "Tag successfully added.";
osmsg[102] = "Tag already existed.";
osmsg[103] = "Successfully added to your album.";
osmsg[104] = "This image is already added to your album.";
osmsg[105] = "You aren\'t the owner of this album.";
osmsg[106] = 'You don\'t have any album. <a href="#createalbum" onclick="createalbum(); return false;">Create Now?</a>';
osmsg[107] = 'Successfully created a new album.';
osmsg[108] = 'Album doesn\'t exist or you are not the owner of this album.';
osmsg[109] = 'Album successfully deleted.';
osmsg[110] = 'Image successfully deleted in you album.';

var chkrep;

function os_msgstring(msg){
	var tmp;
	tmp = msg.split(" ")
	chkrep = tmp[1];
	return osmsg[tmp[1]];
}
