<!--
var popwin;
function hand(ob)
{
ob.style.cursor='pointer';
}
function open_win(url,t,l,w,h)
{
	if (popwin != null) popwin.close();
	popwin=window.open(url,"","top=" + t + ",left=" + l + ",width=" + w + ",height=" + h );
	
}

function open_win_slider(url,t,l,w,h)
{
	if (popwin != null) popwin.close();
	popwin=window.open(url,"","scrollbars=1, resizable=1, top=" + t + ",left=" + l + ",width=" + w + ",height=" + h );
	
}

function trim(a)
{	
	while (a.indexOf(" ")==0){
		a= a.substring(1,a.length);
	}
	while (a.charAt(a.length-1)==" "){
		a= a.substring(0,a.length-1);
	}
	return a;
}

function search_form()
{
	sf.q.value=trim(sf.q.value);
	//alert(sf.q.value);
	if (sf.q.value !='')
	{
		if (!sf.searchmode[0].checked) document.sf.action='http://www.google.com/custom';
		else document.sf.action='gmb_search_db.asp';
		
		document.sf.submit(); // submit  the form must have name='sf' as well as id='sf'
	}

}

function check_key(e)
{
	var code;
	if (!e) var e = window.event;
	if (e.keyCode) code = e.keyCode;
	else if (e.which) code = e.which;
	//alert('Character was ' + code);
	if (code==13) 
	{
		//	alert("");
		///search_form();
	}
}

function login_key(e)
{

	var code;
	if (!e) var e = window.event;
	if (e.keyCode) code = e.keyCode;
	else if (e.which) code = e.which;
	//alert('Character was ' + code);
	if (code==13) document.flogin.submit();
	
}
function video(num)
{
	document.write ( "<OBJECT id='VIDEO' width='320' height='312'	CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'	type='application/x-oleobject'>")
	document.write ( "<PARAM NAME='URL' VALUE='http://www.gmbabes.com/uploadimages/gen_vid_" + num + ".mpg'>")
	document.write ( "<PARAM NAME='AutoStart' VALUE='false'><PARAM NAME='Stretchtofit' VALUE='False'><PARAM name='uiMode' value='full'><PARAM name='Playcount' value='1'>")
	document.write ( "<EMBED type='application/x-mplayer2'	pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'		src='http://www.gmbabes.com/uploadimages/gen_vid_" + num + ".mpg'  AutoStart='false'		Name='MediaPlayer'	height='312' width='320'></EMBED>")
	document.write ( "</OBJECT>")
}

//-->