function putstars(n){
for(i=0;i<n;i++){
       obj=document.getElementById('s'+i);
       obj.src='../images/staron.gif';
}
for(i=n;i<5;i++){
       obj=document.getElementById('s'+i);
       obj.src='../images/staroff.gif';
}
}
  
function function2(){
if (http_request.readyState == 4) {
	if (http_request.status == 200) {
		var datacontent=http_request.responseText;
		dialog(datacontent,document.location.href);  
	} 
	else {
		alert('There was a problem with the request.');
	}
}
else{
	//populateTxt(loadpic,'divmsg');
    }
}

function function1(){
if (http_request.readyState == 4) {
	if (http_request.status == 200) {
		var s=http_request.responseText;
		if (s.length>0){
			string = s.split( "|" );
			if (string[0]=='1'){
				clearTxt('divmsg');
				if (confirm(string[1])){document.location.href='cont.htm?burl='+document.location.href;}
			}
			else{ 
				clearTxt('divmsg');
				populateTxt(s,'divmsg');
			}
		}
	} 
	else {
		clearTxt('divmsg');
		alert('There was a problem with the request.');
	}
}
else{
	clearTxt('divmsg');
	populateTxt(loadpic,'divmsg');
}
}

function ContentsTxt(){
if (http_request.readyState == 4) {
	if (http_request.status == 200) {
		clearTxt('divmsg');
  	    populateTxt(http_request.responseText,'divmsg');
	} 
	else {
		clearTxt('divmsg');
		alert('There was a problem with the request.');
	}
}
else{
	populateTxt(loadpic,'divmsg');
}
}
