﻿//==========POPUP WINDOWS==========
function PopWinSm(url, name)
{
	var ops = 'width=550, height=450, scrollbars=1, menubar=0, resizable=1, titlebar=1, status=1';
	var win = window.open(url, name, ops);
}

function PopWinMed(url, name)
{
	var ops = 'width=790, height=690, scrollbars=1, menubar=0, resizable=1, titlebar=1, status=1';
	var win = window.open(url, name, ops);
}

function PopWinLg(url, name)
{
	var ops = 'width=1000, height=750, scrollbars=1, menubar=0, resizable=1, titlebar=1, status=1';
	var win = window.open(url, name, ops);
}

function PopWinContact(url, name)
{
	var ops = 'width=475, height=475, scrollbars=0, menubar=0, resizable=1, titlebar=1, status=1';
	var win = window.open(url, name, ops);
}

function PopWinSubmit(url, name)
{
	var ops = 'width=475, height=500, scrollbars=0, menubar=0, resizable=1, titlebar=1, status=1';
	var win = window.open(url, name, ops);
}

function PopWinUpload(url, name)
{
	var ops = 'width=400, height=250, scrollbars=0, menubar=0, resizable=1, titlebar=1, status=1';
	var win = window.open(url, name, ops);
}

function PopWinPlayer(url, name)
{
	var ops = 'width=680, height=380, scrollbars=0, menubar=0, resizable=1, titlebar=1, status=1';
	var win = window.open(url, name, ops);
}
//==========SEND TO POPUP WINDOWS==========
function PopLoginFail()
{
	PopWinMed('/admin/loginfail.aspx','_popAlert');
}

function PopLoginLock()
{
	PopWinMed('/admin/loginlock.aspx','_popAlert');
}

function PopContact()
{
	PopWinContact('/Contactus.aspx','_popContact');
}

function PopSubmitEvent()
{
	PopWinSubmit('/SubmitEvent.aspx','_popSubmitEvent');
}

//========DATE PICKER======================

function calendarPicker(strField)
{
    /// <param name="strField">String. The JavaScript reference to the field that we want to set, 
    /// in the format: FormName.FieldName 
    /// Please note that JavaScript is case-sensitive.</param>
    window.open('../DatePicker.aspx?field=' + strField, 'calendarPopup', 'width=250,height=190,resizable=yes');
}



