<!--
function locationFields(country, div){
    var page = './packages/signup/forms/extraSignupElements.php';
	  myTimeStamp = timestamp();
    var modurl = page + "?time=" + myTimeStamp + "&country=" + country;
    http.open("POST", modurl, true);
	  http.onreadystatechange = function() {useHttpResponse('text', div, false);};
    http.send('');
}


function insertSmilie(myValue, myField){
    if (!myField){
		    myField = document.messageForm.message;
	  }

    if(document.selection) {
        myField.focus();
        sel = document.selection.createRange();
        sel.text = myValue;
		}
    else if(myField.selectionStart || myField.selectionStart == '0'){
        var startPos = myField.selectionStart;
        var endPos = myField.selectionEnd;
        myField.value = myField.value.substring(0, startPos) + myValue + myField.value.substring(endPos, myField.value.length);
    } 
	  else{
        myField.value += myValue;
  }
}

function checkAll(field){
    var isChecked = 0;
    for (i = 0; i < field.length; i++){
	      if(field[i].checked == true){
				    isChecked++;
				}
		}
		if(isChecked == 0){
		    for (i = 0; i < field.length; i++){
            field[i].checked = true;
		    }
		}
		else{
		    for (i = 0; i < field.length; i++){
            field[i].checked = false;
		    }
		}
}


function swfMovie(url_cont, vidwidth, vidheight){
  document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + vidwidth + '" height="' + vidheight + '" id="' + url_cont + '" align="center">');
  document.write ('<param name="movie" value="' + url_cont + '">');
  document.write ('<param name="quality" value="high">');
  document.write ('<embed src="' + url_cont + '" width="' + vidwidth + '" height="' + vidheight + '" quality="high" name="' + url_cont + '" align="center" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
  document.write ('</embed>');
  document.write ('</object>');
}

function swfMovieTs(url_cont, vidwidth, vidheight, sessionId, pageId){
  var d = new Date();
  var timestamp = d.getTime();
  document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + vidwidth + '" height="' + vidheight + '" id="' + url_cont + '" align="center">');
  document.write ('<param name="movie" value="' + url_cont + '?timestamp=' + timestamp + '&sid=' + sessionId + '&pid=' + pageId + '">');
  document.write ('<param name="quality" value="high">');
  document.write ('<embed src="' + url_cont + '?timestamp=' + timestamp + '&sid=' + sessionId + '&pid=' + pageId + '" width="' + vidwidth + '" height="' + vidheight + '" quality="high" name="' + url_cont + '" align="center" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
  document.write ('</embed>');
  document.write ('</object>');
}

function popUp(url) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=200,left = 322,top = 183');");
}

function popUpMap(url) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=620,height=360,left = 322,top = 183');");
}

function liveNotes(div, notes){
    document.getElementById(div).innerHTML = "<div class=\"liveInfoNotes\"><div align=\"right\"><a href=\"javascript: clearNotes('" + div + "');\">X</a></div><br />" + notes.replace(/\n/g, '<br />') + "</div>";
}

function clearNotes(div){
    document.getElementById(div).innerHTML = "";
}

function confirmMemberLogout(isSite){
    if(confirm("Are you sure you wish to log out?")){
        window.location = ("../../login/processmemberlogout.php");
		}
}

function addTags(hash, curr, tags){
    document.getElementById('tags').innerHTML = "<p>Seperate multiple tags with spaces</p><p><form id=\"tagForm\" onSubmit=\"return false;\"><input type=\"hidden\" name=\"id\" id=\"id\" value=\"" + hash + "\" /><input type=\"text\" name=\"tag\" id=\"tag\" value=\"" + tags.replace("\"", "&quot;") + "\" /><br /><br /><input type=\"button\" value=\"tag\" onClick=\"return doCallback('tagForm', false, '../../packages/members/tags/processTag.php', 'text', 'tags');\" /> <input type=\"button\" value=\"cancel\" onClick=\"window.location = 'index.php'\" /></form></p>";
}

function addMusic(hash, curr, tags){
    document.getElementById('music').innerHTML = "<p>Seperate multiple artists with spaces</p><p><form id=\"musicForm\" onSubmit=\"return false;\"><input type=\"hidden\" name=\"mid\" id=\"mid\" value=\"" + hash + "\" /><input type=\"text\" name=\"music\" id=\"music\" value=\"" + tags.replace("\"", "&quot;") + "\" /><br /><br /><input type=\"button\" value=\"add\" onClick=\"return doCallback('musicForm', false, '../../packages/members/music/processMusic.php', 'text', 'music');\" /> <input type=\"button\" value=\"cancel\" onClick=\"window.location = 'index.php'\" /></form></p>";
}

function newAvatar(hash){
    document.getElementById('avatar').innerHTML = "<p><form id=\"avatarForm\" enctype=\"multipart/form-data\" action=\"?page=misc&subpage=upload\" method=\"POST\"><input type=\"hidden\" name=\"id\" id=\"id\" value=\"" + hash + "\" /><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"856000\"><input name=\"avatar\" type=\"file\" size=\"10\"/><br /><br /><input type=\"submit\" value=\"upload\" /> <input type=\"button\" value=\"cancel\" onClick=\"window.location = 'index.php'\" /></form></p><br />";
}

function showItem(type, id){
    window.location = ("./index.php?page=" + type + "&subpage=list&shows=" + id);
}
-->