function MPlayer(tmp) {
	if (parseInt(navigator.appVersion)>3) {
			screenW = screen.width
			screenH = screen.height
		} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
			var jToolkit = java.awt.Toolkit.getDefaultToolkit()
			var jScreenSize = jToolkit.getScreenSize()
			screenW = jScreenSize.width
			screenH = jScreenSize.height
		}
		sw = (screenW - 600) / 2
		sh = (screenH - 400) / 2
		window.open ("/flash/mplayer.asp?fName=" + tmp, "", "width=346,height=360,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
	}

function MapPopUp() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 720) / 2
	sh = 20
	sh2 = screenH - 120
	window.open ("/flash/map.html", "", "width=720,height=" + sh2 + ",top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}


function MapPopUp_World() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 900) / 2
	sh = 20
	sh2 = screenH - 370
	window.open ("/flash/map_world/map_world.html", "", "width=790,height=" + sh2 + ",top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}


function NLPop() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 500) / 2
	sh = (screenH - 445) / 2
	window.open ("subscribe.html", "", "width=500,height=445,top=" + sh + ",left=" + sw + ",toolbar=0,resizable=0")
}

function MemPop() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 600) / 2
	sh = (screenH - 375) / 2
	window.open ("individual.asp", "", "width=600,height=375,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}

function oNational() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 484) / 2
	sh = (screenH - 304) / 2
	window.open ("national.html", "", "width=484,height=304,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}

function UserLogin() {
	tmp = document.ulogin.username.value
	tmp2 = document.ulogin.password.value
	if(tmp.length > 1) {
		if(tmp2.length > 1) {
			killDate = new Date();
			killDate = new Date((killDate.setDate(killDate.getDate()+30))); // increase killDate 30 days
			document.cookie = "Username=" + tmp + " ; expires=" + killDate.toGMTString();
			document.cookie = "Password=" + tmp2 + " ; expires=" + killDate.toGMTString();
			document.ulogin.action = "index.asp?dbsection=chklogin"
		} else {
			return false
		}
	} else {
		return false
	}
}

function ForgotPassword() {
	tmp = document.passwordhelp.username.value
	if(tmp.length > 1) {
		killDate = new Date();
		killDate = new Date((killDate.setDate(killDate.getDate()+30))); // increase killDate 30 days
		document.cookie = "Username=" + tmp + " ; expires=" + killDate.toGMTString();
		document.passwordhelp.action = "index.asp?dbsection=chkforgotpassword"
	} else {
		return false
	}
}

function UpdateUser(tmp) {
	killDate = new Date();
	killDate = new Date((killDate.setDate(killDate.getDate()+30))); // increase killDate 30 days
	document.cookie = "Password=" + tmp + " ; expires=" + killDate.toGMTString();
}
function Logout() {
	if(confirm("Logging out will delete your user information from your computer.  This means that you will have to login again to access certain features of the site.\nAre you sure you want to logout?")) {
		killDate = new Date();
		killDate = new Date((killDate.setDate(killDate.getDate()-1)));
		document.cookie = "Username= ;expires=" + killDate.toGMTString();
		document.cookie = "Password= ;expires=" + killDate.toGMTString();
		window.location.href = "index.asp?dbsection=login"
	} else {
		//do nothing
	}
}

function RemoveCookieFile() {
	if(confirm("Use this feature only to remove the NAQC cookie stored on your computer not allowing you to login. To continue, click OK, else click Cancel.")) {
		killDate = new Date();
		killDate = new Date((killDate.setDate(killDate.getDate()-1)));
		document.cookie = "Username= ;expires=" + killDate.toGMTString();
		document.cookie = "Password= ;expires=" + killDate.toGMTString();
		window.location.href = "index.asp?dbsection=login"
	} else {
		//do nothing
	}
}

function GoRegister() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 275) / 2
	window.open ("register.asp", "", "width=510,height=275,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}
function RegOk() {
	window.opener.location.href='index.asp?dbsection=login'
	document.getElementById("cmp").innerHTML = "Registration Complete<br>&nbsp;<br>Please click the 'Finish' button to close this window.  Then login to complete your registration.<form><input type='button' name='btn' value='Finish Registration' onClick='window.close()'></form>"
}
function GoLHelp() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 700) / 2
	sh = (screenH - 500) / 2
	window.open ("/help/Registration_Login.pdf", "", "width=700,height=500,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=1")
}

function EdtTopic(tmp) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 300) / 2
	window.open ("topic.asp?id=" + tmp, "", "width=510,height=340,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}
function DeleteTopic() {
	if(confirm("Are you sure that you want to delete this topic?")) {
		window.location.href="delete.asp?id=" + document.ntopic.id.value + "&type=Topic"
	}
}

function NewConnections() {
	window.open ("attachmentupload.asp", "", "width=510,height=300,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}

function TopicOk() {
	window.opener.history.go(0)
	document.getElementById("cmp").innerHTML = "Discussion Topic Entered<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function EdtComment(tmp,tmp2) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 275) / 2
	window.open ("comment.asp?id=" + tmp + "&disid=" + tmp2, "", "width=510,height=275,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}
function NewComment(tmp) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 275) / 2
	window.open ("comment.asp?disid=" + tmp, "", "width=510,height=275,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}
function CommentOk() {
	window.opener.history.go(0)
	document.getElementById("cmp").innerHTML = "Comment Entered<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function DeleteComment() {
	if(confirm("Are you sure that you want to delete this comment?")) {
		window.location.href="delete.asp?id=" + document.ncomment.id.value + "&type=Comment"
	}
}
function DeleteFinished(tmp7) {
	window.opener.history.go(0)
	document.getElementById("cmp").innerHTML = "Delete Successfull<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function DeleteFinishedE(tmp7) {
	window.opener.window.opener.history.go(0)
	window.opener.close()
	document.getElementById("cmp").innerHTML = "Delete Successfull<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}

function NewTopic(tmp) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 300) / 2
	window.open ("topic.asp?gid=" + tmp, "", "width=510,height=300,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
	
}

function AttachUpload(tmp,tmp2,tmp3) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 275) / 2
	if(tmp2 == "documents") {
		tmp3 = document.nproject.wgp.value
		tmp = tmp + "_" + tmp3
	}
	/*window.open ("attachmentupload.asp?id=" + tmp + "&type=" + tmp2 + "&ul=" + tmp3, "", "width=510,height=275,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")*/
	window.open("attachmentupload.aspx?id=" + tmp + "&type=" + tmp2 + "&ul=" + tmp3, "", "width=510,height=275,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}

function AttachUploadX(tmp,tmp2,tmp3) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 275) / 2
	if(tmp2 == "documents") {
		tmp3 = document.nproject.wgp.value
		tmp = tmp + "_" + tmp3
	}
	window.open ("attachmentupload.aspx?id=" + tmp + "&type=" + tmp2 + "&ul=" + tmp3, "", "width=510,height=275,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}

function closeAUpWindowX(tmpfn,tmpid) {
    if (tmpid == 1) {
        window.opener.document.forms['nevent'].elements['attachment1'].value=tmpfn;
    } else if (tmpid == 2) {
        window.opener.document.forms['nevent'].elements['attachment2'].value=tmpfn;
    } else if (tmpid == 3) {
        window.opener.document.forms['nevent'].elements['attachment3'].value=tmpfn;
    } else if (tmpid == 4) {
        window.opener.document.forms['nevent'].elements['attachment4'].value=tmpfn;
    } else if (tmpid == 5) {
        window.opener.document.forms['nevent'].elements['attachment5'].value=tmpfn;
    } else if (tmpid == 6) { /*new topic*/
        window.opener.document.forms['ntopic'].elements['attachment'].value = tmpfn;
    }
    window.close();
}

function AttachUploadConnections() {
	window.open ("attachmentupload.asp", "", "width=510,height=275,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}

function BeginUpload() {
	ext = false
	tmp7 = document.iu.ib.value
	tmp8 = document.iu.filename.value
	fl = document.iu.filelist.value.split("~~~")
	tmp8 = tmp8.substring(tmp8.lastIndexOf('\\') + 1)
	tmp8 = tmp8.toLowerCase()
	tmp = ""
	fcheck = false
	for(i=0;i<tmp8.length;i++) {
		if(tmp8.charAt(i) == " ") {
			tmp = tmp + "_"
		} else {
			tmp = tmp + tmp8.charAt(i)
		}
	}
	ftypes = new Array("mp3","wav","jpg","gif","jpeg","png","bmp","zip","ace","rar","ppt","pps","pdf","xls","doc","txt","rtf","psd","pdf","ai","html","htm")
	for(i=0;i<17;i++){
		if(tmp.substring(tmp.lastIndexOf(".") + 1) == ftypes[i]) {
			ext = true
		}
	}
	
	if(ext == true) {
		for(j=0;j<fl.length;j++) {
			if(fl[j] == tmp7 + "_" + tmp.toLowerCase()) {
				fcheck = true
			}
		}
		if(fcheck == true){
			if(confirm("The file you are trying to upload already exists on the server.  If you do not wish to overwrite the file then click cancel and rename the file to something else.\nDo you want to overwite the file?")) {
				tmp2 = document.iu.filename.value
				tmp2 = tmp2.substring(0, tmp2.lastIndexOf('\\') + 1)
				document.iu.filename.value = tmp2 + tmp7 + "_" + tmp
				theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
				theUniqueID = (new Date()).getTime() % 1000000000;
				window.open("progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
				document.iu.action = "progressupload.asp?ID=" + theUniqueID
				switch(document.getElementById("ul").value){
			        case "1":
			            window.opener.window.document.getElementById("attachment1").value = tmp7 + "_" + tmp
			            break;
			        case "2":
			            window.opener.window.document.getElementById("attachment2").value = tmp7 + "_" + tmp
			            break;
			        case "3":
			            window.opener.window.document.getElementById("attachment3").value = tmp7 + "_" + tmp
			            break;
			        case "4":
			            window.opener.window.document.getElementById("attachment4").value = tmp7 + "_" + tmp
			            break;
			        case "5":
			            window.opener.window.document.getElementById("attachment5").value = tmp7 + "_" + tmp
			            break;
			        case "6":
			            window.opener.window.document.getElementById("attachment").value = tmp7 + "_" + tmp
			            break;
			    }
				return true
			} else {
				return false
			}
		} else {
			tmp2 = document.iu.filename.value
			tmp2 = tmp2.substring(0, tmp2.lastIndexOf('\\') + 1)
			document.iu.filename.value = tmp2 + tmp7 + "_" + tmp
			theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
			theUniqueID = (new Date()).getTime() % 1000000000;
			window.open("progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
			document.iu.action = "progressupload.asp?ID=" + theUniqueID
			
			switch(document.getElementById("ul").value){
			    case "1":
			        window.opener.window.document.getElementById("attachment1").value = tmp7 + "_" + tmp
			        break;
			    case "2":
			        window.opener.window.document.getElementById("attachment2").value = tmp7 + "_" + tmp
			        break;
			    case "3":
			        window.opener.window.document.getElementById("attachment3").value = tmp7 + "_" + tmp
			        break;
			    case "4":
			        window.opener.window.document.getElementById("attachment4").value = tmp7 + "_" + tmp
			        break;
			    case "5":
			        window.opener.window.document.getElementById("attachment5").value = tmp7 + "_" + tmp
			        break;
			    case "6":
		            window.opener.window.document.getElementById("attachment").value = tmp7 + "_" + tmp
		            break;
			}
						
			return true
		}
	} else {
		alert("We have checked the extension of the file you are trying to upload and it does not match any of our allowed extensions.\n \nTherefore, we cannot upload the file.  If the file you are trying to upload is a valid file then please contact RSi Communications to help upload the file\n\nJoanne Reinhardt at (845) 613-7992 or\nBy Email joanne.reinhardt@rsicommunications.com")
		return false		
	}
}
function NewEvent() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 375) / 2
	window.open ("newevent.asp", "", "width=530,height=530,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}
function EditEvent(tmp) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 375) / 2
	window.open ("newevent.asp?id=" + tmp, "", "width=550,height=410,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}
function ViewEvent(tmp) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 575) / 2
	sh = (screenH - 420) / 2
	window.open ("viewevent.asp?id=" + tmp, "", "width=550,height=400,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}
function DeleteEvent() {
	if(confirm("Are you sure that you want to delete this event?")) {
		window.location.href="deletee.asp?id=" + document.nevent.id.value
	}
}
function EventOk() {
	window.opener.history.go(0)
	document.getElementById("cmp").innerHTML = "Event Entered<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function EEventOk(tmp) {
	window.opener.location.href='viewevent.asp?id=' + tmp
	document.getElementById("cmp").innerHTML = "Event Updated<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function EditMembership() {
		if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 600) / 2
	sh = (screenH - 375) / 2
	window.open ("editmembership.asp", "", "width=600,height=375,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}
function SetemAff(tmp) {
	document.edtmem.affiliation[tmp].selected = true
}
function EMEcheck() {
	document.edtmem.approved.value = 'Yes'
	return true
}
function EditProfile() {
		if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 600) / 2
	sh = (screenH - 375) / 2
	window.open ("editprofile.asp", "", "width=550,height=250,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=1,resizable=0")
}
function UpdPass() {
	if(document.ureg.password.disabled == true) {
		document.ureg.password.disabled = false
		document.ureg.passwordconf.disabled = false
	} else {
		document.ureg.password.value = ""
		document.ureg.passwordconf.value = ""
		document.ureg.password.disabled = true
		document.ureg.passwordconf.disabled = true
	}
}
function UProfOk() {
	window.opener.history.go(0)
	window.close()
}
function NewProject() {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 375) / 2
	window.open ("newprojectbegin.asp", "", "width=510,height=380,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}
function EditProject(tmp,tmp2) {
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width
		screenH = screen.height
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit()
		var jScreenSize = jToolkit.getScreenSize()
		screenW = jScreenSize.width
		screenH = jScreenSize.height
	}
	sw = (screenW - 525) / 2
	sh = (screenH - 375) / 2
	window.open ("newproject.asp?id=" + tmp + "&wgp=" + tmp2 + "&approved=yes", "", "width=510,height=380,top=" + sh + ",left=" + sw + ",toolbar=0,scrollbars=0,resizable=0")
}
function ProjectOk() {
	window.opener.history.go(0)
	document.getElementById("cmp").innerHTML = "Item Entered<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function EProjectOk(tmp) {
	window.opener.history.go(0)
	document.getElementById("cmp").innerHTML = "Event Updated<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function DeleteProject(){
	if(confirm("Are you sure that you want to delete this item?")) {
		window.location.href="deletep.asp?id=" + document.nproject.id.value
	}
}
function DeleteFinishedP(){
	window.opener.history.go(0)
	document.getElementById("cmp").innerHTML = "Delete Successfull<br>&nbsp;<br>Please click the 'Finish' button to close this window.<form><input type='button' name='btn' value='Finish' onClick='window.close()'></form>"
}
function CCCheck() {
	if(confirm("Are you sure that you want to register for this conference call?")) {
		return true
	} else {
		return false
	}
}
function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
	if(id == "iAdd"){
		    document.getElementById("tbPAdd").value = ""
	}
	
}
function showdiv(id) {
	//safe function to show an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElement
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
