function resizeWindow() {
	var windowHeight = 600;
	var windowWidth = 800;
	
	window.resizeTo(windowWidth,windowHeight);
	window.scrollTo(10,10);
	/*while(scrollHorizontal == true) {
		window.resizeTo(windowWidth,windowHeight);
	}*/
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function sendForm(form){
	form.submit();
}

function openPaint(){
var scr_h, scr_w, centerT, centerL, xc, yc, scrollon, urlValue;
//
	if (navigator.appName == 'Microsoft Internet Explorer' && (navigator.platform.substring(0,3) == 'Win')){
		xc=10;
		yc=57;
	}
	else if (navigator.appName == 'Netscape' && navigator.platform.substring(0,3) == 'Win') {
		xc=12;
		yc=59;
	}
	else if (navigator.platform == 'MacPPC' && navigator.appName == 'Netscape'){
		xc=13;
		yc=49;
	}
	else {
		xc=13;
		yc=31;	
	}

	//scr_w=screen.width-xc;
	//scr_h=screen.height-yc;
	//scr_w=590;
	//scr_h=400;
	scr_w=1000;
	scr_h=675;
	
	if( screen.width < 1024 || screen.height < 768) {
		scrollon = "yes";
	} 
	else {
		scrollon = "no";
	}
//
	if(screen){
		centerL = (screen.availWidth - scr_w)/2;
		centerT = (screen.availHeight - scr_h)/2;
		//centerL = (screen.availWidth - 990)/2;
		//centerT = (screen.availHeight - 695)/2;
	}
	
	//urlValue = "http://65.36.226.38/PROD/galleryMain.cfm?gallery=1&width=" + scr_w + "&height=" + scr_h;
	urlValue = "http://65.36.221.130/InteractivePainting.cfm";
	if(scrollon == "yes"){
		newWindow = window.open(urlValue,'InteractivePainting','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+scr_w+',height='+scr_h+',screenX='+centerL+',screenY='+centerT+',top='+centerT+',left='+centerL);
	}
	else {
		newWindow = window.open(urlValue,'InteractivePainting','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+scr_w+',height='+scr_h+',screenX='+centerL+',screenY='+centerT+',top='+centerT+',left='+centerL);
	}
	
	newWindow.focus();
	if(navigator.platform.indexOf("MacPPC")!=-1 && navigator.appName.indexOf('Microsoft')!=-1)
	{
		newWindow.resizeTo(scr_w,scr_h);
	}
	
}

function newsUploadImageDisplay(currentLayout) {
	
	if(currentLayout == "noImage") {
		 document.getElementById('imageFile').disabled = true;
		document.getElementById('imageFile').src = '';
	} else {
		 document.getElementById('imageFile').disabled = false;
	}
}