function popuplink() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup"){
			winPop(anchor);
		}
		if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup01"){
			winPop01(anchor);
		}
		if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup02"){
			winPop02(anchor);
		}
		if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup03"){
			winPop03(anchor);
		}
		if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup04"){
			winPop04(anchor);
		}
	}
}
function winPop(element){
	var link = element.getAttribute('href');
	element.onclick = function(){
		var wo = window.open(link,"levelWin","width=425,height=675,status=no,resizable=no,toolbar=no,menubar=no,scrollbars=yes");
		return false;
	}
}

function winPop01(element){
	var link = element.getAttribute('href');
	element.onclick = function(){
		var wo = window.open(link,"levelWin01","width=630,height=750,status=no,resizable=no,toolbar=no,menubar=no,scrollbars=yes");
		return false;
	}
}

function winPop02(element){
	var link = element.getAttribute('href');
	element.onclick = function(){
		var wo = window.open(link,"levelWin02","width=550,height=550,status=no,resizable=no,toolbar=no,menubar=no,scrollbars=yes");
		return false;
	}
}

function winPop03(element){
	var link = element.getAttribute('href');
	element.onclick = function(){
		var wo = window.open(link,"levelWin03","width=425,height=483,status=no,resizable=no,toolbar=no,menubar=no,scrollbars=yes");
		return false;
	}
}

function winPop04(element){
	var link = element.getAttribute('href');
	element.onclick = function(){
		var wo = window.open(link,"map","width=680,height=750,status=no,resizable=no,toolbar=no,menubar=no,scrollbars=yes");
		return false;
	}
}

window.onload = popuplink

