bodysize();
function bodysize()
{
	var wheight=$(window).height();
	$('#Content').height(wheight-118);
	var mheight=$('#Content .control:first').height();
	$('#Content .control:first').css("padding-bottom",'58px');
	if (mheight<wheight-118)
	{
		if ($.browser.msie)
		{
			$('#Content .control:first').height(wheight-182);
		}
		else
		{
			$('#Content .control:first').height(wheight-182);
		}
	}
	else
	{
		var mwidth=$('#Content').width();
		$('#Content1').width(mwidth-17);
	}
}
$(window).resize(function(){
	bodysize();
}); 
$(document).resize(function(){
	bodysize();
}); 

$("img.checkthis").click(function(){
	id=$(this).attr("value");
	//alert($(this).attr("checked"));
	if ($(this).attr("src")=='images/check.gif')
	{
		writeCookie('pro_'+id,'1',24);			
		$(this).attr("src",'images/clear.gif');
	}
	else
	{
		writeCookie('pro_'+id,'0',0);
		$(this).attr("src",'images/check.gif');
	}
})


function purechecklogin(){
	uname=$("#loginform input[name='username']").attr('value');
	upass=$("#loginform input[name='password']").attr('value');
	
	$.get("user/checklogin.php",{user:user,username:uname,pass:upass,l:ver,random:Math.random()},function(data){
		if (data=='OK')
		{
			history.go(-1);
		}
		else
		{
			
			$('#loginform .content').html(data);
		}
	});
}