﻿function popWin()
{
    newwindow = window.open('http://www.google.com','Help','left=100,top=100,height=600,width=700,status=yes,toolbar=no,menubar=no,location=no,resizable=yes',false);
}


function wopen(url, name, w, h, l, t) {
    //centers the pop-up in window
    // Fudge factors for window decoration space.
    // In my tests these work well on all platforms & browsers.
    //w += 32;
    //h += 96;
    var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'left=' + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t + '' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=yes, resizable=yes');
    //win.resizeTo(w, h);
    win.focus();
}


/*
<a href="page.html" target="popup"
 onClick="wopen('page.html', 'popup', 640, 480); return false;"> Click here to open the page in a new window. </a> 
*/


//Function for AjaxUpload Control
function iFrame_OnUploadComplete() { 
	document.form1.btnUploaded.click();	
}

//Show Hide Div
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
//End Show Hide Div