function ChangeInnerHTML(id,content) {
	document.getElementById(id).innerHTML = content;
}

function DeleteRememberLogin(f) {
	if (getCookie("rememberLogin") == 1)
		f.password.value='';

	deleteCookie("rememberLogin","","."+window.location.hostname.replace("www.",""));
	deleteCookie("password","","."+window.location.hostname.replace("www.",""));
}

function SelectField(f) {
	if (f) {
		f.select();
		f.focus();
	}
}

function SetSiteWidth() {
	if (screen.width <= 1000) {
		document.getElementById('tbl0').style.width='100%';
		document.getElementById('td0').className='td0';
  }
}

function ShowIntro() {
	ShowHideDiv('div_body','none');
	ShowHideDiv('div_intro','block');
}

function HideIntro() {
	ShowHideDiv('div_body','block');
	ShowHideDiv('div_intro','none');
}

function ShowVideo(divID,url) {
	disablePage(divID);
	centerDiv(divID,30);
	ShowHideDiv(divID,'block');
	ajax.get('/run.php?pageID=Get_Video&url='+url,divID);
}

function ShowPicture(divID,picsDir,img) {
	disablePage(divID);
	centerDiv(divID,30);
	ShowHideDiv(divID,'block');
	pos1 = ajax.get('/pc.php?pageID=Larger_Image_Div&divID='+divID+'&picsDir='+picsDir+'&img='+img,divID);
	return pos1;
}
