
function populatediv(urlval,divval)
{
try 
{
var xmlhttp=false;
var status=0;
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");					
if (xmlhttp)
{						
xmlhttp.onreadystatechange=function() 
{
if (xmlhttp.readyState==4)
{
if (xmlhttp.status==200)
{ 
document.getElementById(divval).innerHTML=xmlhttp.responseText;
}
else if (xmlhttp.status==404) status=0 		
else status=0
}}
xmlhttp.open("GET",urlval,true);
xmlhttp.send(null);
}}
catch (e) 
{
xmlhttp = false; 
}}		

function populatediv11(urlval,divval,astroid)
{
try 
{
var xmlhttp=false;
var status=0;
var dn = document.form1.hdn.value; 
var dd = document.form1.ttype.value;
var sn = document.form1.sunsign.value;							
document.form1.hdn.value=dn;
document.form1.ttype.value = dd;
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");					
if (xmlhttp)
{						
xmlhttp.onreadystatechange=function() 
{
if (xmlhttp.readyState==4)
{
if (xmlhttp.status==200)
{ 
document.getElementById(divval).innerHTML=xmlhttp.responseText;

document.form1.sunsign.value=sn;
}
else if (xmlhttp.status==404) status=0
else status=0
}}
xmlhttp.open("GET",urlval,true);
xmlhttp.send(null);
}}
catch (e) 
{
xmlhttp = false; 
}}


function strtrim(str){
	if(!str || typeof str !='string')
	return null;
	return str.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' ');
}

function loadIDPass(){
	var pass=Get_Ckie("commlogp1");	
	var userid=Get_Ckie("commlogu1");	
	pass=strtrim(pass);
	userid=strtrim(userid);	
	if(pass=="" || pass==null){}
	else{
		document.getElementById("passwd").value=pass		
		document.getElementById("rememberpassword").checked=true;		
	}
	if(userid=="" || userid==null){}
	else{
		document.getElementById("login").value=userid;		
	}
}



function Get_Ckie(name){
	var start=document.cookie.indexOf(name+"=")
	var len=start+name.length+1
	if((!start)&&(name !=document.cookie.substring(0,name.length))){
		return null
	}
	if(start==-1)return null;
	var end=document.cookie.indexOf(";",len)
	if(end==-1)end=document.cookie.length
	return unescape(document.cookie.substring(len,end))
}



function SlideDownMsg(divId){		
this._div=document.getElementById(divId);
this._div.style.display="block";
this._divHeight = this._div.offsetHeight;	
this._div.style.top=parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))-this._divHeight+"px";	
this.Down = function(){
if(parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))<=0){
this._div.style.top=parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))+5+"px";
setTimeout(divId+".Down()",1);
}
}
this.Up = function(){
if(parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))>(this._divHeight*-1)){
this._div.style.top=parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))-5+"px";
setTimeout(divId+".Up()",1);
}
}
this.Close=function(){
this.Up();
}
setTimeout(divId+".Down()",800);
//setTimeout(divId+".Up()",25000);
}
if(Get_Cookie("maincontainer1")==null && Get_Cookie("maincontainer2")==null){var dd = new SlideDownMsg("dd");}


function setMaretTab(){

}
function AutoTab()
{

}
