function createPopups(){

	if (!document.getElementsByTagName) return;
	
  	var tags = document.getElementsByTagName("a");
  	var url;
  	var save = new Array(3);
  	
  	for (var i=0; i < tags.length; i++){
      var tag = tags[i];
      if (tag.className.match("popup") != null){
		url = tag.href;            
		
		var windex = url.indexOf("width=");
		var width = url.substring(windex+6,windex+9);
		
		var hindex = url.indexOf("height=");
		var height = url.substring(hindex+7,hindex+10);
		
		new poper(url, width, height, tag)
		
	  }      	
      	
	}

}//End of createPopups

function poper(url,width,height,element){

	this.width = width;
	this.height = height;
	this.url = url;
	this.element = element;
	this.element.onclick = function(){popIt(url,width,height); return false;};

}
function popIt(url, width, height){
	window.open(url,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width="+width+", height="+height)
}
