function bbimg(o){
	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
	return false;
}
function GetCookie (name) {
	var CookieFound = false;
	var start = 0;
	var end = 0;
	var CookieString = document.cookie;
	var i = 0;

	while (i <= CookieString.length) {
		start = i ;
		end = start + name.length;
		if (CookieString.substring(start, end) == name){
			CookieFound = true;
			break; 
		}
		i++;
	}

	if (CookieFound){
		start = end + 1;
		end = CookieString.indexOf(";",start);
		if (end < start)
			end = CookieString.length;
		return unescape(CookieString.substring(start, end));
	}
	return "";
}

function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}

function showms(){
	window.open("/msread.php","sms","scrollbars=yes,width=320,height=200,left=240,top=160");
}
function showmsall(){
	window.open("/msread.php?do=all","sms","scrollbars=yes,width=320,height=200,left=240,top=160");
}
function writems(un){
	window.open("/mswrite.php?si="+un,"sms","scrollbars=yes,width=320,height=200,left=240,top=160");
}