$(function(){
			$('.inputField').each(function(){
					if($(this).val()!=''){
						clearInputs($(this));
					}
				}).focus(function(){
						clearInputs(this);
					}).blur(function(){
							retInputs(this);
							if($(this).val()!=''){
									clearInputs('#Password');
								}
						});
		});
		
		function clearInputs(obj){
			$(obj).css("background-position","0 0");
		}
		
		function retInputs(obj){
			if($(obj).val()==''){
				$(obj).css("background-position","0 -25px");
			}
		}
		
function launchIG(ID)
{	    
    //default size for the new window - suitable for error messages.
    var IGWindowDefaultWidth = 500;
    var IGWindowDefaultHeight = 300;
    //default location for the new window - centered in the middle of the screen
    var leftLocation = (screen.width - IGWindowDefaultWidth)/2;  
    var topLocation = (screen.height - IGWindowDefaultHeight)/2;       
    //if there's already an open IG window, close it, and only then open a new one.   
    if (igwn != null)
    {       
        igwn.close();
        igwn = null;        
    }       
    
    //set the query string 
    cid = document.CashierForm.cid.value;
    sid = document.CashierForm.sid.value;
    nid = document.CashierForm.networkID.value;
    qs = "IGID="+ID+"&cid="+cid+"&sid="+sid+"&nid="+nid;
	
	//open the window
	igwn = window.open("http://www.gossipbingo.com/members/IGLaunchPage.php?"+qs,'igw',"height="+IGWindowDefaultHeight+",width="+IGWindowDefaultWidth+",left="+leftLocation+",top="+topLocation+",resizable=yes,location=no,scrollbars=no,status=yes,toolbar=no,directories=no,menubar=no","true");				
	//try to focus on the window
	try{igwn.focus();}
	catch(e){}		
}

function launchCashier(){
	goCashierForm();
	//return false;
}
