<div id="wrapper_header">



<div class="logo_s"><a href="<?=_BASEURL_?>/" title="<?=_TITLE_?>"><img src="<?=_BASEURLMEDIA_?>/logo.png" alt="PrixMalin" /></a><div class="beta"><img src="http://www.money-auctions.com/div2/beta.gif" align="greenfair beta" /></div></div>

<div id="log_pane">

<? if($_SESSION['uid'] ==''){  ?>

<div class="corner_l"><div class="corner_c">



<form method="post" action="<?=_BASEURL_?>/login.php" name="frm11">

<div><input type="text" name="email" value="<?=_EML_ID11_?>" class="inputtext" onclick="_delete_login_fields(this, '<?=_EML_ID11_?>', this.value);"/></div>

<div><input type="password" name="password"  value="<?=_PWS_11111_?>" class="inputtext" onclick="_delete_login_fields(this, '<?=_PWS_11111_?>', this.value);" /></div>

<div><input type="submit" name="submit" value=" " class="submit" /></div>

</form>

<div class="reg">

<a href="<?=_BASEURL_?>/register/index.html">Register</a> | <a href="<?=_BASEURL_?>/forgot-your-password/index.html">Forgot Your Password</a></div></div></div>

<? }else{?>

<div class="corner_l"><div class="corner_c">

<div class="sfl tm15px lm30px">Welcome</div>

<div class="normaltextblackbold11 lm5px sfl"> <?=get_uname($_SESSION['uid'])?></div>





<?

 $uname=mysql_fetch_array(mysql_query("select id,uname,image,no_bids from user where id=".$_SESSION['uid']));

?>



        <div class="tm10px ">    Available Green Credits:</div> 

<div id="user_current_bids" class="normaltextblackbold11 lm5px sfl"> <?=$uname['no_bids'];?> </div>



<script language="javascript">

function find_no_bids(strURL)

{



 	var xmlHttpReq_num = false;

    var self_num = this;

    // Mozilla/Safari

    if (window.XMLHttpRequest) {

        self_num.xmlHttpReq_num = new XMLHttpRequest();

    }

    // IE

    else if (window.ActiveXObject) { 

        self_num.xmlHttpReq_num = new ActiveXObject("Microsoft.XMLHTTP"); 

    }

	

    self_num.xmlHttpReq_num.open('POST', strURL, true);

    self_num.xmlHttpReq_num.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

    self_num.xmlHttpReq_num.onreadystatechange = function() {

        if (self_num.xmlHttpReq_num.readyState == 4) 

		{

            document.getElementById("user_current_bids").innerHTML=self_num.xmlHttpReq_num.responseText;

        }

    }

    self_num.xmlHttpReq_num.send('');



	setTimeout("find_no_bids('ajax_num_bids.php')",2000);

}



setTimeout("find_no_bids('ajax_num_bids.php')",2000);

</script>









<a class="header2right smalla1bww " href="<?=_BASEURL_?>/logout/index.html"><?=_LOGOUT11_?></a></div></div>

<? }?>

<div class="corner_r"></div>

<div class="shadow"></div>

<div id="log_secrh"><div class="log_secrh"><form name="headerSearchForm" id="headerSearchForm" action="<?=_BASEURL_?>/search.php" onSubmit="return searchproduct();" method="get"><input type="text" id="keyword" name="keyword" value="Search..." class="inputtext" onclick="_delete_login_fields(this, 'Search...', this.value);" /></form></div></div>

</div>









<div class="tab_show_effect_sh">

<div class="tab_show_effect">

<div id="toptab_ef">

<ul class="show_tab">

<li class="home"><a href="<?=_BASEURL_?>/">&nbsp;</a></li>

<? if($_SESSION['uid']!=''){?>

<li class="acc"><a href="<?=_BASEURL_?>/myauctions/index.html">&nbsp;</a></li>

<? }

else{?>

<li class="acc"><a href="<?=_BASEURL_?>/login/index.html">&nbsp;</a></li>

<? }?>



<li class="cat"><a href="<?=_BASEURL_?>/allcategories/index.html">&nbsp;</a></li>

<li class="auc"><a href="<?=_BASEURL_?>/seeallauctions/index.html">&nbsp;</a></li>

<li class="how"><a href="<?=_BASEURL_?>/howitworks/index.html">&nbsp;</a></li>

<li class="news"><a href="<?=_BASEURL_?>/newsdetail/index.html">&nbsp;</a></li>



<li class="contact"><a href="<?=_BASEURL_?>/contact/index.html">&nbsp;</a></li>

</ul>



</div>



</div>

</div>









</div>

 

