// use the top copy if you want the popup to be flush top left
function login(){
var name=prompt("Enter your login:","")

if (name!=null && name!="" && name=="vendors"){
	var pword=prompt("Enter your password:","")
	if (pword=="partner"){
		document.write("this works");
		window.location="http://www.tgleedairy.com/vendor/800.htm"
	}
	else{
		document.write("this doesn't work 1");
		window.location="index.htm"}
}
else{
	document.write("this doesn't work 2");
	window.location="index.htm"}
}


function popup(URL, width, height) {
	var winl = 0;
	var wint = 0;
	day = new Date();
	id = day.getTime();
	window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + winl + ',top=' + wint);
}

// use the second copy if you want the popup to be center page
function popupcenter(URL, width, height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	day = new Date();
	id = day.getTime();
	window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + winl + ',top=' + wint);
}

// Remember that you you want to use the center option type javascriptcenter in the link to in the design window

function popupcenter3d(URL, width, height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	day = new Date();
	id = day.getTime();
	window.open(URL, id, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + winl + ',top=' + wint);
}// use the top copy if you want the popup to be flush top left
function login(){
var name=prompt("Enter your login:","")

if (name!=null && name!="" && name=="vendors"){
	var pword=prompt("Enter your password:","")
	if (pword=="partner"){
		document.write("this works");
		window.location="http://www.tgleedairy.com/vendor/800.htm"
	}
	else{
		document.write("this doesn't work 1");
		window.location="index.htm"}
}
else{
	document.write("this doesn't work 2");
	window.location="index.htm"}
}


function popup(URL, width, height) {
	var winl = 0;
	var wint = 0;
	day = new Date();
	id = day.getTime();
	window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + winl + ',top=' + wint);
}

// use the second copy if you want the popup to be center page
function popupcenter(URL, width, height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	day = new Date();
	id = day.getTime();
	window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + winl + ',top=' + wint);
}

// Remember that you you want to use the center option type javascriptcenter in the link to in the design window

function popupcenter3d(URL, width, height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	day = new Date();
	id = day.getTime();
	window.open(URL, id, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + winl + ',top=' + wint);
}