function newWindowConfig(usePage,winName,winWidth,winHeight,winResizable,winStatus,winScrollbars,winToolbar) {
  window.open('' + usePage + '','' + winName + '','width=' + winWidth + ',height=' + winHeight + ',resizable=' + winResizable + ',status=' + winStatus + ',scrollbars=' + winScrollbars + ',toolbar=' + winToolbar + ',copyhistory=no');
}

function copyright() {
	if (top.location != self.location) {
		top.location.href = self.location
		}
}

function ViewPlace(page) {            
	if (page != "") {                    
		top.location=page; 
	}
}

function SmpImage(page) {
	window.open('/smp_no/' + page + '','SmpImage','width=768,height=576,resizable=yes,status=yes,scrollbars=no,toolbar=no,copyhistory=no');
}

function infoWindow(usePage,useWin,useWidth,useHeight) {
	LeftPosition=(screen.width)?(screen.width-520-100)/2:100;
	TopPosition=100;
	window.open('' + usePage + '','' + useWin + '','width=' + useWidth + ',height=' + useHeight + ',top=' + TopPosition + ',left=' + LeftPosition + ',resizable=yes,status=no,scrollbars=auto,toolbar=no,copyhistory=no');
}
	
	
function setIframeHeight(inputElement){
	if (typeof inputElement=="object"){
		maxHeight=600;
		tmpHeight=inputElement.contentWindow.document.body.scrollHeight;
		if (tmpHeight>=maxHeight){
			newHeight=maxHeight;
		}else{
			newHeight=tmpHeight;
		}
		inputElement.height=newHeight+10;
	}
}