
var btWinNum = 0;

function __ZIGMA_Bookmark () {
	title = 'Nicgallery.dk | Danish painter, Nicolas Borgsmidt';
	url = 'http://www.nicgallery.dk/';
	if ( window.sidebar ) {
		window.sidebar.addPanel(title, url,"");
	} else if ( window.external ) {
		window.external.AddFavorite(url, title);
	} else if ( window.opera && window.print ) {
		return true;
	}
}
function __ZIGMA_Validate_Guestbook(){
	StrErr = 'Field marked with a star is required.\nPlease enter:';
	IntErr = 0;
	
		if(document.getElementById('gb_name').value==''){
		IntErr++;
		StrErr += '\n'+IntErr+'. Name';
	}
		if(document.getElementById('gb_country').value==''){
		IntErr++;
		StrErr += '\n'+IntErr+'. Country';
	}
		if(document.getElementById('gb_text').value==''){
		IntErr++;
		StrErr += '\n'+IntErr+'. Message';
	}
		
	if(IntErr){
		alert(StrErr);
		return false;
	}else{
		return true;
	}
}
function __ZIGMA_Validate_Contact(){
	StrErr = 'Field marked with a star is required.\nPlease enter:';
	IntErr = 0;
	
		if(document.getElementById('contact_name').value==''){
		IntErr++;
		StrErr += '\n'+IntErr+'. Name';
	}
		if(document.getElementById('contact_message').value==''){
		IntErr++;
		StrErr += '\n'+IntErr+'. Message';
	}
			
	if(IntErr){
		alert(StrErr);
		return false;
	}else{
		return true;
	}
}
function __ZIGMA_OpenWin(btWinUrl, btWinWidth, btWinHeight){
	btWinNum++;
	btWinTop = ((screen.height/2)-(btWinHeight/2));
	btWinLeft = ((screen.width/2)-(btWinWidth/2));
	btWinEnv = 'dependent=1, directories=0, menubar=0, resizable=0, titlebar=0, toolbar=0, scrollbars=0, status=0, width='+btWinWidth+', height='+btWinHeight+', top='+btWinTop+', left='+btWinLeft;
	btWinCur = window.open('', 'btWin'+btWinNum, btWinEnv);
	btWinCur.location.href = btWinUrl;
	return false;
}
