function history()
{
var divEng=document.createElement("div");

var div=document.createElement("div");

divEng.appendChild(div);

divEng.id="historyID";

document.getElementById("content").appendChild(divEng);



}//alert(document.getElementById('historyID'))
function add(){

	document.getElementById("historyTextID").innerHTML=document.getElementById("historyID");
	alert(document.getElementById("historyID"));
}
function joop()
{
	var m=window.open('includes/joopshow.inc');
}
function eventvar1()
{
   var div=document.createElement("div");

document.getElementById("eventId").appendChild(div);
div.innerHTML="<textarea name='comments' WRAP='virtual'cols='59' rows='9'id='historyTextID'></textarea>";
alert(document.getElementById("event1Id"));
}
function eventvar2(){   var div=document.createElement("div");

document.getElementById("eventId").appendChild(div);
div.innerHTML="<textarea name='comments' WRAP='virtual'cols='59' rows='9'id='historyTextID'></textarea>";
alert(document.getElementById("event2Id"));}
function eventvar3(){   var div=document.createElement("div");

document.getElementById("eventId").appendChild(div);
div.innerHTML="<textarea name='comments' WRAP='virtual'cols='59' rows='9'id='historyTextID'></textarea>";
alert(document.getElementById("event3Id"));}
var i=true;
function openjoop()
{

if(i){i=false;
	 var div=document.createElement("div");
	 div.position="absolute";
	 div.border="solid 1px #000";
	 div.style.width='400px';
	 div.style.height='200px';
	 div.innerHTML = "<input type='button' value='Add Glass'>";
	 document.getElementById("Joop").appendChild(div);
	}
}

function f_href(attr,val){
	var arr = location.href.split('?');
	if(arr[1] != undefined){
		var url = arr[0];
		var arr1 = arr[1].split('&');
		for(var j=0;j<attr.length;j++){
			var t = true;
			for(var i=0;i<arr1.length;i++){
				var tmp = arr1[i].split('=');
				if(attr[j] == tmp[0]){
					tmp[1] = val[j];
					t = false;
				}
				arr1[i] = tmp.join('=');
			}
			if(t) arr1.push(attr[j]+'='+val[j]);
		}
		location.href = url+'?'+arr1.join('&');
		//alert(url+'?'+arr1.join('&'));
		return;
	}
	url = arr[0]+'?';
	for(var i=0;i<attr.length;i++){
		if(i != 0) url += '&';
		url += attr[i]+'='+val[i];
	}
	//alert(url);
	location.href = url;
}