function chckform()
{
if(document.getElementById("email").value=='' || document.getElementById("pass").value=='')
{ new Effect.Highlight('email', {startcolor:'#ff0000'});
  new Effect.Highlight('pass', {startcolor:'#ff0000'});
  return false;}
else{ return true;}
}
var bb_unique = 0;
var BB = {
	make_element: function(id,addto) {
		if ($(id) == undefined) {
			fs = document.createElement('div');
			fs.style.display="none";
			fs.id = id;
			if (addto==undefined) {
				document.body.appendChild(fs);
			}
			else {
				if (typeof(addto)=='object')
					addto.appendChild(fs);
				else
					$(addto).appendChild(fs);
			}
		}
		return id;
	},
	greyout: function() {
		var pagesize = getPageSize();
		$('greyout').style.height=pagesize[1]+'px';

		new Effect.Appear('greyout',{to:0.7,duration: 0.5});
	},
	fullscreen_init: function() {
		this.make_element('greyout');
		this.make_element('fullscreen');
	},
	fullscreen_add: function(text) {
		var el = 'fullscreen_'+bb_unique;
		bb_unique++;
		BB.make_element(el,'fullscreen');
		$(el).style.display = "block";
		$(el).className='popup';
		$(el).innerHTML = '<div id="prod_guarantee2">'+text+'<p align="center"><a onclick="BB.closefullscreen(\''+el+'\');">Close Window</a></p></div>';
	},
	fullscreen: function(text) {
		if ($('fullscreen') == undefined) BB.fullscreen_init();
		if (text != undefined) {
			this.fullscreen_add(text);
		}
		BB.greyout();
		new Effect.Appear('fullscreen',{duration: 0.5});
	},
	closefullscreen: function(id) {
		new Effect.Fade(id,{duration: 0.5});
		if ($('fullscreen').childNodes.length == 2 || $('fullscreen').childNodes.length == 3) {
			new Effect.Fade('fullscreen',{duration: 0.5});
			new Effect.Fade('greyout',{duration: 0.5});
			
		}
		setTimeout("$('fullscreen').removeChild($('"+id+"'));",700);
		
	}
};
